Bug 393886

Summary: Krita 4.0.1 appimage on Linux Mint 18.3 on Thinkpad x201 Tablet, freezes on palm touch + stylus to the touchscreen
Product: [Applications] krita Reporter: Elad Hen <eladhen2>
Component: Tablets (tablet issues are only very rarely bugs in Krita!)Assignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: eladhen2, halla
Priority: NOR    
Version First Reported In: 4.0.1   
Target Milestone: ---   
Platform: Mint (Ubuntu based)   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Elad Hen 2018-05-05 19:55:29 UTC
I've got a Thinkpad x201 Tablet, a laptop with a wacom screen an stylus. When running the 4.0.1 appimage Krita freezes and requires a forced shutdown the moment I touch the screen with both the stylus and any part of my palm or finger.

Some system info:

$ inxi -Fz
System:    Host: X201 Kernel: 4.15.0-15-generic x86_64 (64 bit)
           Desktop: Cinnamon 3.6.7  Distro: Linux Mint 18.3 Sylvia
Machine:   System: LENOVO (portable) product: 2985G3G v: ThinkPad X201 Tablet
           Mobo: LENOVO model: 2985G3G
           Bios: LENOVO v: 6QET62WW (1.32 ) date: 12/17/2010
CPU:       Dual core Intel Core i7 L 640 (-HT-MCP-) cache: 4096 KB 
           clock speeds: max: 2134 MHz 1: 1436 MHz 2: 1427 MHz 3: 1333 MHz
           4: 1388 MHz
Graphics:  Card: Intel Core Processor Integrated Graphics Controller
           Display Server: X.Org 1.18.4 drivers: intel (unloaded: fbdev,vesa)
           Resolution: 1280x800@60.00hz
           GLX Renderer: Mesa DRI Intel Ironlake Mobile
           GLX Version: 2.1 Mesa 17.2.8
Audio:     Card Intel 5 Series/3400 Series High Definition Audio
           driver: snd_hda_intel
           Sound: Advanced Linux Sound Architecture v: k4.15.0-15-generic
Network:   Card-1: Intel 82577LM Gigabit Network Connection driver: e1000e
           IF: enp0s25 state: down mac: <filter>
           Card-2: Intel Centrino Ultimate-N 6300 driver: iwlwifi
           IF: wlp2s0 state: up mac: <filter>
Drives:    HDD Total Size: 500.1GB (4.8% used)
           ID-1: /dev/sda model: HITACHI_HTS72505 size: 500.1GB
Partition: ID-1: / size: 28G used: 9.4G (36%) fs: ext4 dev: /dev/sda1
           ID-2: /home size: 422G used: 4.4G (2%) fs: ext4 dev: /dev/sda5
           ID-3: swap-1 size: 10.00GB used: 0.00GB (0%) fs: swap dev: /dev/sda6
RAID:      No RAID devices: /proc/mdstat, md_mod kernel module present
Sensors:   System Temperatures: cpu: 52.0C mobo: 0.0C
           Fan Speeds (in rpm): cpu: 1959
Info:      Processes: 206 Uptime: 22 min Memory: 820.7/7773.1MB
           Client: Shell (bash) inxi: 2.2.35 


$ xsetwacom list
Wacom Serial Penabled 2FG Touchscreen Pen stylus	id: 14	type: STYLUS    
Wacom Serial Penabled 2FG Touchscreen Pen eraser	id: 16	type: ERASER
Comment 1 Halla Rempt 2018-05-08 07:58:39 UTC
I'm sorry, but I don't have access to this hardware. On a Lenovo Yoga 920 (which also has a touch screen) running KDE Neon and the plasma desktop, this isn't reproducible, so it might have something to do with the window manager, but we cannot be sure :-(
Comment 2 Elad Hen 2018-05-08 16:19:54 UTC
(In reply to Boudewijn Rempt from comment #1)
> I'm sorry, but I don't have access to this hardware. On a Lenovo Yoga 920
> (which also has a touch screen) running KDE Neon and the plasma desktop,
> this isn't reproducible, so it might have something to do with the window
> manager, but we cannot be sure :-(

It *might* be a WM problem. On KDE neon Krita 4.0.1 worked ok, but there it wass installed from the repos, and it wasn't an appimage. On the other hand, running Krita 3.3.3 for Flatpak on Cinnamon has no problem, and Krita 2.9 from the Ubuntu 16.04 repos also works without a problem, so I'm not so certain it isn't a problem with the appimage.
Comment 3 Halla Rempt 2018-05-08 18:52:58 UTC
It could be a problem with the version of Qt that each of these versions you mention use.
Comment 4 Halla Rempt 2018-05-10 11:37:07 UTC
Hm, and I guess it's also going to be really tricky to create a tablet log so we can see what kind of events the system sends to Krita. To be honest, I don't think we can do much about this issue.
Comment 5 Elad Hen 2018-05-12 08:58:17 UTC
(In reply to Boudewijn Rempt from comment #4)
> Hm, and I guess it's also going to be really tricky to create a tablet log
> so we can see what kind of events the system sends to Krita. To be honest, I
> don't think we can do much about this issue.

Tell me what to do and I'll try doing it. I can look through logs and run whatever you want with xinput or xwacomset or whatever is needed. I want this solved and willing to help. 


also, just tried the 4.0.2 appimage and the problem persists...
Comment 6 Elad Hen 2018-05-28 06:32:41 UTC
The flatpak version (4.0.3 git 17c7d16) doesn't have this bug so it seems definitely to be an Appimage issue.
Comment 7 Halla Rempt 2018-05-28 15:09:41 UTC
Well, that probably uses a different version of Qt.
Comment 8 Halla Rempt 2018-06-20 21:33:06 UTC
I'm sorry, but we just cannot do anything about this in Krita. It must be dependent on the version of Qt.