Bug 401988 - Crash on touching graphic tablet pen on canvas
Summary: Crash on touching graphic tablet pen on canvas
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: 4.2.3
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
: 402054 402844 403225 403337 403672 404379 404809 405125 406747 407408 (view as bug list)
Depends on:
Blocks:
 
Reported: 2018-12-11 05:58 UTC by Raghavendra kamath
Modified: 2019-08-26 18:45 UTC (History)
14 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
gdb of 4.1.6 and 5.12.0 with symbols (5.45 KB, text/plain)
2018-12-11 22:15 UTC, Matt Scheirer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2018-12-11 05:58:37 UTC
Application: krita (4.2.0-pre-alpha (git dab1e85))

Qt Version: 5.12.0
Frameworks Version: 5.53.0
Operating System: Linux 4.19.8-arch1-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I tried to open some kra files which were saved earlier from same krita version

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Aborted
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f9318a48cc0 (LWP 862))]

Thread 24 (Thread 0x7f92a13f4700 (LWP 900)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 23 (Thread 0x7f92a1bf5700 (LWP 899)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 22 (Thread 0x7f92a23f6700 (LWP 898)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 21 (Thread 0x7f92a2bf7700 (LWP 897)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 20 (Thread 0x7f92a33f8700 (LWP 896)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 19 (Thread 0x7f929b3f8700 (LWP 895)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 18 (Thread 0x7f92a3bf9700 (LWP 894)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 17 (Thread 0x7f92a43fa700 (LWP 893)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 16 (Thread 0x7f92a4ffb700 (LWP 892)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 15 (Thread 0x7f92a57fc700 (LWP 891)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 14 (Thread 0x7f92a5ffd700 (LWP 890)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7f92c8bfa700 (LWP 889)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7f92cb7fe700 (LWP 888)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7f92caffd700 (LWP 887)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7f92c9ffb700 (LWP 886)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7f92ca7fc700 (LWP 885)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7f92f5da2700 (LWP 875)):
#0  0x00007f931cd6fef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007f931de81a59 in QWaitCondition::wait(QMutex*, QDeadlineTimer) () from /usr/lib/libQt5Core.so.5
#2  0x00007f931de81b97 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007f931de7fbb4 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7f92f65a3700 (LWP 874)):
#0  0x00007f931b87a3a9 in g_mutex_lock () from /usr/lib/libglib-2.0.so.0
#1  0x00007f931b8ca95e in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#2  0x00007f931b8cbe86 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007f931e08d5c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007f931de7a5c9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#7  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7f92f6deb700 (LWP 871)):
#0  0x00007f931d9bbc21 in poll () from /usr/lib/libc.so.6
#1  0x00007f931b8cbee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f931e08d5c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f931de7a5c9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f9316348e5b in ?? () from /usr/lib/libQt5Quick.so.5
#7  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7f93065e8700 (LWP 870)):
#0  0x00007f931d9bbc21 in poll () from /usr/lib/libc.so.6
#1  0x00007f931b8cbee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f931e08d5c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f931de7a5c9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f9316084b89 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7f9305de7700 (LWP 868)):
#0  0x00007f931d9936a8 in nanosleep () from /usr/lib/libc.so.6
#1  0x00007f931e08cf0f in ?? () from /usr/lib/libQt5Core.so.5
#2  0x00007f932148370a in KisTileDataSwapper::run (this=0x7f9321791c80 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /home/raghu/kf5/src/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#3  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7f9306f1c700 (LWP 866)):
#0  0x00007f931d9b77a4 in read () from /usr/lib/libc.so.6
#1  0x00007f931b87a781 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f931b8caa50 in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#3  0x00007f931b8cbe86 in ?? () from /usr/lib/libglib-2.0.so.0
#4  0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#5  0x00007f931e08d5c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#7  0x00007f931de7a5c9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#8  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7f930e3d3700 (LWP 864)):
#0  0x00007f931d9bbc21 in poll () from /usr/lib/libc.so.6
#1  0x00007f931b8cbee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007f931e08d5c4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007f931de7a5c9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007f9320561ba6 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007f931de7b9cc in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007f931cd69a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007f931d9c6b23 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7f9318a48cc0 (LWP 862)):
[KCrash Handler]
#6  0x00007f931d902d7f in raise () from /usr/lib/libc.so.6
#7  0x00007f931d8ed672 in abort () from /usr/lib/libc.so.6
#8  0x00007f931d945878 in __libc_message () from /usr/lib/libc.so.6
#9  0x00007f931d94c18a in malloc_printerr () from /usr/lib/libc.so.6
#10 0x00007f931d94db27 in _int_free () from /usr/lib/libc.so.6
#11 0x00007f931e4198c1 in QTabletEvent::~QTabletEvent() () from /usr/lib/libQt5Gui.so.5
#12 0x00007f9322801892 in processTabletEvent (e=0x560bfba66990) at /home/raghu/kf5/src/libs/ui/input/wintab/qxcbconnection.cpp:681
#13 0x00007f93227fb505 in QXcbConnection::xi2ReportTabletEvent (this=this@entry=0x560be2e99240, tabletData=..., event=event@entry=0x7f9310016eb0) at /home/raghu/kf5/src/libs/ui/input/wintab/qxcbconnection_xi2.cpp:959
#14 0x00007f93227fb864 in QXcbConnection::xi2HandleTabletEvent (this=0x560be2e99240, event=0x7f9310016eb0, tabletData=0x560be32a01c8, window=<optimized out>) at /home/raghu/kf5/src/libs/ui/input/wintab/qxcbconnection_xi2.cpp:798
#15 0x00007f93227ff519 in QXcbConnection::xi2HandleEvent (this=0x560be2e99240, event=0x7f9310016eb0) at /usr/include/qt/QtCore/qarraydata.h:211
#16 0x00007f9322802bf8 in KisXi2EventFilter::nativeEventFilter (eventType=..., result=<optimized out>, message=0x7f9310018730, this=0x7f932368b810 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>) at /home/raghu/kf5/src/libs/ui/input/wintab/kis_xi2_event_filter.cpp:115
#17 KisXi2EventFilter::nativeEventFilter (this=0x7f932368b810 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>, eventType=..., message=0x7f9310018730, result=<optimized out>) at /home/raghu/kf5/src/libs/ui/input/wintab/kis_xi2_event_filter.cpp:96
#18 0x00007f931e0353bf in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /usr/lib/libQt5Core.so.5
#19 0x00007f93185a2cc2 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/lib/libQt5XcbQpa.so.5
#20 0x00007f93185a3a54 in QXcbConnection::processXcbEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5XcbQpa.so.5
#21 0x00007f93185ce994 in ?? () from /usr/lib/libQt5XcbQpa.so.5
#22 0x00007f931b8ca3cf in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#23 0x00007f931b8cbf89 in ?? () from /usr/lib/libglib-2.0.so.0
#24 0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#25 0x00007f931e08d62e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#26 0x00007f932248b5af in KisDelayedSaveDialog::blockIfImageIsBusy (this=this@entry=0x7fffa917bf20) at /usr/include/qt/QtCore/qflags.h:120
#27 0x00007f9322798dda in KisViewManager::KisViewManagerPrivate::blockUntilOperationsFinishedImpl (this=<optimized out>, image=..., force=<optimized out>) at /home/raghu/kf5/src/libs/ui/KisViewManager.cpp:826
#28 0x00007f9322799357 in KisViewManager::blockUntilOperationsFinishedForced (this=<optimized out>, image=...) at /usr/include/c++/8.2.1/bits/atomic_base.h:295
#29 0x00007f9322401e18 in KisCanvas2::setDisplayFilter (this=0x560bec355310, displayFilter=...) at /usr/include/c++/8.2.1/bits/atomic_base.h:295
#30 0x00007f93076e4db5 in LutDockerDock::updateDisplaySettings (this=0x560bee24d1f0) at /usr/include/qt/QtCore/qsharedpointer_impl.h:317
#31 0x00007f93076e685f in LutDockerDock::refillControls (this=0x560bee24d1f0) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:580
#32 0x00007f93076e6ec8 in LutDockerDock::resetOcioConfiguration (this=0x560bee24d1f0) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:485
#33 0x00007f93076e9358 in LutDockerDock::setCanvas (this=0x560bee24d1f0, _canvas=<optimized out>) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:192
#34 0x00007f9320f375c8 in KoCanvasControllerWidget::Private::activate (this=<optimized out>) at /home/raghu/kf5/src/libs/flake/KoCanvasControllerWidget.cpp:148
#35 0x00007f931e062b62 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#36 0x00007f931ea47e8c in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#37 0x00007f931eaeea4f in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#38 0x00007f931eaf1765 in QAbstractScrollArea::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#39 0x00007f931ea06e34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#40 0x00007f931ea0e671 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#41 0x00007f932272e777 in KisApplication::notify (this=<optimized out>, receiver=0x560bec3552b0, event=0x560bf1eeeec0) at /home/raghu/kf5/src/libs/ui/KisApplication.cpp:608
#42 0x00007f931e0378f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#43 0x00007f931e03a998 in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#44 0x00007f931e08dfd4 in ?? () from /usr/lib/libQt5Core.so.5
#45 0x00007f931b8ca3cf in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#46 0x00007f931b8cbf89 in ?? () from /usr/lib/libglib-2.0.so.0
#47 0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#48 0x00007f931e08d62e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#49 0x00007f932248b5af in KisDelayedSaveDialog::blockIfImageIsBusy (this=this@entry=0x7fffa917cab0) at /usr/include/qt/QtCore/qflags.h:120
#50 0x00007f9322798dda in KisViewManager::KisViewManagerPrivate::blockUntilOperationsFinishedImpl (this=<optimized out>, image=..., force=<optimized out>) at /home/raghu/kf5/src/libs/ui/KisViewManager.cpp:826
#51 0x00007f9322799357 in KisViewManager::blockUntilOperationsFinishedForced (this=<optimized out>, image=...) at /usr/include/c++/8.2.1/bits/atomic_base.h:295
#52 0x00007f9322401e18 in KisCanvas2::setDisplayFilter (this=0x560bec355310, displayFilter=...) at /usr/include/c++/8.2.1/bits/atomic_base.h:295
#53 0x00007f93076e4db5 in LutDockerDock::updateDisplaySettings (this=0x560bee24d1f0) at /usr/include/qt/QtCore/qsharedpointer_impl.h:317
#54 0x00007f93076e685f in LutDockerDock::refillControls (this=0x560bee24d1f0) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:580
#55 0x00007f93076e6ec8 in LutDockerDock::resetOcioConfiguration (this=0x560bee24d1f0) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:485
#56 0x00007f93076e9358 in LutDockerDock::setCanvas (this=0x560bee24d1f0, _canvas=<optimized out>) at /home/raghu/kf5/src/plugins/dockers/lut/lutdocker_dock.cpp:192
#57 0x00007f9320f375c8 in KoCanvasControllerWidget::Private::activate (this=<optimized out>) at /home/raghu/kf5/src/libs/flake/KoCanvasControllerWidget.cpp:148
#58 0x00007f932279714a in KisViewManager::setCurrentView (this=0x560bec375b40, view=view@entry=0x560bec237380) at /usr/include/c++/8.2.1/bits/atomic_base.h:390
#59 0x00007f932275e3f0 in KisMainWindow::setActiveView (this=this@entry=0x560bec34cee0, view=view@entry=0x560bec237380) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:1306
#60 0x00007f9322760d82 in KisMainWindow::showView (this=0x560bec34cee0, imageView=0x560bec237380) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:645
#61 0x00007f932275dc3a in KisMainWindow::addView (this=this@entry=0x560bec34cee0, view=view@entry=0x560bec237380) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:573
#62 0x00007f932275dd5c in KisMainWindow::addViewAndNotifyLoadingCompleted (this=this@entry=0x560bec34cee0, document=document@entry=0x7f9310008730) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:903
#63 0x00007f932275de47 in KisMainWindow::slotLoadCompleted (this=0x560bec34cee0) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:925
#64 0x00007f932276b5a0 in KisMainWindow::qt_static_metacall (_o=0x560bec34cee0, _c=<optimized out>, _id=<optimized out>, _a=0x7fffa917d230) at /home/raghu/kf5/build/libs/ui/kritaui_autogen/include/moc_KisMainWindow.cpp:327
#65 0x00007f931e06228c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#66 0x00007f932273c31f in KisDocument::openUrlInternal (this=0x7f9310008730, url=...) at /home/raghu/kf5/src/libs/ui/KisDocument.cpp:1623
#67 0x00007f932273c6ef in KisDocument::openUrl (this=0x7f9310008730, _url=..., flags=...) at /home/raghu/kf5/src/libs/ui/KisDocument.cpp:1120
#68 0x00007f932275e05d in KisMainWindow::openDocumentInternal (this=0x560bec34cee0, url=..., flags=...) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:869
#69 0x00007f9322763c3e in KisMainWindow::openDocument (this=this@entry=0x560bec34cee0, url=..., flags=flags@entry=...) at /home/raghu/kf5/src/libs/ui/KisMainWindow.cpp:840
#70 0x00007f93225abbbe in KisWelcomePageWidget::recentDocumentClicked (this=<optimized out>, index=...) at /usr/include/qt/QtCore/qflags.h:120
#71 0x00007f9322817c95 in KisWelcomePageWidget::qt_static_metacall (_o=<optimized out>, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/raghu/kf5/build/libs/ui/kritaui_autogen/EWIEGA46WW/moc_KisWelcomePageWidget.cpp:103
#72 0x00007f931e06228c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#73 0x00007f931ec5c166 in QAbstractItemView::clicked(QModelIndex const&) () from /usr/lib/libQt5Widgets.so.5
#74 0x00007f931ec5f8fb in QAbstractItemView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#75 0x00007f931eca1960 in QListView::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libQt5Widgets.so.5
#76 0x00007f931ea479d8 in QWidget::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#77 0x00007f931eaeea4f in QFrame::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#78 0x00007f931ec68e2c in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#79 0x00007f931e03760b in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#80 0x00007f931ea06e24 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#81 0x00007f931ea0e8b9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#82 0x00007f932272e777 in KisApplication::notify (this=<optimized out>, receiver=0x560bec3b9d30, event=0x7fffa917dea0) at /home/raghu/kf5/src/libs/ui/KisApplication.cpp:608
#83 0x00007f931e0378f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#84 0x00007f931ea0db98 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool, bool) () from /usr/lib/libQt5Widgets.so.5
#85 0x00007f931ea62d2d in ?? () from /usr/lib/libQt5Widgets.so.5
#86 0x00007f931ea65c67 in ?? () from /usr/lib/libQt5Widgets.so.5
#87 0x00007f931ea06e34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#88 0x00007f931ea0e671 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#89 0x00007f932272e777 in KisApplication::notify (this=<optimized out>, receiver=0x560bec4a4770, event=0x7fffa917e390) at /home/raghu/kf5/src/libs/ui/KisApplication.cpp:608
#90 0x00007f931e0378f9 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#91 0x00007f931e4099be in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib/libQt5Gui.so.5
#92 0x00007f931e40ae26 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#93 0x00007f931e3e475c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#94 0x00007f93185ce99c in ?? () from /usr/lib/libQt5XcbQpa.so.5
#95 0x00007f931b8ca3cf in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#96 0x00007f931b8cbf89 in ?? () from /usr/lib/libglib-2.0.so.0
#97 0x00007f931b8cbfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#98 0x00007f931e08d5a9 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#99 0x00007f931e03658c in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#100 0x00007f931e03e896 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#101 0x0000560bdfee8c88 in main (argc=<optimized out>, argv=0x7fffa917ea58) at /home/raghu/kf5/src/krita/main.cc:459
[Inferior 1 (process 862) detached]

Reported using DrKonqi
Comment 1 Raghavendra kamath 2018-12-11 06:15:10 UTC
On further inspection, this only happens when I use pen and not with mouse
Comment 2 Halla Rempt 2018-12-11 07:47:57 UTC
If you're still on Arch Linux, try to rebuild Krita. The crash goes through the lut docker, so it sounds similar to the problem someone on irc had, last night, where things got broken because libopencolorio was removed somehow.
Comment 3 Matt Scheirer 2018-12-11 20:30:05 UTC
I don't think this is either build or packaging related. It seems to be a Qt regression in 5.12. Testing with the latest Krita or QtBase causes double frees in TabletEvent and I can sometimes get a null pointer on destruct.

Currently building 5.12.0 + 4.1.6 and dev + master to produce some gdb traces with symbols. Took forever to hack the outdated AUR qt-base-git package into working...
Comment 4 Matt Scheirer 2018-12-11 22:15:11 UTC
Created attachment 116868 [details]
gdb of 4.1.6 and 5.12.0 with symbols

I'm at a loss. Bisecting this trace led me to https://github.com/qt/qtbase/commit/d2e0e416d4444ccf3c208d6770e32ff0fb04b543 as the culprit. But it was merged into 5.11.3 and I never ran into this bug before 5.12.

At the same time I can generate a myriad of null pointers / double frees poking the canvas and it all comes back to that destructor.
Comment 5 Matt Scheirer 2018-12-11 22:33:48 UTC
Looking back at it there were 6 revisions of the 5.11 package in Arch but Qt 5.11 only had two point releases. That would explain why this is new!

I made an upstream Qt bug for this here: https://bugreports.qt.io/browse/QTBUG-72488
Comment 6 Matt Scheirer 2018-12-11 23:06:56 UTC
You can probably close this - its a Qt bug, not a Krita one. For any other Arch users finding this, revert d2e0e416d4444ccf3c208d6770e32ff0fb04b543 in qt5-base 5.12.0 or just go back to 5.11 until its fixed.
Comment 7 Halla Rempt 2018-12-12 08:57:39 UTC
Thanks for making the bug report!
Comment 8 Halla Rempt 2018-12-12 09:02:15 UTC
Oh! It might be interesting to build Krita with the option USE_QT_XCB=TRUE to disable our forked xcb handling. That will use Qt's xcb (which will cause bugs, like the cursor hanging as in https://bugs.kde.org/show_bug.cgi?id=390642)
Comment 9 Halla Rempt 2018-12-12 12:07:01 UTC
Looks like the problem is that QEvent has a pointer member variable but no copy constructor. The base class qcoreevent has a copy constructor. Krita copies tablet events to put into a motion compressor thing. The pointer member doesn't get copied, there are two tabletevents that own it, both try to delete it.
Comment 10 Halla Rempt 2018-12-12 12:22:01 UTC
Git commit b937eccca0200e32ed5bda7204e4bbf826f53372 by Boudewijn Rempt.
Committed on 12/12/2018 at 12:21.
Pushed by rempt into branch 'master'.

Work around QTBUG-72488

Qt 5.12 now deletes a void pointer member variable of QTabletEvent.
QTableEvent doesn't implement a copy constructor for QTabletEvent,
but Krita does copy events when compressing move events. Both
the original and the copy try to delete the pointer, and poof.

This is strictly a workaround, only valid for Qt 5.12 and should
be removed if this bug is fixed in Qt 5.12.1 or later.

M  +5    -0    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/b937eccca0200e32ed5bda7204e4bbf826f53372
Comment 11 Halla Rempt 2018-12-12 12:22:01 UTC
Git commit b937eccca0200e32ed5bda7204e4bbf826f53372 by Boudewijn Rempt.
Committed on 12/12/2018 at 12:21.
Pushed by rempt into branch 'master'.

Work around QTBUG-72488

Qt 5.12 now deletes a void pointer member variable of QTabletEvent.
QTableEvent doesn't implement a copy constructor for QTabletEvent,
but Krita does copy events when compressing move events. Both
the original and the copy try to delete the pointer, and poof.

This is strictly a workaround, only valid for Qt 5.12 and should
be removed if this bug is fixed in Qt 5.12.1 or later.

M  +5    -0    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/b937eccca0200e32ed5bda7204e4bbf826f53372
Comment 12 Halla Rempt 2018-12-12 12:23:02 UTC
Git commit 6a8954563586feb7e6324f876c956a054d8afe6b by Boudewijn Rempt.
Committed on 12/12/2018 at 12:22.
Pushed by rempt into branch 'krita/4.1'.

Work around QTBUG-72488

Qt 5.12 now deletes a void pointer member variable of QTabletEvent.
QTableEvent doesn't implement a copy constructor for QTabletEvent,
but Krita does copy events when compressing move events. Both
the original and the copy try to delete the pointer, and poof.

This is strictly a workaround, only valid for Qt 5.12 and should
be removed if this bug is fixed in Qt 5.12.1 or later.

M  +5    -0    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/6a8954563586feb7e6324f876c956a054d8afe6b
Comment 13 Halla Rempt 2018-12-12 12:23:02 UTC
Git commit 6a8954563586feb7e6324f876c956a054d8afe6b by Boudewijn Rempt.
Committed on 12/12/2018 at 12:22.
Pushed by rempt into branch 'krita/4.1'.

Work around QTBUG-72488

Qt 5.12 now deletes a void pointer member variable of QTabletEvent.
QTableEvent doesn't implement a copy constructor for QTabletEvent,
but Krita does copy events when compressing move events. Both
the original and the copy try to delete the pointer, and poof.

This is strictly a workaround, only valid for Qt 5.12 and should
be removed if this bug is fixed in Qt 5.12.1 or later.

M  +5    -0    libs/ui/input/kis_input_manager.cpp

https://commits.kde.org/krita/6a8954563586feb7e6324f876c956a054d8afe6b
Comment 14 Halla Rempt 2018-12-12 15:46:34 UTC
*** Bug 402054 has been marked as a duplicate of this bug. ***
Comment 15 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 402188, bug 402169, bug 402155

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

https://commits.kde.org/krita/3829dcea6d9d638582a39df349a407f90ce40d66
Comment 16 Halla Rempt 2018-12-16 12:42:17 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 402188, bug 402169, bug 402155

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

https://commits.kde.org/krita/6b7ab506305126c4f594874555010b0781f467a4
Comment 17 Halla Rempt 2018-12-16 12:42:17 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 402188, bug 402169, bug 402155

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

https://commits.kde.org/krita/6b7ab506305126c4f594874555010b0781f467a4
Comment 18 Halla Rempt 2019-01-04 07:24:39 UTC
*** Bug 402844 has been marked as a duplicate of this bug. ***
Comment 19 Halla Rempt 2019-01-15 07:33:17 UTC
*** Bug 403225 has been marked as a duplicate of this bug. ***
Comment 20 Halla Rempt 2019-01-18 10:09:09 UTC
*** Bug 403337 has been marked as a duplicate of this bug. ***
Comment 21 Raghavendra kamath 2019-01-28 05:16:01 UTC
*** Bug 403672 has been marked as a duplicate of this bug. ***
Comment 22 Halla Rempt 2019-02-15 11:21:57 UTC
*** Bug 404379 has been marked as a duplicate of this bug. ***
Comment 23 Halla Rempt 2019-02-25 16:13:00 UTC
*** Bug 404809 has been marked as a duplicate of this bug. ***
Comment 24 Halla Rempt 2019-03-06 06:56:47 UTC
*** Bug 405125 has been marked as a duplicate of this bug. ***
Comment 25 Halla Rempt 2019-04-22 11:11:35 UTC
*** Bug 406747 has been marked as a duplicate of this bug. ***
Comment 26 Halla Rempt 2019-05-11 07:44:55 UTC
*** Bug 407408 has been marked as a duplicate of this bug. ***