Bug 350280 - An assert in cancelStroke, while using line tool. it give a popup giving abort or ignore options. pressing abort crashes krita
Summary: An assert in cancelStroke, while using line tool. it give a popup giving abor...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Ubuntu Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2015-07-16 09:02 UTC by Raghavendra kamath
Modified: 2015-07-24 13:15 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
screenshot of the error pop-up (53.82 KB, image/jpeg)
2015-07-16 09:50 UTC, Raghavendra kamath
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2015-07-16 09:02:04 UTC
Application: krita (2.9.6 (git 5090c13))
KDE Platform Version: 4.14.6
Qt Version: 4.8.6
Operating System: Linux 3.19.0-15-generic x86_64
Distribution: Ubuntu 15.04

-- Information about the crash:
- What I was doing when the application crashed:

I am using Krita from git.

I was using the Line tool to draw something,
Suddenly there was a popup with some text ( I may sound dumb but sorry i didn't read it properly ), But it gave two options abort and ignore.
When i pressed abort it crashed krita and Dr. konqui came up.

This has randomly happened earlier too.

The crash can be reproduced sometimes.

-- Backtrace:
Application: Krita (krita), signal: Aborted
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7f5a3a7017c0 (LWP 28021))]

Thread 12 (Thread 0x7f5a1d50b700 (LWP 28024)):
#0  0x00007f5a37bb78dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5a31a25ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5a31a26242 in g_main_loop_run () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5a2599caf6 in ?? () from /usr/lib/x86_64-linux-gnu/libgio-2.0.so.0
#4  0x00007f5a31a4c955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5a31ef76aa in start_thread (arg=0x7f5a1d50b700) at pthread_create.c:333
#6  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 11 (Thread 0x7f5a17fff700 (LWP 28025)):
#0  0x00007f5a37bb78dd in poll () at ../sysdeps/unix/syscall-template.S:81
#1  0x00007f5a31a25ebc in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5a31a25fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5a31a26009 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5a31a4c955 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#5  0x00007f5a31ef76aa in start_thread (arg=0x7f5a17fff700) at pthread_create.c:333
#6  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 10 (Thread 0x7f59f3fff700 (LWP 28036)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5a39121c56 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a3911da7b in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a3679d41e in KisTileDataPooler::waitForWork (this=0x3ab93e0) at /home/raghu/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:165
#4  0x00007f5a3679d89d in KisTileDataPooler::run (this=0x3ab93e0) at /home/raghu/kde4/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:187
#5  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5a31ef76aa in start_thread (arg=0x7f59f3fff700) at pthread_create.c:333
#7  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 9 (Thread 0x7f59f8d73700 (LWP 28037)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a391201da in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39120a9d in QThread::msleep(unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a367b885a in KisTileDataSwapper::run (this=0x3ab9420) at /home/raghu/kde4/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#4  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f5a31ef76aa in start_thread (arg=0x7f59f8d73700) at pthread_create.c:333
#6  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 8 (Thread 0x7f5a177fe700 (LWP 28040)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007f5a39121c56 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a38a8591d in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f5a177fe700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 7 (Thread 0x7f59f9574700 (LWP 28041)):
#0  0x00007f5a31a6a7a4 in g_mutex_unlock () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#1  0x00007f5a31a25a2a in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#2  0x00007f5a31a25f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#3  0x00007f5a31a25fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#4  0x00007f5a3925b87e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f5a3922ad21 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f5a3922b085 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f5a3911ee89 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f5a3920b493 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f5a31ef76aa in start_thread (arg=0x7f59f9574700) at pthread_create.c:333
#11 0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 6 (Thread 0x7f59e95c8700 (LWP 3420)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a39121c34 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39114c6d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f59e95c8700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 5 (Thread 0x7f59f37fe700 (LWP 3555)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a39121c34 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39114c6d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f59f37fe700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 4 (Thread 0x7f59ea7fc700 (LWP 3556)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a39121c34 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39114c6d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f59ea7fc700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 3 (Thread 0x7f59f2ffd700 (LWP 3557)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a39121c34 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39114c6d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f59f2ffd700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 2 (Thread 0x7f5a16ffd700 (LWP 3558)):
#0  pthread_cond_timedwait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_timedwait.S:238
#1  0x00007f5a39121c34 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f5a39114c6d in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f5a391216ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f5a31ef76aa in start_thread (arg=0x7f5a16ffd700) at pthread_create.c:333
#5  0x00007f5a37bc2eed in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:109

Thread 1 (Thread 0x7f5a3a7017c0 (LWP 28021)):
[KCrash Handler]
#6  0x00007f5a37af1267 in __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:55
#7  0x00007f5a37af2eca in __GI_abort () at abort.c:89
#8  0x00007f5a39116a8a in qt_message_output(QtMsgType, char const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f5a39116df9 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007f5a391176e1 in qFatal(char const*, ...) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#11 0x00007f5a346ceacc in kis_assert_common (assertion=<optimized out>, file=<optimized out>, line=<optimized out>, throwException=<optimized out>) at /home/raghu/kde4/src/calligra/krita/libglobal/kis_assert.cpp:76
#12 0x00007f59fdae7c0f in KisToolLine::cancelStroke (this=0x1d7a99b0) at /home/raghu/kde4/src/calligra/krita/plugins/tools/defaulttools/kis_tool_line.cc:269
#13 0x00007f5a392411ec in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#14 0x00007f5a3686c113 in KisImage::sigUndoDuringStrokeRequested (this=<optimized out>) at /home/raghu/kde4/build/krita/image/kis_image.moc:311
#15 0x00007f5a3686c125 in KisImage::requestUndoDuringStroke (this=<optimized out>) at /home/raghu/kde4/src/calligra/krita/image/kis_image.cc:1550
#16 0x00007f5a39feae52 in UndoStack::undo (this=0x1a50d4b0) at /home/raghu/kde4/src/calligra/krita/ui/KisDocument.cpp:205
#17 0x00007f5a392411ec in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007f5a3856cfd2 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007f5a3856eb57 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#20 0x00007f5a3a009ed0 in trigger (this=<optimized out>) at /usr/include/qt4/QtGui/qaction.h:218
#21 KisMainWindow::undo (this=0x2e29e20) at /home/raghu/kde4/src/calligra/krita/ui/KisMainWindow.cpp:1016
#22 0x00007f5a3a01ea1d in KisMainWindow::qt_static_metacall (_o=0x2e29e20, _c=<optimized out>, _id=<optimized out>, _a=0x7fffa6dc8f60) at /home/raghu/kde4/build/krita/ui/KisMainWindow.moc:201
#23 0x00007f5a392411ec in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#24 0x00007f5a3856cfd2 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007f5a3856eb57 in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#26 0x00007f5a3856f0cc in QAction::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#27 0x00007f5a32e2cfa2 in KAction::event(QEvent*) () from /usr/lib/libkdeui.so.5
#28 0x00007f5a385739bc in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#29 0x00007f5a3857a4d8 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#30 0x00007f5a39fd2847 in KisApplication::notify (this=<optimized out>, receiver=0x4316930, event=0x7fffa6dc9350) at /home/raghu/kde4/src/calligra/krita/ui/KisApplication.cpp:543
#31 0x00007f5a3922c1cd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#32 0x00007f5a385a76ab in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#33 0x00007f5a385a7814 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007f5a3857b956 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007f5a39fd2847 in KisApplication::notify (this=<optimized out>, receiver=0x141060b0, event=0x7fffa6dc96b0) at /home/raghu/kde4/src/calligra/krita/ui/KisApplication.cpp:543
#36 0x00007f5a3922c1cd in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#37 0x00007f5a38619023 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#38 0x00007f5a386194c2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#39 0x00007f5a385f2316 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007f5a3861bba2 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007f5a31a25c3d in g_main_context_dispatch () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#42 0x00007f5a31a25f20 in ?? () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#43 0x00007f5a31a25fcc in g_main_context_iteration () from /lib/x86_64-linux-gnu/libglib-2.0.so.0
#44 0x00007f5a3925b85e in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#45 0x00007f5a3861bc66 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#46 0x00007f5a3922ad21 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#47 0x00007f5a3922b085 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#48 0x00007f5a39230b09 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#49 0x0000000000402711 in main (argc=<optimized out>, argv=<optimized out>) at /home/raghu/kde4/src/calligra/krita/main.cc:194

Possible duplicates by query: bug 349819.

Reported using DrKonqi
Comment 1 Raghavendra kamath 2015-07-16 09:50:35 UTC
Created attachment 93610 [details]
screenshot of the error pop-up

please take a look at the screen shot attached.

It is a screenshot of the popup. 

This bug can be reproduced when you press undo while while using line tool
Comment 2 Dmitry Kazakov 2015-07-24 11:31:46 UTC
To reproduce this bug one should press Ctrl+Z concurrently with drawing new lines. Can be reproduced consistently enough.
Comment 3 Dmitry Kazakov 2015-07-24 12:35:24 UTC
Git commit 7928a2e7a6312f4e4a727b43ef09f2c031db74f0 by Dmitry Kazakov.
Committed on 24/07/2015 at 12:35.
Pushed by dkazakov into branch 'calligra/2.9'.

Fix a crash in a line tool (see comment inside)

M  +8    -1    krita/plugins/tools/defaulttools/kis_tool_line.cc

http://commits.kde.org/calligra/7928a2e7a6312f4e4a727b43ef09f2c031db74f0
Comment 4 Dmitry Kazakov 2015-07-24 13:15:08 UTC
Git commit d7eca0f6cbac2bfe6ec8f201a4ad1ff5e8aa598f by Dmitry Kazakov.
Committed on 24/07/2015 at 13:15.
Pushed by dkazakov into branch 'calligra/2.9'.

Fix a hangup when pressing 'v' and 'b' in the brush tool simultaneously

M  +5    -0    krita/plugins/tools/defaulttools/kis_tool_line.cc
M  +1    -0    krita/plugins/tools/defaulttools/kis_tool_line.h

http://commits.kde.org/calligra/d7eca0f6cbac2bfe6ec8f201a4ad1ff5e8aa598f