https://bugs.kde.org/show_bug.cgi?id=460625

            Bug ID: 460625
           Summary: Firefox Nightly 107.0a1 crash in
                    mozilla::widget::nsWaylandDisplay::nsWaylandDisplay in
                    Plasma on Wayland with a failed assertion
                    GetSubcompositor()) (We're missing subcompositor
                    interface!)
    Classification: Plasma
           Product: kwin
           Version: 5.25.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: wayland-generic
          Assignee: kwin-bugs-n...@kde.org
          Reporter: matt.fagn...@bell.net
  Target Milestone: ---

SUMMARY

I started Firefox 107.0a1 20221014215500 to 20221017035343 on Wayland with
WebRender compositing in Plasma 5.25.5 in a Fedora 37 KDE Plasma installation.
I had previously enabled the menu bar. I clicked on Help in the menu bar right
after Firefox appeared. Firefox crashed before the Help menu appeared. The
crash reason was MOZ_DIAGNOSTIC_ASSERT(GetSubcompositor()) (We're missing
subcompositor interface!) which was added for
https://bugzilla.mozilla.org/show_bug.cgi?id=1794284 in the patch
https://hg.mozilla.org/integration/autoland/rev/42708fc2f7e5 

I've seen three crashes with this failed assertion. Two crashes were when I
clicked on Help in the menu bar right after Firefox started, and one was when I
clicked on Bookmarks the menu bar right after it started. This problem is
infrequent. Reproducing it would require clicking on the menu bar right after
Firefox was started many times.

Crash report:
https://crash-stats.mozilla.org/report/index/a61b3d39-cc6c-4ab4-bc24-ed98b0221015

MOZ_CRASH Reason: MOZ_DIAGNOSTIC_ASSERT(GetSubcompositor()) (We're missing
subcompositor interface!)

Top 10 frames of crashing thread:

0 libxul.so mozilla::widget::nsWaylandDisplay::nsWaylandDisplay
widget/gtk/nsWaylandDisplay.cpp:303
1 libxul.so mozilla::widget::WaylandDisplayGet
widget/gtk/nsWaylandDisplay.cpp:71
2 libxul.so mozilla::widget::WaylandBufferSHM::Create
widget/gtk/WaylandBuffer.cpp:196
3 libxul.so mozilla::widget::WindowSurfaceWaylandMB::ObtainBufferFromPool
widget/gtk/WindowSurfaceWaylandMultiBuffer.cpp:331
4 libxul.so mozilla::widget::WindowSurfaceWaylandMB::Lock
widget/gtk/WindowSurfaceWaylandMultiBuffer.cpp:199
5 libxul.so mozilla::widget::WindowSurfaceProvider::StartRemoteDrawingInRegion
widget/gtk/WindowSurfaceProvider.cpp:147
6 libxul.so mozilla::wr::RenderCompositorSWGL::AllocateMappedBuffer
gfx/webrender_bindings/RenderCompositorSWGL.cpp:73
7 libxul.so mozilla::wr::RenderCompositorSWGL::StartCompositing
gfx/webrender_bindings/RenderCompositorSWGL.cpp:186
8 libxul.so <webrender::compositor::sw_compositor::SwCompositor as
webrender::composite::Compositor>::start_compositing
gfx/wr/webrender/src/compositor/sw_compositor.rs:1430
9 libxul.so webrender::renderer::<impl
webrender::composite::CompositeState>::composite_native
gfx/wr/webrender/src/renderer/mod.rs:5721

STEPS TO REPRODUCE
1. Boot a Fedora 37 KDE Plasma installation updated to 2022-10-17 with the
updates-testing repo enabled
2. Log in to Plasma 5.25.5 on Wayland from sddm
3. Download Firefox Nightly 107.0a1 20221017035343
https://www.mozilla.org/en-US/firefox/all/#product-desktop-nightly
4. Extract the Firefox Nightly file
5. Run Firefox Nightly 107.0a1 20221017035343 on Wayland
6. Right click to the right of the address bar
7. Enable the menu bar.
8. Close Firefox
9 Run Firefox Nightly 107.0a1 20221017035343 on Wayland
10. Click on Help in the menu bar right after Firefox appears
11. If Firefox didn't crash, close Firefox
12. Repeat 9 to 10 until the crash happens.

OBSERVED RESULT
Firefox Nightly 107.0a1 crash in
mozilla::widget::nsWaylandDisplay::nsWaylandDisplay in Plasma on Wayland with a
failed assertion GetSubcompositor()) (We're missing subcompositor interface!)

EXPECTED RESULT
Firefox wouldn't crash

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37
(available in About System)
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6

ADDITIONAL INFORMATION

Martin Stránský wrote "This looks like a bug in KDE Wayland compositor. " at
https://bugzilla.mozilla.org/show_bug.cgi?id=1795561#c2 where I first reported
this crash so I'm reporting the problem against kwin.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to