Closed Bug 1631334 Opened 4 years ago Closed 4 years ago

[Wayland] Crash in [@ g_list_remove] when tablet is unplugged

Categories

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

Unspecified
Linux
defect

Tracking

()

RESOLVED MOVED

People

(Reporter: gsvelto, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: crash)

Crash Data

This bug is for crash report bp-5dbc353f-fd71-4dd0-bac3-163a40200420.

Top 10 frames of crashing thread:

0 libglib-2.0.so.0 g_list_remove 
1 libgdk-3.so.0 gdk_wayland_monitor_get_wl_output 
2 libffi.so.7 ffi_prep_go_closure 
3 libffi.so.7 ffi_closure_free 
4 libwayland-client.so.0 wl_log_set_handler_client 
5 libwayland-client.so.0 libwayland-client.so.0@0x66c0 
6 libwayland-client.so.0 wl_display_dispatch_queue_pending 
7 libgdk-3.so.0 gdk_wayland_monitor_get_wl_output 
8 libgdk-3.so.0 gdk_display_get_event 
9 libgdk-3.so.0 gdk_wayland_gl_context_get_type 

In the reports there's one useful comment for this crash:

I've uplugged a wacom graphic tablet, I'm running on Wayland so that probably why it crashed

Blocks: wayland
Summary: Crash in [@ g_list_remove] → [Wayland] Crash in [@ g_list_remove] when tabled is unplugged
Priority: -- → P2

I can consistently reproduce this when unplugging my tablet.

Summary: [Wayland] Crash in [@ g_list_remove] when tabled is unplugged → [Wayland] Crash in [@ g_list_remove] when tablet is unplugged

I got this in Thunderbird 68.7 with a different backtrace:

#0 g_list_remove at ../glib/glist.c:575
#1 tablet_pad_handle_leave at gdkdevice-wayland.c:4423
#2 ffi_call_unix64 at ../src/x86/unix64.S:76
#3 ffi_call at ../src/x86/ffi64.c:525
#4 wl_closure_invoke at src/connection.c:1014
#5 dispatch_event at src/wayland-client.c:1430
#6 dispatch_queue at src/wayland-client.c:1576
#7 wl_display_dispatch_queue_pending at src/wayland-client.c:1818
#8 wl_display_dispatch_pending at src/wayland-client.c:1881
#9 _gdk_wayland_display_queue_events at gdkeventsource.c:201

More details at https://bugzilla.redhat.com/show_bug.cgi?id=1834718

It looks like a crash in Gtk3. Robert, any idea here?
Thanks.

Flags: needinfo?(robert.mader)

The second one reminds me of https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1121, but both Fedora 31 and current Arch should have it. Concerning the first one: I don't see how gdk_wayland_monitor_get_wl_output would chain up to g_list_remove - it's a simply getter funcion :/

Anyhow, this indeed looks like a GTK bug, will open an issue.

Flags: needinfo?(robert.mader)

Hopefully fixed by https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/1909 which will ship with GTK 3.24.21

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