Bug 402155 - Regression: Krita immediately crashes after entering the window with a tablet pen.
Summary: Regression: Krita immediately crashes after entering the window with a tablet...
Status: RESOLVED DOWNSTREAM
Alias: None
Product: krita
Classification: Applications
Component: Tablets (tablet issues are only very rarely bugs in Krita!) (show other bugs)
Version: 4.1.7
Platform: unspecified Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
: 402169 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-15 14:33 UTC by Martin Capitanio
Modified: 2018-12-16 12:42 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
terminal output (backtrace) (40.84 KB, text/plain)
2018-12-15 14:33 UTC, Martin Capitanio
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Capitanio 2018-12-15 14:33:12 UTC
Created attachment 116939 [details]
terminal output (backtrace)

SUMMARY

* Worked in Krita v4.1.5 flatpack or appimage
* Broken after an update to Krita v4.1.7

(tested the flatpack and appimage distibution
https://download.kde.org/stable/krita/4.1.7/krita-4.1.7-x86_64.appimage )

* Reverting the update to v1.4.5 fixes the issue.
( https://download.kde.org/stable/krita/4.1.5/ )

OS Ubuntu 18.04 LTS
uname -a
Linux t2t 4.15.0-42-generic #45-Ubuntu SMP Thu Nov 15 19:32:57 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

xsetwacom --list devices
Wacom Intuos4 4x6 Pad pad       	id: 12	type: PAD       
Wacom Intuos4 4x6 Pen cursor    	id: 15	type: CURSOR    
Wacom Intuos4 4x6 Pen stylus    	id: 13	type: STYLUS    
Wacom Intuos4 4x6 Pen eraser    	id: 14	type: ERASER

STEPS TO REPRODUCE
1. install Krita flatpack or appimage v4.1.7
2. enter a wacom tablet pen in the Krita app window  
3. Krita crashes with a "double free or corruption"

Notes
* the tablet pad/wheel works as intended
* absolute or relative mode setting doesn't matter
* other apps e.g. gimp, blender, godot, … work fine

OBSERVED RESULT 
terminal output after crash:
*** Error in `krita': double free or corruption (fasttop): 0x000000000b85e020 ***
see attachment
Comment 1 Halla Rempt 2018-12-15 14:44:48 UTC
Hi Martin,

It looks like the issue with Qt 5.12 which we actually fixed in 4.1.7. However, the appimage does not use Qt 5.12, and I've just tested it on my laptop with a built-in wacom digitizer on Ubuntu 18.04 and I don't get a crash like this. 

Could you also give the Lime ppa a try, and if that also crashes for you, install the debug symbols? See https://launchpad.net/~kritalime/+archive/ubuntu/ppa
Comment 2 Martin Capitanio 2018-12-15 18:30:08 UTC
> I've just tested it on my laptop with a built-in wacom digitizer on Ubuntu 18.04 and I don't get a crash like this. 

Hi Rempt,

sorry, you're right. I actually thought to have launched the appimage version,
but it was the flatpack one. The kde appimage 4.1.7 works fine.

Now, hopefully, I've filled the issue in the right bug tracker ;-)
https://github.com/flathub/org.kde.krita/issues/12

Thanks!
Comment 3 Halla Rempt 2018-12-15 19:54:29 UTC
Thanks for checking!
Comment 4 Halla Rempt 2018-12-15 20:12:41 UTC
*** Bug 402169 has been marked as a duplicate of this bug. ***
Comment 5 Halla Rempt 2018-12-16 12:42:04 UTC
Git commit 3829dcea6d9d638582a39df349a407f90ce40d66 by Boudewijn Rempt.
Committed on 16/12/2018 at 12:39.
Pushed by rempt into branch 'master'.

Qt-5.11.3 also has bug QTBUG-72488
Related: bug 401988, bug 401988, bug 402188, bug 402169

M  +4    -4    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/3829dcea6d9d638582a39df349a407f90ce40d66
Comment 6 Halla Rempt 2018-12-16 12:42:18 UTC
Git commit 6b7ab506305126c4f594874555010b0781f467a4 by Boudewijn Rempt.
Committed on 16/12/2018 at 12:42.
Pushed by rempt into branch 'krita/4.1'.

Qt-5.11.3 also has bug QTBUG-72488
Related: bug 401988, bug 401988, bug 402188, bug 402169

M  +4    -4    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/6b7ab506305126c4f594874555010b0781f467a4