Bug#838050: GDM3-only behaviour; Wayland not totally broken; bad tablets break even that

2016-09-18 Thread Andrew Chadwick
Reported upstream as a gnome-shell bug initially at
https://bugzilla.gnome.org/show_bug.cgi?id=771628


I can confirm that downgrading mutter and its support files and libs
fixes the problem. In a picture such as

gnome-shell3.21.91-2
gnome-session  3.20.2-1
libwacom2  0.22-1   <<< ***OR 0.19-1, doesn't matter!
xserver-xorg   1:7.7+16
xwayland   2:1.18.4-1
mutter 3.21.92-1   <<< *** gnome-shell segfaults

Downgrading mutter (& its lib and -common package) to 3.21.91 fixes
the segfaults, in both Xorg and Xwayland.

mutter 3.21.91-2   <<< +++ no segfaults, all tablets OK

Quick workaround for people having problems right now:

# apt-get install mutter=3.21.91-2 mutter-common=3.21.91-2 libmutter0i=3.21.91-2
# apt-mark hold mutter mutter-common libmutter0i



Bug#838050: GDM3-only behaviour; Wayland not totally broken; bad tablets break even that

2016-09-18 Thread Michael Biebl
> 
> This breaks gnome-shell with all the Wacom and non-Wacom graphics
> tablets I've tried, crashing gnome-shell at or shortly after the point
> when they are connected. However the non-tablet USB devices I've tried
> seem OK, including my (non-Wacom, non-pen, regular multitouch)
> touchscreen. See bug 838047 for details and log traces.

Since I do not possess such hardware, it's hard for me to reproduce.

It would therefor would be great if you can file this issue directly
upstream at
https://bugzilla.gnome.org/page.cgi?id=browse.html=gnome-shell

It's probably an issue in libmutter, but upstream will most certainly
know more.

Regards,
Michael

-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?



signature.asc
Description: OpenPGP digital signature


Bug#838050: GDM3-only behaviour; Wayland not totally broken; bad tablets break even that

2016-09-17 Thread Andrew Chadwick
The behaviour in gdm3 alone (outside of a user session) is different 
from tablet to tablet.


* Wacom Intuos5 USB: no crashes, pen functions as a second crosshair 
pointer
* HUION H610PRO USB: no crashes, pen functions as a second crosshair 
pointer
* Genius EasyPen i405X USB: crashes gnome-session in this environment 
as well, repeatedly, same segfault from gnome-shell. systemd appears to 
be desperately trying to launch Xorg instead afterwards? Which then 
*also* segfaults repeatedly.


The Huion and Wacom tablets work inside GNOME-on-Wayland user sessions, 
and gtk3-demo's "Touch and Drawing Tablets" module presents their extra 
axes (pressure, or pressure+tilt+distance, respectively). However using 
Wayland is not really a great workaround currently given how crashy it 
is (xwayland 2:1.18.4-1, pressing Alt kills Chromium, wow.)


The Genius tablet is well known as a horrid crashy mess generally, 
which is why I bought it. This behaviour is new even for that, however.


-8<-
Sep 18 03:17:32 spatula kernel: [50703.338856] usb 2-1: new low-speed 
USB device number 35 using xhci_hcd
Sep 18 03:17:32 spatula kernel: [50703.532827] usb 2-1: New USB device 
found, idVendor=0458, idProduct=5010
Sep 18 03:17:32 spatula kernel: [50703.532834] usb 2-1: New USB device 
strings: Mfr=1, Product=2, SerialNumber=0
Sep 18 03:17:32 spatula kernel: [50703.532838] usb 2-1: Product: 
EasyPen i405X
Sep 18 03:17:32 spatula kernel: [50703.532841] usb 2-1: Manufacturer: 
Genius
Sep 18 03:17:32 spatula kernel: [50703.561689] input: Genius EasyPen 
i405X as 
/devices/pci:00/:00:14.0/usb2/2-1/2-1:1.0/0003:0458:5010.0040/input/input175
Sep 18 03:17:32 spatula kernel: [50703.615183] kye 0003:0458:5010.0040: 
input,hiddev0,hidraw2: USB HID v1.11 Device [Genius EasyPen i405X] on 
usb-:00:14.0-1/input0
Sep 18 03:17:32 spatula mtp-probe: checking bus 2, device 35: 
"/sys/devices/pci:00/:00:14.0/usb2/2-1"
Sep 18 03:17:32 spatula mtp-probe: bus: 2, device: 35 was not an MTP 
device
Sep 18 03:17:33 spatula gnome-shell[29393]: Could not get tablet 
information for 'Genius EasyPen i405X': (null)
Sep 18 03:17:33 spatula kernel: [50704.317185] gnome-shell[29393]: 
segfault at 10 ip 7fd62869e844 sp 7ffe16cebae0 error 4 in 
libwacom.so.2.5.0[7fd62869b000+9000]

Sep 18 03:17:33 spatula org.gnome.Shell.desktop[29393]: (EE)
Sep 18 03:17:33 spatula org.gnome.Shell.desktop[29393]: Fatal server 
error:
Sep 18 03:17:33 spatula org.gnome.Shell.desktop[29393]: (EE) failed to 
dispatch Wayland events: Broken pipe

Sep 18 03:17:33 spatula org.gnome.Shell.desktop[29393]: (EE)
[... one more segfault ...]
Sep 18 03:17:35 spatula gdm3: Child process -29545 was already dead.
Sep 18 03:17:35 spatula gdm3: Child process 29534 was already dead.
Sep 18 03:17:35 spatula gdm3: Unable to kill session worker process
Sep 18 03:17:35 spatula systemd[1]: Started Session c22 of user 
Debian-gdm.
Sep 18 03:17:35 spatula udev-acl.ck[29583]: g_slice_set_config: 
assertion 'sys_page_size == 0' failed
Sep 18 03:17:35 spatula /usr/lib/gdm3/gdm-x-session[29582]: (--) Log 
file renamed from "/var/lib/gdm3/.local/share/xorg/Xorg.pid-29585.log" 
to "/var/lib/gdm3/.local/share/xorg/Xorg.0.log"
Sep 18 03:17:35 spatula /usr/lib/gdm3/gdm-x-session[29582]: X.Org X 
Server 1.18.4
Sep 18 03:17:35 spatula /usr/lib/gdm3/gdm-x-session[29582]: Release 
Date: 2016-07-19
Sep 18 03:17:35 spatula /usr/lib/gdm3/gdm-x-session[29582]: X Protocol 
Version 11, Revision 0

[... starts up, then a stream of new segfaults ...]
->8-