Closed Bug 1850199 Opened 1 year ago Closed 1 year ago

Crash under Sway WM (Wayland)

Categories

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

Firefox 102
x86_64
Linux
defect

Tracking

()

RESOLVED INVALID

People

(Reporter: eular.frank, Unassigned)

References

(Blocks 1 open bug)

Details

Crash Data

This happens under Sway WM, triggered by right clicking: the drop-menu is always flickering and sometimes Firefox crashes.

Crash report: https://crash-stats.mozilla.org/report/index/3cdab189-9c7d-4b4b-baef-bc2580230826

Reason: SIGSEGV / SEGV_MAPERR

Top 10 frames of crashing thread:

0  libgdk-3.so.0  _gdk_wayland_shm_surface_get_wl_buffer  gdk/wayland/gdkdisplay-wayland.c:1434
1  libgdk-3.so.0  gdk_wayland_window_ensure_cairo_surface  gdk/wayland/gdkwindow-wayland.c:994
2  libgdk-3.so.0  gdk_window_impl_wayland_begin_paint  gdk/wayland/gdkwindow-wayland.c:1033
3  libgdk-3.so.0  gdk_window_begin_paint_internal  gdk/gdkwindow.c:2954
3  libgdk-3.so.0  gdk_window_begin_paint_internal  gdk/gdkwindow.c:2930
4  libgdk-3.so.0  gdk_window_begin_draw_frame  gdk/gdkwindow.c:3257
5  libgtk-3.so.0  gtk_widget_render  gtk/gtkwidget.c:17591
6  libgtk-3.so.0  gtk_main_do_event  gtk/gtkmain.c:1844
6  libgtk-3.so.0  gtk_main_do_event  gtk/gtkmain.c:1691
7  libgdk-3.so.0  _gdk_event_emit  gdk/gdkevents.c:73

The Bugbug bot thinks this bug should belong to the 'Core::Widget: Gtk' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → Widget: Gtk
Product: Firefox → Core
Summary: Crash in [@ _gdk_wayland_shm_surface_get_wl_buffer] → Crash under Sway WM (Wayland)
Blocks: wayland-sway
Priority: -- → P3

The bug has a crash signature, thus the bug will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true

(In reply to Martin Stránský [:stransky] (ni? me) from comment #3)

Can you try different compositor please?
https://fedoraproject.org/wiki/How_to_debug_Firefox_problems?rd=Bug_info_Firefox#Testing_different_Wayland_compositor
Thanks.

I tried that weeks ago, but I did not succeed to do that, and I do not have spare time since then. However, I can provide more information (under Sway WM):

  1. This is not producible on every webpage, and it also depends on where the right-click is performed. Let me restrict to a special situation to produce it: https://packages.debian.org/search?keywords=firefox-esr by right-clicking anywhere on the line "You have searched for packages that names contain firefox-esr in all suites, all sections, and all architectures. Found 100 matching packages."
  2. This is producible in Firefox 102 ESR under the Troubleshooting mode;
  3. This is not producible in Firefox 115 ESR under the Troubleshooting mode;
  4. This is producible (not in 100% fashion, but oftentimes) in Firefox 115 ESR with three extensions installed: Flagfox, Simple Translate, and Video DownloadHelper.
Flags: needinfo?(eular.frank)

Now I see that I should set WAYLAND_DISPLAY to be wayland-0 for the nested mutter, since sway uses wayland-1. This issue does not seem to be producible under mutter --xwayland.

Flags: needinfo?(eular.frank)

Yes, it is reproducible under the latest nightly https://crash-stats.mozilla.org/report/index/05106b49-2f8b-4652-af6d-a59b60231013 with three extensions installed: Flagfox, Simple Translate, and Video DownloadHelper. Triggered by right-clicking the search bar on https://www.google.com

Flags: needinfo?(eular.frank)

This seems to be a bug of sway. I upgrade sway to 1.8.1 from Debian Testing, and the issue seems to go away. Close this bug.

Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.