Gnome Shell crashes after Wacom pen touches tablet
Affected version
- Your OS and version
Linux discovery 5.4.0-47-generic #51-Ubuntu SMP Fri Sep 4 19:50:52 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
- Affected GNOME Shell version
GNOME Shell 3.36.4
- Does this issue appear in XOrg and/or Wayland
XOrg
Bug summary
Gnome Shell crashes after reloading the driver and touching the Wacom tablet with the pen.
What happened
I have a computer set up with a Wacom tablet. After a while, this could be hours or a few days, the Wacom driver stops and the cursor is frozen on the screen. By reloading the driver, with the following command:
lsmod | grep wacom
sudo rmmod wacom
sudo modprobe wacom
the cursor can move again while hovering over the tablet. However the moment I touch Wacom tablet with the Wacom pen there is a 50% chance that Gnome Shell will crash. The more frequent the driver stopped, the more likely Gnome Shell will crash next time after reloading the driver and touching the tablet with the pen. Note: Gnome Shell only crashes AFTER the pen touches the tablet, never before!
Please find some logs and such attached below.
- Note how often the Wacom tablet driver is reloaded by itself. Not sure if that is related.
- In these logs, the two reloads
[syslog.txt 08:45:24 and 08:45:30]
before the crash[syslog.txt 08:45:37]
is me manually reloading using the command above, all the other reload entries are done in the background and happen without user input.
I have had this for quite some time (since Ubuntu 18.04) and was hoping the mutter update to kernel 5.x would solve it but it did not. I reinstalled the entire OS (clean HDD wipe) when upgrading to Ubuntu 20.04, no change. I even bought a new bluetooth Wacom tablet to eliminate the USB port (power management?) as being the issue. I have exhausted my ideas so dropping it here in hopes for some community input.
What did you expect to happen
Gnome-shell not to crash. I can deal with manually reloading the Wacom driver if needed (although that is also not great), but when I reload the Wacom driver would be helpful if the Gnome session does not crash the moment I touch my Wacom tablet with the pen and all my work/open programs/etc are gone.
I contemplated if this was a Xorg, Gnome or Wacom Driver issue. However, given that the Wacom driver is able to reload and Xorg's crash happens after a number of Gnome Shell error messages (likely because of it - see syslog.txt 08:45:30
) and I used different Wacom tablets as well as different USB ports (as well as a bluetooth connection), I think this is likely a Gnome issue. Happy to hear if I am wrong and need to be elsewhere with this - and if so, where.