Closed Bug 1968330 Opened 3 months ago Closed 1 month ago

[HDR] Crash in [@ mozilla::widget::WaylandSurface::MapLocked] with MOZ_DIAGNOSTIC_ASSERT(!mSurface && !mSubsurface) (Already mapped?)

Categories

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

defect

Tracking

()

RESOLVED DUPLICATE of bug 1973890

People

(Reporter: mccr8, Assigned: stransky)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

Crash report: https://crash-stats.mozilla.org/report/index/799df1c9-a4ec-4995-98db-2cea20250522

MOZ_CRASH Reason:

MOZ_DIAGNOSTIC_ASSERT(!mSurface && !mSubsurface) (Already mapped?)

Top 10 frames:

0  libxul.so  MOZ_CrashSequence(void*, long)  mfbt/Assertions.h:248
0  libxul.so  mozilla::widget::WaylandSurface::MapLocked(mozilla::widget::WaylandSurfaceLoc...  widget/gtk/WaylandSurface.cpp:491
1  libxul.so  mozilla::widget::WaylandSurface::MapLocked(mozilla::widget::WaylandSurfaceLoc...  widget/gtk/WaylandSurface.cpp:561
1  libxul.so  mozilla::layers::NativeLayerWayland::Map(mozilla::widget::WaylandSurfaceLock*)  gfx/layers/NativeLayerWayland.cpp:744
2  libxul.so  mozilla::layers::NativeLayerRootWayland::SetLayers(nsTArray<RefPtr<mozilla::l...  gfx/layers/NativeLayerWayland.cpp:316
3  libxul.so  mozilla::wr::RenderCompositorNative::CompositorEndFrame()  gfx/webrender_bindings/RenderCompositorNative.cpp:271
4  libxul.so  webrender::renderer::Renderer::render_impl  gfx/wr/webrender/src/renderer/mod.rs:1789
5  libxul.so  webrender::renderer::Renderer::render  gfx/wr/webrender/src/renderer/mod.rs:1283
6  libxul.so  wr_renderer_render  gfx/webrender_bindings/src/bindings.rs:650
7  libxul.so  mozilla::wr::RendererOGL::UpdateAndRender(mozilla::Maybe<mozilla::gfx::IntSiz...  gfx/webrender_bindings/RendererOGL.cpp:220
Priority: -- → P3
Summary: Crash in [@ mozilla::widget::WaylandSurface::MapLocked] with MOZ_DIAGNOSTIC_ASSERT(!mSurface && !mSubsurface) (Already mapped?) → [HDR] Crash in [@ mozilla::widget::WaylandSurface::MapLocked] with MOZ_DIAGNOSTIC_ASSERT(!mSurface && !mSubsurface) (Already mapped?)

Hit that on KDE / debug build by scrolling:

#10 MOZ_CrashSequence (aAddress=0x0, aLine=104) at /raid/src/objdir/dist/include/mozilla/Assertions.h:248
#11 0x00007f8f968b083b in mozilla::widget::WaylandBuffer::BorrowBuffer (this=0x7f8f394545b0, aSurfaceLock=...) at /raid/src/widget/gtk/WaylandBuffer.cpp:103
#12 0x00007f8f968bb26d in mozilla::widget::WaylandSurface::AttachLocked (this=0x7f8f2d3c2100, aSurfaceLock=..., aWaylandBuffer=[(mozilla::widget::WaylandBufferDMABUF *)] = {...})
    at /raid/src/widget/gtk/WaylandSurface.cpp:1129
#13 0x00007f8f901ca30b in mozilla::layers::NativeLayerWaylandRender::CommitSurfaceToScreenLocked (this=0x7f8f5379b450, aProofOfLock=...) at /raid/src/gfx/layers/NativeLayerWayland.cpp:1000
#14 0x00007f8f901c594a in mozilla::layers::NativeLayerWayland::UpdateLayer (this=0x7f8f5379b450, aScale=2) at /raid/src/gfx/layers/NativeLayerWayland.cpp:725
#15 0x00007f8f901c4e56 in mozilla::layers::NativeLayerRootWayland::UpdateLayersLocked (this=0x7f8f504d51c0, aProofOfLock=...) at /raid/src/gfx/layers/NativeLayerWayland.cpp:393
#16 0x00007f8f901c629c in mozilla::layers::NativeLayerRootWayland::CommitToScreen (this=0x7f8f504d51c0) at /raid/src/gfx/layers/NativeLayerWayland.cpp:473
#17 0x00007f8f90a08d6e in mozilla::wr::RenderCompositorNative::CompositorEndFrame (this=0x7f8f4ea434b0) at /raid/src/gfx/webrender_bindings/RenderCompositorNative.cpp:278
#18 0x00007f8f90a1ba01 in wr_compositor_end_frame (aCompositor=0x7f8f4ea434b0) at /raid/src/gfx/webrender_bindings/RenderCompositor.cpp:149
#19 0x00007f8f9b24a639 in webrender_bindings::bindings::{impl#22}::end_frame (self=0x7f8f536d09d8, _device=0x7f8f46486000) at gfx/webrender_bindings/src/bindings.rs:1494
#20 0x00007f8f9ba4750c in webrender::renderer::Renderer::render_impl (self=0x7f8f46486000, doc_id=..., active_doc=0x7f8f5ccf94d8, device_size=..., buffer_age=0) at gfx/wr/webrender/src/renderer/mod.rs:1822
#21 0x00007f8f9ba449f9 in webrender::renderer::Renderer::render (self=0x7f8f46486000, device_size=..., buffer_age=0) at gfx/wr/webrender/src/renderer/mod.rs:1316
#22 0x00007f8f9b247dfb in webrender_bindings::bindings::wr_renderer_render (renderer=0x7f8f46486000, width=1920, height=2088, buffer_age=0, out_stats=0x7f8f5ccfb250, out_dirty_rects=0x7f8f5ccfaf18)
    at gfx/webrender_bindings/src/bindings.rs:650
#23 0x00007f8f90a4ff92 in mozilla::wr::RendererOGL::UpdateAndRender (this=0x7f8f4a1673d0, aReadbackSize=..., aReadbackFormat=..., aReadbackBuffer=..., aNeedsYFlip=0x0, aFrameParams=..., aOutStats=0x7f8f5ccfb250)
    at /raid/src/gfx/webrender_bindings/RendererOGL.cpp:226
Assignee: nobody → stransky
Flags: needinfo?(stransky)
Status: NEW → RESOLVED
Closed: 1 month ago
Duplicate of bug: 1973890
Flags: needinfo?(stransky)
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.