Bug 369549 - Crash while applying a transform
Summary: Crash while applying a transform
Status: RESOLVED WORKSFORME
Alias: None
Product: krita
Classification: Applications
Component: Tools/Transform (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
: 362881 373683 380955 393326 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-09-30 06:13 UTC by Raghavendra kamath
Modified: 2018-09-06 14:10 UTC (History)
9 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raghavendra kamath 2016-09-30 06:13:32 UTC
Application: krita (3.0.1.90 (git 29b565f))
 (Compiled from sources)
Qt Version: 5.7.0
Frameworks Version: 5.26.0
Operating System: Linux 4.7.4-1-ARCH x86_64
Distribution: "Arch Linux"

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

I was in horrizontal symmetry mode and i selected a portion of drawing and scalled it vertically. Then when I hit enter I got a crash.
I have got 2-3 crash in recent days from krita built from master, which occured while applying transform

The crash can be reproduced sometimes.

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

Thread 13 (Thread 0x7efbfd9d6700 (LWP 18082)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7efc5b0b4700 (LWP 18081)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7efc8591a700 (LWP 18080)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7efc86b1b700 (LWP 18079)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7efc6b7fa700 (LWP 18078)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7efc85119700 (LWP 18077)):
#0  0x00007efe2c3ed4b8 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072eb66 in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072a274 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7efc20a5e700 (LWP 18076)):
#0  0x00007efe2fb34fdb in __lll_lock_wait_private () from /usr/lib/libc.so.6
#1  0x00007efe2fab7ba0 in _int_free () from /usr/lib/libc.so.6
#2  0x00007efe36eb3bcc in KisStrokeJob::~KisStrokeJob (this=0x7efc84516cb0, __in_chrg=<optimized out>) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_stroke_job.h:40
#3  KisStrokeJob::~KisStrokeJob (this=0x7efc84516cb0, __in_chrg=<optimized out>) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_stroke_job.h:41
#4  KisUpdateJobItem::run (this=0x1a57a240) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_update_job_item.h:67
#5  0x00007efe3072a01f in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7efc1825b700 (LWP 18075)):
#0  0x00007efe2fb34fdb in __lll_lock_wait_private () from /usr/lib/libc.so.6
#1  0x00007efe2fab7ba0 in _int_free () from /usr/lib/libc.so.6
#2  0x00007efe36eb3bcc in KisStrokeJob::~KisStrokeJob (this=0x26979d50, __in_chrg=<optimized out>) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_stroke_job.h:40
#3  KisStrokeJob::~KisStrokeJob (this=0x26979d50, __in_chrg=<optimized out>) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_stroke_job.h:41
#4  KisUpdateJobItem::run (this=0x2d70fab0) at /home/raghu/kf5/build/libs/image/../../../src/krita/libs/image/kis_update_job_item.h:67
#5  0x00007efe3072a01f in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7efdd7fff700 (LWP 8161)):
#0  0x00007efe2c3ed10f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072ec2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3180b851 in ?? () from /usr/lib/libQt5Widgets.so.5
#3  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7efddcccf700 (LWP 8159)):
#0  0x00007efe2faf7ffd in nanosleep () from /usr/lib/libc.so.6
#1  0x00007efe307d31ed in ?? () from /usr/lib/libQt5Core.so.5
#2  0x00007efe3072d108 in QThread::msleep(unsigned long) () from /usr/lib/libQt5Core.so.5
#3  0x00007efe36cb165a in KisTileDataSwapper::run (this=0x7efe3716d920 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder+64>) at /home/raghu/kf5/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:97
#4  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#5  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#6  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7efddd4d0700 (LWP 8158)):
#0  0x00007efe2c3ed10f in pthread_cond_wait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007efe3072ec2b in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007efe30727b33 in QSemaphore::acquire(int) () from /usr/lib/libQt5Core.so.5
#3  0x00007efe36c979de in KisTileDataPooler::waitForWork (this=0x7efe3716d8e0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>) at /home/raghu/kf5/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:165
#4  0x00007efe36c9812a in KisTileDataPooler::run (this=0x7efe3716d8e0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>) at /home/raghu/kf5/src/krita/libs/image/tiles3/kis_tile_data_pooler.cc:187
#5  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7efe16b56700 (LWP 8148)):
#0  0x00007efe2fb1f48d in poll () from /usr/lib/libc.so.6
#1  0x00007efe2a1eb066 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007efe2a1eb17c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007efe3095c59b in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007efe309060da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007efe307290f3 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007efe2bd34e75 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007efe3072dd78 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007efe2c3e7454 in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007efe2fb287df in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7efe38135800 (LWP 8146)):
[KCrash Handler]
#5  0x00007efe2fa7304f in raise () from /usr/lib/libc.so.6
#6  0x00007efe2fa7447a in abort () from /usr/lib/libc.so.6
#7  0x00007efe2fab0c50 in __libc_message () from /usr/lib/libc.so.6
#8  0x00007efe2fab6fe6 in malloc_printerr () from /usr/lib/libc.so.6
#9  0x00007efe2fab9411 in _int_malloc () from /usr/lib/libc.so.6
#10 0x00007efe2fabad44 in malloc () from /usr/lib/libc.so.6
#11 0x00007efe30388a48 in operator new (sz=8) at /build/gcc/src/gcc/libstdc++-v3/libsupc++/new_op.cc:50
#12 0x00007efe30e6a723 in QTabletEvent::QTabletEvent(QEvent::Type, QPointF const&, QPointF const&, int, int, double, int, int, double, double, int, QFlags<Qt::KeyboardModifier>, long long, Qt::MouseButton, QFlags<Qt::MouseButton>) () from /usr/lib/libQt5Gui.so.5
#13 0x00007efe315effd9 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007efe37afa677 in KisApplication::notify (this=<optimized out>, receiver=0x7efd11fdeaf0, event=0x7fffce03a880) at /home/raghu/kf5/src/krita/libs/ui/KisApplication.cpp:511
#15 0x00007efe30907c80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#16 0x00007efe37ba9f06 in QCoreApplication::sendEvent (event=0x7fffce03a880, receiver=0x7efd11fdeaf0) at /usr/include/qt/QtCore/qcoreapplication.h:231
#17 processTabletEvent (e=0x7efd140ac1f0) at /home/raghu/kf5/src/krita/libs/ui/input/wintab/qxcbconnection.cpp:670
#18 0x00007efe37ba3d6e in QXcbConnection::xi2ReportTabletEvent (this=this@entry=0x1bea080, tabletData=..., event=event@entry=0x17884080) at /home/raghu/kf5/src/krita/libs/ui/input/wintab/qxcbconnection_xi2.cpp:954
#19 0x00007efe37ba40dc in QXcbConnection::xi2HandleTabletEvent (this=this@entry=0x1bea080, event=event@entry=0x17884080, tabletData=0x1a8acb8, window=window@entry=0xab5bbc0) at /home/raghu/kf5/src/krita/libs/ui/input/wintab/qxcbconnection_xi2.cpp:788
#20 0x00007efe37ba7bde in QXcbConnection::xi2HandleEvent (this=0x1bea080, event=0x17884080) at /home/raghu/kf5/src/krita/libs/ui/input/wintab/qxcbconnection_xi2.cpp:506
#21 0x00007efe37bab3e6 in KisXi2EventFilter::nativeEventFilter (this=0x7efe380034d0 <_ZZN12_GLOBAL__N_116Q_QGS_s_instance13innerFunctionEvE6holder>, eventType=..., message=0x7efe1c0071e0, result=<optimized out>) at /home/raghu/kf5/src/krita/libs/ui/input/wintab/kis_xi2_event_filter.cpp:115
#22 0x00007efe3090521f in QAbstractEventDispatcher::filterNativeEvent(QByteArray const&, void*, long*) () from /usr/lib/libQt5Core.so.5
#23 0x00007efe2543bc34 in QXcbConnection::handleXcbEvent(xcb_generic_event_t*) () from /usr/lib/libQt5XcbQpa.so.5
#24 0x00007efe2543c8c5 in QXcbConnection::processXcbEvents() () from /usr/lib/libQt5XcbQpa.so.5
#25 0x00007efe30934349 in QObject::event(QEvent*) () from /usr/lib/libQt5Core.so.5
#26 0x00007efe315e7e3c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#27 0x00007efe315ef5b1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#28 0x00007efe37afa677 in KisApplication::notify (this=<optimized out>, receiver=0x1677ba0, event=0x7efe1c007020) at /home/raghu/kf5/src/krita/libs/ui/KisApplication.cpp:511
#29 0x00007efe30907c80 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#30 0x00007efe3090a3fd in QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) () from /usr/lib/libQt5Core.so.5
#31 0x00007efe3095c173 in ?? () from /usr/lib/libQt5Core.so.5
#32 0x00007efe2a1eae67 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#33 0x00007efe2a1eb0d0 in ?? () from /usr/lib/libglib-2.0.so.0
#34 0x00007efe2a1eb17c in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#35 0x00007efe3095c57f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#36 0x00007efe309060da in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#37 0x00007efe3090e5cc in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#38 0x0000000000404d6a in main (argc=<optimized out>, argv=<optimized out>) at /home/raghu/kf5/src/krita/krita/main.cc:234

Reported using DrKonqi
Comment 1 Halla Rempt 2016-10-03 09:42:14 UTC
Hi!

This happens deep inside Qt apparently -- and it happens when allocating memory. Which version of Qt are you using? And have you recently checked your memory with a ram checker?
Comment 2 Halla Rempt 2016-10-31 14:53:15 UTC
Oh, and another question: which version of Qt?
Comment 3 Raghavendra kamath 2016-11-22 09:31:26 UTC
I am using Qt version 5.7.0.

I'll do a memory test and report back.
Comment 4 Halla Rempt 2016-12-07 15:01:56 UTC
See https://phabricator.kde.org/T4840
Comment 5 Halla Rempt 2016-12-07 15:02:13 UTC
*** Bug 362881 has been marked as a duplicate of this bug. ***
Comment 6 Dmitry Kazakov 2016-12-10 15:11:15 UTC
The problem actually happens not in Qt, but in malloc :(

It seems like the memory gets corrupted somewhere. I don't know what can be the reason of it though. I tested krita/3.1 branch under valgrind (but with Qt 5.5.1), and it didn't show any problem :(
Comment 7 Halla Rempt 2017-01-25 10:17:45 UTC
*** Bug 373683 has been marked as a duplicate of this bug. ***
Comment 8 Halla Rempt 2017-06-09 09:47:51 UTC
*** Bug 380955 has been marked as a duplicate of this bug. ***
Comment 9 Nabil Maghfur usman 2018-04-20 13:08:31 UTC
*** Bug 393326 has been marked as a duplicate of this bug. ***
Comment 10 Loren Dias 2018-05-13 18:33:09 UTC
I also am experiencing this issue on archlinux with krita 4.0.2-1 and qt5-base 5.10.1-8.

The tool appears to work just fine however the crash occurs using the tool after the app has been open for a while.

Possibly related/unrelated the app crashes using the move tool after the app is open for a while.

These are on 3.x and possible 2.x krita files.
Comment 11 Halla Rempt 2018-06-27 19:31:21 UTC
This also looks like an oom issue like https://bugs.kde.org/show_bug.cgi?id=369549
Comment 12 Antti Savolainen 2018-06-27 19:36:32 UTC
I think you mean https://bugs.kde.org/show_bug.cgi?id=390454