linuxmint / cinnamon-settings-daemon

The settings daemon for the Cinnamon desktop
GNU General Public License v2.0
58 stars 59 forks source link

csd-wacom crash with csd-wacom-device.c:1857:csd_wacom_device_set_current_stylus: assertion failed: (device->priv->styli) #332

Closed ThomasCr closed 3 years ago

ThomasCr commented 3 years ago
 * csd version = 4.8.5-1
 * Distribution - Ubuntu Cinnamon Remix 21.04
 * Intel Graphics
 * 64 bit
 * Lenovo Yoga 460

Issue

csd-wacom crash with csd-wacom-device.c:1857:csd_wacom_device_set_current_stylus: assertion failed: (device->priv->styli)

Steps to reproduce

run csd-wacom from shell or from cinnamon-settings

$ csd-wacom

** (csd-wacom:1094339): WARNING **: 18:10:37.070: Could not set the current stylus ID 0x0 for tablet 'Wacom ISDv4 504c', no general pen found

** (csd-wacom:1094339): WARNING **: 18:10:37.074: Automatically mapping tablet to heuristically-found display.

** (csd-wacom:1094339): WARNING **: 18:10:37.074: Automatically mapping tablet to heuristically-found display.

** (csd-wacom:1094339): WARNING **: 18:10:37.079: Could not set the current stylus ID 0x0 for tablet 'Wacom ISDv4 504c', no general pen found
**
ERROR:../plugins/wacom/csd-wacom-device.c:1857:csd_wacom_device_set_current_stylus: assertion failed: (device->priv->styli)
Bail out! ERROR:../plugins/wacom/csd-wacom-device.c:1857:csd_wacom_device_set_current_stylus: assertion failed: (device->priv->styli)
Abgebrochen (Speicherabzug geschrieben)

I already opened a bug report on Launchpad: https://bugs.launchpad.net/ubuntu/+source/cinnamon-settings-daemon/+bug/1925842

ItzSwirlz commented 3 years ago

Looks like it freaks out if it can't find a pen. I'll try and open a PR for this

ThomasCr commented 3 years ago

found this... looks somehow the same?

https://github.com/linuxmint/cinnamon-control-center/issues/250

ItzSwirlz commented 3 years ago

Yeah, that's the same issue. Control center just calls CSD which just fails due to no pen.

ThomasCr commented 3 years ago

The Tablet has a Pen, but this is a other bug related to my submission: https://github.com/linuxwacom/wacom-hid-descriptors/issues/144

ItzSwirlz commented 3 years ago

Ah ha-I can't really fix that but CSD can handle a crash for it not being found.

I already have a patch ready to PR, I'm just out right now and will commit later tonight. Then if it works I'll patch it in Ubuntu (you met the right guy)

ThomasCr commented 3 years ago

Thanks for caring and fixing the issue 👍

Is there a test package available now, or you will notify me, when it is ready ?

ItzSwirlz commented 3 years ago

I can spin one up in a PPA for you, just give me a day or two.