After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 747886 - Crash on resume from suspend
Crash on resume from suspend
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
git master
Other Linux
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2015-04-15 05:38 UTC by Mantas Mikulėnas (grawity)
Modified: 2015-04-15 11:33 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
backend: Apply the right settings to the right input devices (5.15 KB, patch)
2015-04-15 11:33 UTC, Carlos Garnacho
none Details | Review

Description Mantas Mikulėnas (grawity) 2015-04-15 05:38:37 UTC
gnome-shell (X11) crashes whenever I wake up from suspend or otherwise switch back to the X11 vt:

mutter:ERROR:backends/meta-input-settings.c:260:update_mouse_left_handed: assertion failed: (clutter_input_device_get_device_type (device) == CLUTTER_POINTER_DEVICE)

(gdb) bt full
  • #0 raise
    from /usr/lib/libc.so.6
  • #1 abort
    from /usr/lib/libc.so.6
  • #2 g_assertion_message
    from /usr/lib/libglib-2.0.so.0
  • #3 g_assertion_message_expr
    from /usr/lib/libglib-2.0.so.0
  • #4 update_mouse_left_handed
    at backends/meta-input-settings.c line 260
  • #5 apply_device_settings
    at backends/meta-input-settings.c line 742
  • #6 meta_input_settings_device_added
    at backends/meta-input-settings.c line 765
  • #7 g_closure_invoke
    from /usr/lib/libgobject-2.0.so.0
  • #8 ??
    from /usr/lib/libgobject-2.0.so.0
  • #9 g_signal_emit_valist
    from /usr/lib/libgobject-2.0.so.0
  • #10 g_signal_emit_by_name
    from /usr/lib/libgobject-2.0.so.0

mutter 3.16.1.r1.g2e3086e
clutter 1.22.0
Comment 1 Carlos Garnacho 2015-04-15 11:33:13 UTC
The following fix has been pushed:
8dfb88b backend: Apply the right settings to the right input devices
Comment 2 Carlos Garnacho 2015-04-15 11:33:17 UTC
Created attachment 301617 [details] [review]
backend: Apply the right settings to the right input devices

Since 8769b3d55, the checks performed on which update_* function was
called for each device got quite more lax, leading to failed asserts
on code that assumed the previous behavior.

Change update_[mouse|touchpad|trackball]_* to bail out early if the
device received has not the right type, and remove the asserts.