Closed Bug 1865302 Opened 11 months ago Closed 11 months ago

Crash in [@ nsWindow::ResumeCompositorImpl]

Categories

(Core :: Widget: Gtk, defect, P3)

All
Linux
defect

Tracking

()

RESOLVED FIXED
122 Branch
Tracking Status
firefox-esr115 --- fixed
firefox120 --- wontfix
firefox121 --- fixed
firefox122 --- fixed

People

(Reporter: gsvelto, Assigned: stransky)

References

Details

(Keywords: crash)

Crash Data

Attachments

(1 file, 1 obsolete file)

Crash report: https://crash-stats.mozilla.org/report/index/d9190959-6e32-46e1-9ed5-85a740231111

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(mCompositorWidgetDelegate)

Top 10 frames of crashing thread:

0  libxul.so  nsWindow::ResumeCompositorImpl  widget/gtk/nsWindow.cpp:6701
1  libxul.so  nsWindow::ResumeCompositorFlickering  widget/gtk/nsWindow.cpp:6686
2  libxul.so  mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void  const  xpcom/threads/nsThreadUtils.h:1164
2  libxul.so  std::__invoke_impl<void, mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void   /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/invoke.h:60
2  libxul.so  std::__invoke<mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void   /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/bits/invoke.h:95
2  libxul.so  std::__apply_impl<mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void   /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/tuple:1678
2  libxul.so  std::apply<mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void   /builds/worker/fetches/sysroot-x86_64-linux-gnu/usr/include/c++/8/tuple:1687
2  libxul.so  mozilla::detail::RunnableMethodArguments<>::apply<nsWindow, void   xpcom/threads/nsThreadUtils.h:1162
2  libxul.so  mozilla::detail::RunnableMethodImpl<nsWindow*, void   xpcom/threads/nsThreadUtils.h:1213
3  libxul.so  mozilla::RunnableTask::Run  xpcom/threads/TaskController.cpp:549

This appears to be an issue similar to bug 1784336 but following a different code-path that is not guarded by the fix introduced to address that bug.

Priority: -- → P3
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Attachment #9364432 - Attachment is obsolete: true

We pause compositor for scale changes to avoid flickering during repaint.
If compositor is deleted during the pause, don't try to resume it.
Just flip it back to enabled and let SetCompositorWidgetDelegate() or map event to resume it.

Pushed by stransky@redhat.com: https://hg.mozilla.org/integration/autoland/rev/a0bda3471d44 [Linux] Don't resume compositor if we're missing mCompositorWidgetDelegate r=emilio
Status: ASSIGNED → RESOLVED
Closed: 11 months ago
Resolution: --- → FIXED
Target Milestone: --- → 122 Branch

The patch landed in nightly and beta is affected.
:stransky, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox121 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(stransky)

Comment on attachment 9364535 [details]
Bug 1865302 [Linux] Don't resume compositor if we're missing mCompositorWidgetDelegate r?emilio

Beta/Release Uplift Approval Request

  • User impact if declined: Wayland users may see Firefox crash if Firefox window is moved across monitors with different scale setup (for instance laptop + external monitor).
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: No
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): Minor tweak in Wayland resume code.
  • String changes made/needed:
  • Is Android affected?: No
Flags: needinfo?(stransky)
Attachment #9364535 - Flags: approval-mozilla-beta?

Comment on attachment 9364535 [details]
Bug 1865302 [Linux] Don't resume compositor if we're missing mCompositorWidgetDelegate r?emilio

Approved for 121.0b5. Adding an ESR115 nomination too since we're seeing some crash volume from there as well.

Attachment #9364535 - Flags: approval-mozilla-esr115?
Attachment #9364535 - Flags: approval-mozilla-beta?
Attachment #9364535 - Flags: approval-mozilla-beta+

Comment on attachment 9364535 [details]
Bug 1865302 [Linux] Don't resume compositor if we're missing mCompositorWidgetDelegate r?emilio

Approved for 115.6esr.

Attachment #9364535 - Flags: approval-mozilla-esr115? → approval-mozilla-esr115+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: