Closed Bug 751163 Opened 11 years ago Closed 11 years ago
OMTC Linux: Firefox crashes when closing a window in which a video is playing (OMTC only)
4.64 KB, text/plain
9.19 KB, text/plain
2.11 KB, patch
|Details | Diff | Splinter Review|
When using off-main-thread compositing on Linux (layers.acceleration.force-enabled pref set to true + MOZ_USE_OMTC environment variable set), Firefox sometimes crashes. The gdb backtrace is in attachment. The crash seems to happen because IPC times out inside PCompositorChild::SendStop
Right now, need to apply attachment 618255 [details] [diff] [review] from bug 722012 to observe the bug. Without this patch OMTC on Linux just crashes right away without giving a chance to see the other bugs.
Severity: normal → critical
Crash Signature: [@ PR_WaitCondVar | mozilla::CondVar::Wait]
Version: unspecified → Other Branch
(In reply to Nicolas Silva [:nical] from comment #0) > Created attachment 620308 [details] > Stacktrace of the crash Is that the crashing thread? I think you want the stack trace from another thread.
(In reply to Karl Tomlinson (:karlt) from comment #2) > (In reply to Nicolas Silva [:nical] from comment #0) > > Created attachment 620308 [details] > > Stacktrace of the crash > > Is that the crashing thread? > I think you want the stack trace from another thread. Yeah probably, I haven't really looked into it yet. Just printed the backtrace from gdb, saw that it was in "*Wait*" named functions within ipc code, assumed it was a time out, and switched back to what I was working on before. I'll get back to this bug soon.
karlt, you are right, things are happening in the compositor thread (stacktrace in attachment), and it actually has nothing to do with time out. textures are being deleted after the gtk widget (which is a problem because deleting the gtk widget deletes the gl context) when closing a window that is playing a video. I'll also rename this bug.
Summary: OMTC Linux: Firefox sometimes crashes when closing, due to IPC time out → OMTC Linux: Firefox crashes when closing a window in which a video is playing (OMTC only)
Crash Signature: [@ PR_WaitCondVar | mozilla::CondVar::Wait] → [@ TouchBadMemory | mozalloc_abort | NS_DebugBreak_P | X11Error]
ShadowImageLayerOGL's 3 YUV textures were not released in ShadowImageLayerOGL::CleanupResources, causing them to be released somewhere in ShadowLayerParent::ActorDestroy (see stacktrace in attachment 621210 [details]) which happens after the destruction of the gl context. Releasing these textures in CleanupResources makes sure it happens before we destroy the gl context.
Attachment #624148 - Flags: review?(bgirard)
Attachment #624148 - Flags: review?(bgirard) → review+
Target Milestone: --- → mozilla15
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.