hits g_assert (device->priv->styli) when my Wacom Bamboo 2FG 4x5 is plugged in

Bug #934445 reported by Pete Graner
98
This bug affects 10 people
Affects Status Importance Assigned to Milestone
GNOME Settings Daemon
Invalid
Medium
gnome-settings-daemon (Ubuntu)
Invalid
High
Unassigned
libwacom (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Updated on 17 Feb and gnome-settings-daemon keeps crashing.

pgraner@beavis:~$ gnome-settings-daemon

color-plugin-WARNING **: failed to get edid: unable to get EDID for output
[1329507333,000,xklavier.c:xkl_engine_start_listen/] The backend does not require manual layout management - but it is provided by the application

** WARNING **: Tablet 'usb:056a:0015' has no buttons defined, do something!

** WARNING **: Tablet 'usb:056a:0014' has no buttons defined, do something!

** WARNING **: Tablet 'usb:056a:0013' has no buttons defined, do something!

wacom-plugin-WARNING **: Failed to create fallback wacom device for '/dev/input/event5': Device '/dev/input/event5' is not a tablet (2)

wacom-plugin-WARNING **: Could not set the current stylus ID 0x0 for tablet 'Wacom Bamboo Pen & Touch', no general pen found
**
wacom-plugin:ERROR:gsd-wacom-device.c:1321:gsd_wacom_device_set_current_stylus: assertion failed: (device->priv->styli)
Aborted (core dumped)

ProblemType: Crash
DistroRelease: Ubuntu 12.04
Package: gnome-settings-daemon 3.3.5-0ubuntu3
ProcVersionSignature: Ubuntu 3.2.0-16.25-generic 3.2.6
Uname: Linux 3.2.0-16-generic x86_64
NonfreeKernelModules: nvidia
ApportVersion: 1.91-0ubuntu1
Architecture: amd64
Date: Fri Feb 17 14:13:20 2012
ExecutablePath: /usr/lib/gnome-settings-daemon/gnome-settings-daemon
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Release amd64 (20111012)
ProcCmdline: /usr/lib/gnome-settings-daemon/gnome-settings-daemon
ProcEnviron:
 SHELL=/bin/false
 PATH=(custom, no user)
 LANG=en_US.UTF-8
Signal: 6
SourcePackage: gnome-settings-daemon
StacktraceTop:
 raise () from /lib/x86_64-linux-gnu/libc.so.6
 abort () from /lib/x86_64-linux-gnu/libc.so.6
 g_assertion_message () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 g_assertion_message_expr () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
 gsd_wacom_device_set_current_stylus () from /usr/lib/gnome-settings-daemon-3.0/libgsdwacom.so
Title: gnome-settings-daemon crashed with SIGABRT in raise()
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

Revision history for this message
Pete Graner (pgraner) wrote :
visibility: private → public
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 g_assertion_message (domain=<optimized out>, file=<optimized out>, line=<optimized out>, func=0x7f5ae172fbc0 "gsd_wacom_device_set_current_stylus", message=0x14d0e70 "assertion failed: (device->priv->styli)") at /build/buildd/glib2.0-2.31.16/./glib/gtestutils.c:1860
 g_assertion_message_expr (domain=0x7f5ae172e75c "wacom-plugin", file=0x7f5ae172efd7 "gsd-wacom-device.c", line=1321, func=0x7f5ae172fbc0 "gsd_wacom_device_set_current_stylus", expr=<optimized out>) at /build/buildd/glib2.0-2.31.16/./glib/gtestutils.c:1871
 gsd_wacom_device_set_current_stylus (device=0x1505da0, stylus_id=0) at gsd-wacom-device.c:1321
 setup_property_notify (device=0x1505da0) at gsd-wacom-device.c:398
 gsd_wacom_device_constructor (type=<optimized out>, n_construct_properties=<optimized out>, construct_properties=<optimized out>) at gsd-wacom-device.c:1072

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in gnome-settings-daemon (Ubuntu):
importance: Undecided → Medium
summary: - gnome-settings-daemon crashed with SIGABRT in raise()
+ gnome-settings-daemon crashed with SIGABRT in g_assertion_message()
tags: removed: need-amd64-retrace
Revision history for this message
Bryce Harrington (bryce) wrote : Re: gnome-settings-daemon crashed with SIGABRT in g_assertion_message()

Having pete downgrade to 3.2.2-0ubuntu17 resolved the problem.

He also found the crash only occurred when the wacom tablet was plugged in; unplugging it worked around the bug.

From the crash dump, g-s-d is crashing in the new wacom support code in g-s-d that was introduced in this new version.

Changed in gnome-settings-daemon (Ubuntu):
assignee: nobody → Sebastien Bacher (seb128)
importance: Medium → High
status: New → Triaged
description: updated
summary: - gnome-settings-daemon crashed with SIGABRT in g_assertion_message()
+ gnome-settings-daemon 3.3.5 crashed with SIGABRT in
+ g_assertion_message() when my Wacom Bamboo 2FG 4x5 is plugged in
Revision history for this message
Bryce Harrington (bryce) wrote : Re: gnome-settings-daemon 3.3.5 crashed with SIGABRT in g_assertion_message() when my Wacom Bamboo 2FG 4x5 is plugged in

Perhaps this suggests the wacom plugin's configuration default setting should be to OFF for precise, if it is indeed new functionality? Then switch it on by default for 12.10?

Revision history for this message
Robert Hooker (sarvatt) wrote :

Can you attach a lsusb and xinput --list with the tablet plugged in? It could be that libwacom just needs a definition for your tablet, the only bamboo I see is here and it has special stylus handling for it.

http://linuxwacom.git.sourceforge.net/git/gitweb.cgi?p=linuxwacom/libwacom;a=blob;f=data/bamboo-pen-and-touch.tablet;h=424e11873e17c89e60acbd86f547815cac537da5;hb=064a4e45fb3e8e40d8a39346e3205fca40c23b00

Even if thats the case, a wacom g-s-d plugin problem definitely should not be preventing the session from starting up..

Revision history for this message
Pete Graner (pgraner) wrote :

@sarvatt

Here are the output you asked for. Let me know if you need anything else.

Revision history for this message
Pete Graner (pgraner) wrote :
summary: - gnome-settings-daemon 3.3.5 crashed with SIGABRT in
- g_assertion_message() when my Wacom Bamboo 2FG 4x5 is plugged in
+ gnome-settings-daemon 3.3.5 hits g_assert (device->priv->styli) when my
+ Wacom Bamboo 2FG 4x5 is plugged in
summary: - gnome-settings-daemon 3.3.5 hits g_assert (device->priv->styli) when my
- Wacom Bamboo 2FG 4x5 is plugged in
+ hits g_assert (device->priv->styli) when my Wacom Bamboo 2FG 4x5 is
+ plugged in
Changed in gnome-settings-daemon:
importance: Unknown → Medium
status: Unknown → Confirmed
Changed in libwacom (Ubuntu):
importance: Undecided → High
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-settings-daemon - 3.3.90-0ubuntu3

---------------
gnome-settings-daemon (3.3.90-0ubuntu3) precise; urgency=low

  * debian/patches/git_wacom_fix.patch:
    - deal better with some wacom devices to avoiding segfaults (lp: #934445)
  * debian/source_gnome-settings-daemon.py:
    - correctly separate tags with spaces so they don't get concatenated
 -- Sebastien Bacher <email address hidden> Fri, 24 Feb 2012 12:39:29 +0100

Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libwacom - 0.3-0ubuntu4

---------------
libwacom (0.3-0ubuntu4) precise; urgency=low

  * git_touchpad_tablet.patch: "Don't fail to create WacomDevice for Touch"
    should fix gnome-settings-daemon segfault on some devices (lp: #934445)
 -- Sebastien Bacher <email address hidden> Fri, 24 Feb 2012 11:50:03 +0100

Changed in libwacom (Ubuntu):
status: In Progress → Fix Released
Changed in gnome-settings-daemon:
status: Confirmed → Incomplete
Revision history for this message
Sebastien Bacher (seb128) wrote :

Pete, could you confirm that the fix works for you?

Revision history for this message
Pete Graner (pgraner) wrote :

@seb128,

Sorry for the delay I missed your question in bug mail.

It works as expected now.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Launchpad and 'Apport retracing service' marked my new bug, #958553, as a dupe of this. I had considered doing the same, but this was marked fixed, and my case isn't. I don't care if we call it a dupe or not; as long as we are, then I'd like to re-open this bug. S ince when I plug in my 'Bamboo Pen and Touch', g-s-d still crashes. I was going to say "Traces are attached to my duped bug", but Launchpad seems to have deleted them. I think it has me outfoxed, for the moment. Thanks.

Changed in gnome-settings-daemon:
status: Incomplete → Confirmed
Changed in gnome-settings-daemon (Ubuntu):
status: Fix Released → Triaged
assignee: Sebastien Bacher (seb128) → nobody
Revision history for this message
Edward Donovan (edward.donovan) wrote :

Thank you Sebastian, for re-opening.

Here's the brief output of requested diagnostics, for my 'Bamboo Pen & Touch' tablet. I'll attach more verbose output.

lsusb:

  Bus 003 Device 002: ID 056a:00d1 Wacom Co., Ltd Bamboo Pen & Touch (CTH-460-DE)

xinput --list:

$ xinput list: the last four lines, and I'll show the other entries in case they shed any light.

⎡ Virtual core pointer id=2 [master pointer (3)]
⎜ ↳ Virtual core XTEST pointer id=4 [slave pointer (2)]
⎜ ↳ Logitech Unifying Device. Wireless PID:1017 id=8 [slave pointer (2)]
⎜ ↳ HID 05a4:9881 id=10 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=11 [slave pointer (2)]
⎜ ↳ Logitech USB Receiver id=12 [slave pointer (2)]
⎜ ↳ Chicony USB Wireless HID Receiver id=15 [slave pointer (2)]
⎜ ↳ Wacom Bamboo 2FG 4x5 Finger touch id=17 [slave pointer (2)]
⎜ ↳ Wacom Bamboo 2FG 4x5 Finger pad id=18 [slave pointer (2)]
⎜ ↳ Wacom Bamboo 2FG 4x5 Pen stylus id=19 [slave pointer (2)]
⎜ ↳ Wacom Bamboo 2FG 4x5 Pen eraser id=20 [slave pointer (2)]

Excuse me if I those pasted characters come out badly.

Revision history for this message
Edward Donovan (edward.donovan) wrote :
Revision history for this message
Edward Donovan (edward.donovan) wrote :
Revision history for this message
Edward Donovan (edward.donovan) wrote :

I took a look at the upstream bug, again. Now someone's noted another, similar report in the Gnome bugzilla:

  https://bugzilla.gnome.org/show_bug.cgi?id=672917

I'll read up on that.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Ah, progress. I followed the instructions at Gnome bug 672917, and no longer get the crash.

I edited

  /usr/share/libwacom/bamboo-pen-and-touch.tablet

Where line 16 says:

Styli=0xfffff

then appending this second hex number, to make it:

Styli=0xfffff;0xffffe

Stops the crash.

Hopefully at this point, this fix is on it's way in upstream. I will try to keep up with it.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

I'll note another issue, but don't consider it part of this bug.

G-s-d still reacts to my tablet with this error output:

  ** (gnome-settings-daemon:3015): WARNING **: Tablet 'usb:056a:0015' has no buttons defined, do something!

  ** (gnome-settings-daemon:3015): WARNING **: Tablet 'usb:056a:0014' has no buttons defined, do something!

  ** (gnome-settings-daemon:3015): WARNING **: Tablet 'usb:056a:0013' has no buttons defined, do something!

And indeed, the tablet's buttons don't work.

But more importantly, for now, g-s-d doesn't crash, with the fix noted above. (Though it's small, I guess I'll attach it as a patch.)

When I get around to worrying about the buttons, I'll see if it works soon, or treat it as a separate issue.

Revision history for this message
Edward Donovan (edward.donovan) wrote :

This brief patch fixes the gnome-settings-daemon crash, for my Bamboo Pen & Touch tablet.

The file patched actually belongs to package libwacom-common.

The patch came from Red Hat bug 799667:

  https://bugzilla.redhat.com/show_bug.cgi?id=799667

(via Gnome bug 672917)

Thanks!

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Oops! I'm sorry, I don't know Launchpad's markup well enough. (Can anyone point me to docs on that?)

Where I mentioned Gnome and Red Hat bugs, above, LP made links to LP bugs with those numbers. Those bugs have no connection here. The Red Hat bug that I gave the full hyperlink for, is correct. Thanks.

tags: added: patch
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "libwacom-tablet-description-fix.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report.

[This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.]

Revision history for this message
Rudiger Wolf (rudiger-wolf) wrote :

The fix in #19 works for me as well.

Revision history for this message
Timo Aaltonen (tjaalton) wrote :

uploaded the patch for libwacom to precise-proposed.

Changed in libwacom (Ubuntu):
status: Fix Released → In Progress
Revision history for this message
Edward Donovan (edward.donovan) wrote :

Thanks!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libwacom - 0.4-1ubuntu1

---------------
libwacom (0.4-1ubuntu1) precise-proposed; urgency=low

  * Merge from debian unstable, remaining changes: none.
  * Add libwacom-tablet-description-fix.patch which adds a new stylus id
    for the bamboo-pen-and-touch definition so that gnome-settings-daemon
    won't crash due to an unknown stylus, thanks Edward Donovan!
    (LP: #934445)
 -- Timo Aaltonen <email address hidden> Fri, 30 Mar 2012 13:10:06 +0300

Changed in libwacom (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Edward Donovan (edward.donovan) wrote :

Sooo...since it was libwacom that turned out to need patching, I'm not sure how to manage the other projects in this bug report.

Shall we mark it closed for gnome-settings-daemon? In Ubuntu, at least?

(Unless we consider it a bug that g-s-d crashes, rather than surviving libwacom's problem. Some upstream discussion mentions that. But if we did, it might be best to file a separate bug.)

I don't have much experience with that sort of question, yet, but I'd like to close out the report as cleanly as I can. Thanks.

Revision history for this message
Sebastien Bacher (seb128) wrote :

we should still have g-s-d not go down on such issues so we need to keep that part until it's sorted out

Revision history for this message
Edward Donovan (edward.donovan) wrote :

Great; thank you Sebastien.

Changed in gnome-settings-daemon:
status: Confirmed → Invalid
Revision history for this message
Sebastien Bacher (seb128) wrote :

there has been no recent duplicate and upstream said it's not a GNOME bug, seems the libwacom update fixed it, closing the bug

Changed in gnome-settings-daemon (Ubuntu):
status: Triaged → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.