Xorg assert failure: Xorg: ../src/evdev-mt-touchpad-tap.c:1002: tp_tap_handle_state: Assertion `tp->tap.nfingers_down > 0' failed.

Bug #1751086 reported by Domenico Verde
40
This bug affects 3 people
Affects Status Importance Assigned to Milestone
libinput
Fix Released
Medium
libinput (Ubuntu)
Fix Released
High
Unassigned

Bug Description

I found this bug while cleaning my touchpad. Pressing and moving it, it started to move cursor until it stopped moving for multitouch gestures. While pressing and moving my finger quickly, Xorg crashed and it showed some colored and short lines on the upper left part of the display. This, if done again, forces to crash.

ProblemType: Crash
DistroRelease: Ubuntu 18.04
Package: xserver-xorg-core 2:1.19.6-1ubuntu1
ProcVersionSignature: Ubuntu 4.13.0-36.40-generic 4.13.13
Uname: Linux 4.13.0-36-generic x86_64
ApportVersion: 2.20.8-0ubuntu10
Architecture: amd64
AssertionMessage: Xorg: ../src/evdev-mt-touchpad-tap.c:1002: tp_tap_handle_state: Assertion `tp->tap.nfingers_down > 0' failed.
CompizPlugins: No value set for `/apps/compiz-1/general/screen0/options/active_plugins'
CompositorRunning: None
CrashCounter: 1
CurrentDesktop: ubuntu:GNOME
Date: Thu Feb 22 16:42:55 2018
DistUpgraded: 2018-02-22 16:14:14,915 DEBUG Running PostInstallScript: './xorg_fix_proprietary.py'
DistroCodename: bionic
DistroVariant: ubuntu
DkmsStatus:
 r8168, 8.045.08, 4.13.0-32-generic, x86_64: installed
 r8168, 8.045.08, 4.13.0-36-generic, x86_64: installed
ExecutablePath: /usr/lib/xorg/Xorg
ExtraDebuggingInterest: Yes
GraphicsCard:
 Intel Corporation HD Graphics 520 [8086:1916] (rev 07) (prog-if 00 [VGA controller])
   Subsystem: Hewlett-Packard Company HD Graphics 520 [103c:8136]
   Subsystem: Hewlett-Packard Company Radeon R5 M330 [103c:8136]
InstallationDate: Installed on 2017-11-23 (90 days ago)
InstallationMedia: Ubuntu 17.10 "Artful Aardvark" - Release amd64 (20171018)
MachineType: HP HP Notebook
ProcCmdline: /usr/lib/xorg/Xorg vt2 -displayfd 3 -auth /run/user/1000/gdm/Xauthority -background none -noreset -keeptty -verbose 3
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.13.0-36-generic.efi.signed root=UUID=b2348b07-e7c3-4656-8070-b4693379c731 ro quiet splash vt.handoff=1
Signal: 6
SourcePackage: xorg-server
StacktraceTop:
 __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fa4955ef13b "tp->tap.nfingers_down > 0", file=file@entry=0x7fa4955ef178 "../src/evdev-mt-touchpad-tap.c", line=line@entry=1002, function=function@entry=0x7fa4955ef470 "tp_tap_handle_state") at assert.c:92
 __GI___assert_fail (assertion=0x7fa4955ef13b "tp->tap.nfingers_down > 0", file=0x7fa4955ef178 "../src/evdev-mt-touchpad-tap.c", line=1002, function=0x7fa4955ef470 "tp_tap_handle_state") at assert.c:101
 () at /usr/lib/x86_64-linux-gnu/libinput.so.10
 () at /usr/lib/x86_64-linux-gnu/libinput.so.10
 () at /usr/lib/x86_64-linux-gnu/libinput.so.10
Title: Xorg assert failure: Xorg: ../src/evdev-mt-touchpad-tap.c:1002: tp_tap_handle_state: Assertion `tp->tap.nfingers_down > 0' failed.
UpgradeStatus: Upgraded to bionic on 2018-02-22 (0 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
dmi.bios.date: 12/25/2015
dmi.bios.vendor: Insyde
dmi.bios.version: F.1E
dmi.board.asset.tag: Type2 - Board Asset Tag
dmi.board.name: 8136
dmi.board.vendor: HP
dmi.board.version: 31.35
dmi.chassis.asset.tag: Chassis Asset Tag
dmi.chassis.type: 10
dmi.chassis.vendor: HP
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.1E:bd12/25/2015:svnHP:pnHPNotebook:pvrType1ProductConfigId:rvnHP:rn8136:rvr31.35:cvnHP:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV G=N L=CON B=HP
dmi.product.name: HP Notebook
dmi.product.version: Type1ProductConfigId
dmi.sys.vendor: HP
version.compiz: compiz N/A
version.libdrm2: libdrm2 2.4.90-1
version.libgl1-mesa-dri: libgl1-mesa-dri 17.3.3-0ubuntu1
version.libgl1-mesa-glx: libgl1-mesa-glx 17.3.3-0ubuntu1
version.xserver-xorg-core: xserver-xorg-core 2:1.19.6-1ubuntu1
version.xserver-xorg-input-evdev: xserver-xorg-input-evdev N/A
version.xserver-xorg-video-ati: xserver-xorg-video-ati 1:7.10.0-1
version.xserver-xorg-video-intel: xserver-xorg-video-intel 2:2.99.917+git20171229-1
version.xserver-xorg-video-nouveau: xserver-xorg-video-nouveau 1:1.0.15-2

Revision history for this message
Domenico Verde (lordribblesdale) wrote :
Revision history for this message
Apport retracing service (apport) wrote :

StacktraceTop:
 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51
 __GI_abort () at abort.c:90
 __assert_fail_base (fmt=<optimized out>, assertion=assertion@entry=0x7fa4955ef13b "tp->tap.nfingers_down > 0", file=file@entry=0x7fa4955ef178 "../src/evdev-mt-touchpad-tap.c", line=line@entry=1002, function=function@entry=0x7fa4955ef470 <__PRETTY_FUNCTION__.10084> "tp_tap_handle_state") at assert.c:92
 __GI___assert_fail (assertion=assertion@entry=0x7fa4955ef13b "tp->tap.nfingers_down > 0", file=file@entry=0x7fa4955ef178 "../src/evdev-mt-touchpad-tap.c", line=line@entry=1002, function=function@entry=0x7fa4955ef470 <__PRETTY_FUNCTION__.10084> "tp_tap_handle_state") at assert.c:101
 tp_tap_handle_state (tp=tp@entry=0x562a5fbf89e0, time=time@entry=1652749044) at ../src/evdev-mt-touchpad-tap.c:1002

Revision history for this message
Apport retracing service (apport) wrote : Stacktrace.txt
Revision history for this message
Apport retracing service (apport) wrote : StacktraceSource.txt
Revision history for this message
Apport retracing service (apport) wrote : ThreadStacktrace.txt
Changed in xorg-server (Ubuntu):
importance: Undecided → Medium
tags: removed: need-amd64-retrace
Revision history for this message
Sebastien Bacher (seb128) wrote :

thank for your bug report, that's a known libinput issue, a fix has been commited upstream recently, see https://bugs.freedesktop.org/show_bug.cgi?id=105160

information type: Private → Public
affects: xorg-server (Ubuntu) → libinput (Ubuntu)
Changed in libinput (Ubuntu):
status: New → Fix Committed
importance: Medium → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Interesting it's a different assertion to bug 1750664. But hopefully the same fix applies?

Changed in libinput (Ubuntu):
status: Fix Committed → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

P.S. Nothing has been committed or even proposed to Ubuntu yet. So not Fix Committed yet.

Changed in libinput:
importance: Unknown → Medium
status: Unknown → Confirmed
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libinput:
status: Confirmed → Incomplete
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libinput:
importance: Medium → Unknown
status: Incomplete → Unknown
Changed in libinput:
importance: Unknown → Medium
status: Unknown → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :
Changed in libinput:
importance: Medium → Unknown
status: Fix Released → Unknown
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Incomplete. Looks like it came from an older version of libinput so we'll wait and see if this reoccurs or has already been fixed.

Changed in libinput (Ubuntu):
status: Confirmed → Incomplete
Changed in libinput:
importance: Unknown → Medium
status: Unknown → Invalid
Revision history for this message
Andreas Hasenack (ahasenack) wrote :
Download full text (4.6 KiB)

I can trigger this reliably with my thinkpad X1 5th gen on bionic's xorg:
Mar 20 11:08:19 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (II) Axis 0x35 value 0 is outside expected range [1045, 5896]
Mar 20 11:08:19 nsnx /usr/lib/gdm3/gdm-x-session[16817]: See https://wayland.freedesktop.org/libinput/doc/1.10.1//absolute_coordinate_ranges.html for details
Mar 20 11:08:19 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) event5 - SynPS/2 Synaptics TouchPad: libinput bug: invalid tap event TAP_EVENT_PALM in state TAP_STATE_TAPPED
Mar 20 11:08:19 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) event5 - SynPS/2 Synaptics TouchPad: libinput bug: invalid tap event TAP_EVENT_PALM in state TAP_STATE_TAPPED
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: Xorg: ../src/evdev-mt-touchpad-tap.c:1002: tp_tap_handle_state: Assertion `tp->tap.nfingers_down > 0' failed.
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE)
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) Backtrace:
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 0: /usr/lib/xorg/Xorg (xorg_backtrace+0x4d) [0x565247c457fd]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 1: /usr/lib/xorg/Xorg (0x565247a8d000+0x1bc599) [0x565247c49599]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 2: /lib/x86_64-linux-gnu/libpthread.so.0 (0x7f28775c1000+0x12890) [0x7f28775d3890]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 3: /lib/x86_64-linux-gnu/libc.so.6 (gsignal+0xc7) [0x7f287720ee97]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 4: /lib/x86_64-linux-gnu/libc.so.6 (abort+0x141) [0x7f2877210801]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 5: /lib/x86_64-linux-gnu/libc.so.6 (0x7f28771d0000+0x3039a) [0x7f287720039a]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 6: /lib/x86_64-linux-gnu/libc.so.6 (0x7f28771d0000+0x30412) [0x7f2877200412]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 7: /usr/lib/x86_64-linux-gnu/libinput.so.10 (0x7f28741aa000+0x1da40) [0x7f28741c7a40]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 8: /usr/lib/x86_64-linux-gnu/libinput.so.10 (0x7f28741aa000+0x18e17) [0x7f28741c2e17]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 9: /usr/lib/x86_64-linux-gnu/libinput.so.10 (0x7f28741aa000+0x1ad90) [0x7f28741c4d90]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 10: /usr/lib/x86_64-linux-gnu/libinput.so.10 (0x7f28741aa000+0xf5e1) [0x7f28741b95e1]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 11: /usr/lib/x86_64-linux-gnu/libinput.so.10 (libinput_dispatch+0x5f) [0x7f28741b560f]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 12: /usr/lib/xorg/modules/input/libinput_drv.so (0x7f28743fa000+0x8988) [0x7f2874402988]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 13: /usr/lib/xorg/Xorg (0x565247a8d000+0x1ba973) [0x565247c47973]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 14: /usr/lib/xorg/Xorg (0x565247a8d000+0x1bd071) [0x565247c4a071]
Mar 20 11:08:29 nsnx /usr/lib/gdm3/gdm-x-session[16817]: (EE) 15: /usr/lib/xorg/Xorg (0x565247a8d000+0x1ba7be) [0x565247c47...

Read more...

Changed in libinput (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

xserver-xorg 1:7.7+19ubuntu5 currently

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Andreas,

Please update your system and wait till you get the new version of libinput: 1.10.3-2
And then retest.

Revision history for this message
Andreas Hasenack (ahasenack) wrote :

With libinput 1.10.3-2, the crash doesn't happen anymore. I just get these EE lines in /var/log/syslog when I repeat the gesture that previously crashed it (and these were there with the older libinput as well):

Mar 21 08:50:26 nsnx /usr/lib/gdm3/gdm-x-session[4968]: (EE) event5 - SynPS/2 Synaptics TouchPad: kernel bug: Touch jump detected and discarded.
Mar 21 08:50:26 nsnx /usr/lib/gdm3/gdm-x-session[4968]: See https://wayland.freedesktop.org/libinput/doc/1.10.3/touchpad_jumping_cursor.html for details
Mar 21 08:50:27 nsnx /usr/lib/gdm3/gdm-x-session[4968]: (EE) event5 - SynPS/2 Synaptics TouchPad: kernel bug: Touch jump detected and discarded.
Mar 21 08:50:27 nsnx /usr/lib/gdm3/gdm-x-session[4968]: See https://wayland.freedesktop.org/libinput/doc/1.10.3/touchpad_jumping_cursor.html for details

Changed in libinput (Ubuntu):
status: Confirmed → Fix Released
Changed in libinput:
status: Invalid → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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