GNOME Bugzilla – Bug 562977
gsd-mouse-manager should check for XInput server support
Last modified: 2009-04-05 08:55:39 UTC
Steps to reproduce: 1. launch a gnome-session on an Xserver where XInput is unavailable I've only tested with g-s-d 2.24.1 but there's no reason for 2.25.x not to have this bug either. Simple patch to follow. Stack trace: System: Linux 2.6.27-gentoo-r2 #1 SMP PREEMPT Fri Oct 31 11:04:41 CET 2008 x86_64 X Vendor: The X.Org Group X Vendor Release: 6600 Selinux: No Accessibility: Disabled GTK+ Theme: Clearlooks Icon Theme: gnome Memory status: size: 222928896 vsize: 222928896 resident: 7847936 share: 5742592 rss: 7847936 rss_rlim: 18446744073709551615 CPU usage: start_time: 1228152690 rtime: 4 utime: 3 stime: 1 cutime:0 cstime: 0 timeout: 0 it_real_value: 0 frequency: 100 Backtrace was generated from '/usr/libexec/gnome-settings-daemon' [?1034h[Thread debugging using libthread_db enabled] [New Thread 0x7fd400b766f0 (LWP 3131)] [New Thread 0x42203950 (LWP 3133)] 0x00007fd3ff80a54f in __libc_waitpid (pid=3137, stat_loc=0x7fff08cbe1b0, options=0) at ../sysdeps/unix/sysv/linux/waitpid.c:41 in ../sysdeps/unix/sysv/linux/waitpid.c
+ Trace 210411
Thread 1 (Thread 0x7fd400b766f0 (LWP 3131))
----------- .xsession-errors (29 sec old) --------------------- /etc/X11/gdm/Xsession: Beginning session setup... /etc/X11/gdm/Xsession: Setup done, will execute: /usr/bin/seahorse-agent --execute /home/remi/.xsession metisse-xsession: geom: 1920x1200 dbus-daemon(1586): Opération non permise -------------------------------------------------- Other information:
Created attachment 123797 [details] [review] check for server-side XInput support in gsd-mouse-manager.c Patch fixes g-s-d crash with current Xmetisse, which doesn't support XInput. This patch was adapted from X's "xinput" utility : http://cgit.freedesktop.org/xorg/app/xinput/tree/src/xinput.c#n130 Thanks
Created attachment 123812 [details] [review] better fix? Thanks for the patch. However, it breaks with non-C99 compilers and introduces a memory leak, so how about this one instead?
Indeed, yours is much better and works just as well :) Thanks
2008-12-04 Jens Granseuer <...> * plugins/mouse/gsd-mouse-manager.c: (set_devicepresence_handler): fix crash with X servers that don't provide XInput (bug #562977)
Thanks :)
*** Bug 569567 has been marked as a duplicate of this bug. ***
*** Bug 577136 has been marked as a duplicate of this bug. ***
*** Bug 573524 has been marked as a duplicate of this bug. ***