Bug 291271 - Krita crashes when flattening image
Summary: Krita crashes when flattening image
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR crash
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-11 14:17 UTC by Halla Rempt
Modified: 2012-02-03 10:36 UTC (History)
2 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 Halla Rempt 2012-01-11 14:17:42 UTC
Application: krita (2.4 Beta 6)
KDE Platform Version: 4.7.2 (4.7.2) "release 5"
Qt Version: 4.7.4
Operating System: Linux 3.1.0-1.2-desktop x86_64
Distribution: "openSUSE 12.1 (x86_64)"

-- Information about the crash:
On pressing flatten image, Krita crashes. I suspect last Sunday's patch.

The crash can be reproduced every time.

-- Backtrace:
Application: Krita (krita), signal: Aborted
[Current thread is 1 (Thread 0x7fbd37363760 (LWP 28431))]

Thread 6 (Thread 0x7fbd17cc5700 (LWP 28432)):
#0  0x00007fbd368ace6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fbd36b394bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fbd36b35ef5 in QSemaphore::acquire(int) () from /usr/lib64/libQtCore.so.4
#3  0x00007fbd35d2dade in ?? () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#4  0x00007fbd35d2e1c4 in ?? () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#5  0x00007fbd36b39025 in ?? () from /usr/lib64/libQtCore.so.4
#6  0x00007fbd368a8f05 in start_thread () from /lib64/libpthread.so.0
#7  0x00007fbd2e4cc53d in clone () from /lib64/libc.so.6

Thread 5 (Thread 0x7fbd174c4700 (LWP 28433)):
#0  0x00007fbd368ace6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fbd36b394bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fbd36b36129 in QSemaphore::tryAcquire(int, int) () from /usr/lib64/libQtCore.so.4
#3  0x00007fbd35d6494a in KisTileDataSwapper::run() () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#4  0x00007fbd36b39025 in ?? () from /usr/lib64/libQtCore.so.4
#5  0x00007fbd368a8f05 in start_thread () from /lib64/libpthread.so.0
#6  0x00007fbd2e4cc53d in clone () from /lib64/libc.so.6

Thread 4 (Thread 0x7fbd16444700 (LWP 28438)):
#0  0x00007fbd2e4c5c33 in select () from /lib64/libc.so.6
#1  0x00007fbd36c47236 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib64/libQtCore.so.4
#2  0x00007fbd36c4cf50 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib64/libQtCore.so.4
#3  0x00007fbd36c4d443 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007fbd36c1ea22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007fbd36c1ec1f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fbd36b365df in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007fbd36c01aef in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007fbd36b39025 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007fbd368a8f05 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fbd2e4cc53d in clone () from /lib64/libc.so.6

Thread 3 (Thread 0x7fbcf6c94700 (LWP 28453)):
#0  0x00007fbd368ace6c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib64/libpthread.so.0
#1  0x00007fbd36b394bb in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib64/libQtCore.so.4
#2  0x00007fbd2ff61554 in ?? () from /usr/lib64/libQtGui.so.4
#3  0x00007fbd36b39025 in ?? () from /usr/lib64/libQtCore.so.4
#4  0x00007fbd368a8f05 in start_thread () from /lib64/libpthread.so.0
#5  0x00007fbd2e4cc53d in clone () from /lib64/libc.so.6

Thread 2 (Thread 0x7fbcf5c92700 (LWP 28454)):
#0  0x00007fbd2e4c5c33 in select () from /lib64/libc.so.6
#1  0x00007fbd36c47236 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib64/libQtCore.so.4
#2  0x00007fbd36c4cf50 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib64/libQtCore.so.4
#3  0x00007fbd36c4d443 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#4  0x00007fbd36c1ea22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#5  0x00007fbd36c1ec1f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#6  0x00007fbd36b365df in QThread::exec() () from /usr/lib64/libQtCore.so.4
#7  0x00007fbd36c01aef in ?? () from /usr/lib64/libQtCore.so.4
#8  0x00007fbd36b39025 in ?? () from /usr/lib64/libQtCore.so.4
#9  0x00007fbd368a8f05 in start_thread () from /lib64/libpthread.so.0
#10 0x00007fbd2e4cc53d in clone () from /lib64/libc.so.6

Thread 1 (Thread 0x7fbd37363760 (LWP 28431)):
[KCrash Handler]
#6  0x00007fbd2e427d95 in raise () from /lib64/libc.so.6
#7  0x00007fbd2e4292ab in abort () from /lib64/libc.so.6
#8  0x00007fbd36b2f9f4 in qt_message_output(QtMsgType, char const*) () from /usr/lib64/libQtCore.so.4
#9  0x00007fbd36b2fbaf in ?? () from /usr/lib64/libQtCore.so.4
#10 0x00007fbd36b2fd54 in qFatal(char const*, ...) () from /usr/lib64/libQtCore.so.4
#11 0x00007fbd36b2fd9a in qt_assert(char const*, char const*, int) () from /usr/lib64/libQtCore.so.4
#12 0x00007fbd363936b4 in KisNodeShapesGraph::nodeToDummy(KisSharedPtr<KisNode>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#13 0x00007fbd36395428 in KisNodeShapesGraph::removeNode(KisSharedPtr<KisNode>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#14 0x00007fbd36397477 in KisShapeController::slotContinueRemoveNode(KisSharedPtr<KisNode>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#15 0x00007fbd3639bd13 in KisShapeController::qt_metacall(QMetaObject::Call, int, void**) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#16 0x00007fbd36c3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#17 0x00007fbd363970b5 in KisShapeController::sigContinueRemoveNode(KisSharedPtr<KisNode>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#18 0x00007fbd36398021 in KisShapeController::slotRemoveNode(KisSharedPtr<KisNode>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#19 0x00007fbd36399ece in KisShapeController::setImage(KisWeakSharedPtr<KisImage>) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#20 0x00007fbd3639b803 in KisShapeController::slotLayersChanged() () from /home/boud/kde/inst/lib64/libkritaui.so.9
#21 0x00007fbd3639c078 in KisShapeController::qt_metacall(QMetaObject::Call, int, void**) () from /home/boud/kde/inst/lib64/libkritaui.so.9
#22 0x00007fbd36c3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#23 0x00007fbd35e6fdde in KisImage::qt_metacall(QMetaObject::Call, int, void**) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#24 0x00007fbd36c3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#25 0x00007fbd35e7b695 in KisImageSignalRouter::slotNotification(KisImageSignalType) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#26 0x00007fbd35d2595f in KisImageSignalRouter::qt_metacall(QMetaObject::Call, int, void**) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#27 0x00007fbd36c3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#28 0x00007fbd35d2516e in KisImageSignalRouter::sigNotification(KisImageSignalType) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#29 0x00007fbd35d90f3e in ?? () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#30 0x00007fbd31e1182d in KUndo2QStack::push(KUndo2Command*) () from /home/boud/kde/inst/lib64/libkundo2.so.9
#31 0x00007fbd35f231c6 in KisDocumentUndoStore::addCommand(KUndo2Command*) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#32 0x00007fbd35f23f12 in KisLegacyUndoAdapter::addCommand(KUndo2Command*) () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#33 0x00007fbd35e74a38 in KisImage::flatten() () from /home/boud/kde/inst/lib64/libkritaimage.so.9
#34 0x00007fbd3643db42 in ?? () from /home/boud/kde/inst/lib64/libkritaui.so.9
#35 0x00007fbd364463bd in ?? () from /home/boud/kde/inst/lib64/libkritaui.so.9
#36 0x00007fbd36c3259a in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib64/libQtCore.so.4
#37 0x00007fbd2fa70622 in QAction::triggered(bool) () from /usr/lib64/libQtGui.so.4
#38 0x00007fbd2fa7080f in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQtGui.so.4
#39 0x00007fbd2fea6a09 in ?? () from /usr/lib64/libQtGui.so.4
#40 0x00007fbd2feac642 in ?? () from /usr/lib64/libQtGui.so.4
#41 0x00007fbd2fead323 in QMenu::keyPressEvent(QKeyEvent*) () from /usr/lib64/libQtGui.so.4
#42 0x00007fbd3084d0b6 in KMenu::keyPressEvent(QKeyEvent*) () from /usr/lib64/libkdeui.so.5
#43 0x00007fbd2fac738a in QWidget::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#44 0x00007fbd2feadbab in QMenu::event(QEvent*) () from /usr/lib64/libQtGui.so.4
#45 0x00007fbd2fa76c34 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#46 0x00007fbd2fa7c1b6 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQtGui.so.4
#47 0x00007fbd30789e36 in KApplication::notify(QObject*, QEvent*) () from /usr/lib64/libkdeui.so.5
#48 0x00007fbd36c1f81c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib64/libQtCore.so.4
#49 0x00007fbd2fb15f79 in ?? () from /usr/lib64/libQtGui.so.4
#50 0x00007fbd2fb163eb in ?? () from /usr/lib64/libQtGui.so.4
#51 0x00007fbd2faf25d4 in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib64/libQtGui.so.4
#52 0x00007fbd2fb1ad2a in ?? () from /usr/lib64/libQtGui.so.4
#53 0x00007fbd36c1ea22 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#54 0x00007fbd36c1ec1f in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQtCore.so.4
#55 0x00007fbd36c22de7 in QCoreApplication::exec() () from /usr/lib64/libQtCore.so.4
#56 0x00007fbd36f57d3d in kdemain () from /home/boud/kde/inst/lib64/libkdeinit4_krita.so
#57 0x00007fbd2e41423d in __libc_start_main () from /lib64/libc.so.6
#58 0x0000000000400911 in _start ()

Reported using DrKonqi
Comment 1 Halla Rempt 2012-01-11 14:18:17 UTC
Dmitry, I have a sort of feeling this is to do with the changes to the node model.
Comment 2 Ico_dY 2012-01-11 15:25:08 UTC
Same problem, here. You can download the kra file for further tests from: http://www.mediafire.com/file/4xjpi68x6xo0vnu/test.kra.zip
Layer -> Flatten Image = Crash every time! ^^

Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0x7f537f8b07c0 (LWP 1330))]

Thread 6 (Thread 0x7f5355fc7700 (LWP 1331)):
#0  0x00007f537894f04c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f537d15a1ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f537d156ba5 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f536189a3ae in KisTileDataPooler::waitForWork (this=0x544f110) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007f536189aa94 in KisTileDataPooler::run (this=0x544f110) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007f537d159d05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f53724e256c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#7  0x00007f537894aefc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f537f1da89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f53557c6700 (LWP 1332)):
#0  0x00007f537894f04c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f537d15a1ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f537d156dd9 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f53618bab4a in KisTileDataSwapper::run (this=0x544f148) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#4  0x00007f537d159d05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f53724e256c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#6  0x00007f537894aefc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f537f1da89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f534a6cb700 (LWP 1337)):
#0  0x00007f537f1d3913 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f537d268bc6 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f537d26e330 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f537d26e833 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f537d23fcf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f537d23fef7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f537d15727f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f537d222cbf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f537d159d05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f53724e256c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#10 0x00007f537894aefc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f537f1da89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f534ffff700 (LWP 1350)):
#0  0x00007f537894f04c in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f537d15a1ab in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f537e1307d4 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007f537d159d05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f53724e256c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#5  0x00007f537894aefc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#6  0x00007f537f1da89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#7  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f534aecc700 (LWP 1351)):
#0  0x00007f537f1d3913 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f537d268bc6 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007f537d26e330 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007f537d26e833 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007f537d23fcf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007f537d23fef7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007f537d15727f in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007f537d222cbf in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007f537d159d05 in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007f53724e256c in ?? () from /usr/lib/nvidia-current/libGL.so.1
#10 0x00007f537894aefc in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f537f1da89d in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f537f8b07c0 (LWP 1330)):
[KCrash Handler]
#6  KisNodeDummy::nodeShape (this=0x0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_node_dummies_graph.cpp:79
#7  0x00007f5361d75424 in KisNodeShapesGraph::unmapDummyRecursively (this=0x7f533c5d8308, dummy=0x0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_node_shapes_graph.cpp:72
#8  0x00007f5361d75af9 in KisNodeShapesGraph::removeNode (this=0x7f533c5d8308, node=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_node_shapes_graph.cpp:64
#9  0x00007f5361d76839 in KisShapeController::slotContinueRemoveNode (this=0xa1d8a60, node=...) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_shape_controller.cpp:286
#10 0x00007f5361d786e4 in KisShapeController::qt_metacall (this=0xa1d8a60, _c=QMetaObject::InvokeMetaMethod, _id=11, _a=0x7fff68286990) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/ui/kis_shape_controller.moc:109
#11 0x00007f537d253eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#12 0x00007f5361d766c5 in KisShapeController::sigContinueRemoveNode (this=<optimized out>, _t1=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/ui/kis_shape_controller.moc:148
#13 0x00007f5361d76b62 in KisShapeController::slotRemoveNode (this=<optimized out>, node=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_shape_controller.cpp:251
#14 0x00007f5361d76ff4 in KisShapeController::setImage (this=0xa1d8a60, image=...) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_shape_controller.cpp:108
#15 0x00007f5361d784e3 in KisShapeController::slotLayersChanged (this=0xa1d8a60) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/flake/kis_shape_controller.cpp:230
#16 0x00007f5361d78848 in KisShapeController::qt_metacall (this=0xa1d8a60, _c=QMetaObject::InvokeMetaMethod, _id=8, _a=0x7fff68286d70) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/ui/kis_shape_controller.moc:106
#17 0x00007f537d253eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#18 0x00007f53619353c1 in KisImage::qt_metacall (this=0xa20f220, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fff68286f50) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/image/kis_image.moc:182
#19 0x00007f537d253eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#20 0x00007f536193eba5 in KisImageSignalRouter::slotNotification (this=0xa1ec010, type=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/kis_image_signal_router.cpp:162
#21 0x00007f5361895e7f in KisImageSignalRouter::qt_metacall (this=0xa1ec010, _c=QMetaObject::InvokeMetaMethod, _id=19, _a=0x7fff682872d0) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/image/moc_kis_image_signal_router.cpp:133
#22 0x00007f537d253eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#23 0x00007f536189584e in KisImageSignalRouter::sigNotification (this=<optimized out>, _t1=LayersChangedSignal) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/image/moc_kis_image_signal_router.cpp:145
#24 0x00007f53618d68a9 in KisImageChangeLayersCommand::redo (this=0x1f60a7d0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/commands/kis_image_change_layers_command.cpp:39
#25 0x00007f537a67593d in KUndo2QStack::push (this=0x7f53528e7340, cmd=0x1f60a7d0) at /media/sda7/Build/Koffice/calligra/calligra-src/libs/kundo2/kundo2stack.cpp:562
#26 0x00007f5361982dd6 in KisDocumentUndoStore::addCommand (this=0xa1a5c80, command=0x1f60a7d0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/kis_undo_stores.cpp:60
#27 0x00007f536198385a in addCommand (command=0x1f60a7d0, this=0xa20fbd0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/kis_legacy_undo_adapter.cpp:47
#28 KisLegacyUndoAdapter::addCommand (this=0xa20fbd0, command=0x1f60a7d0) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/kis_legacy_undo_adapter.cpp:42
#29 0x00007f5361939b39 in KisImage::flatten (this=0xa20f220) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/image/kis_image.cc:900
#30 0x00007f5361de2992 in KisLayerManager::flattenImage (this=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/ui/kis_layer_manager.cc:729
#31 0x00007f5361de9aad in KisLayerManager::qt_metacall (this=0x7f532baaedc0, _c=QMetaObject::InvokeMetaMethod, _id=13, _a=0x7fff682879e0) at /media/sda7/Build/Koffice/calligra/calligra-build/krita/ui/kis_layer_manager.moc:143
#32 0x00007f537d253eba in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#33 0x00007f537dc3ab62 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#34 0x00007f537dc3ad4f in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#35 0x00007f537e075609 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#36 0x00007f537e07b252 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#37 0x00007f537ea16cb0 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#38 0x00007f537dc91c9a in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#39 0x00007f537e07c7fb in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#40 0x00007f537dc41424 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#41 0x00007f537dc46c6b in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#42 0x00007f537e955126 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#43 0x00007f537d240afc in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#44 0x00007f537dc423f2 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#45 0x00007f537dcc2001 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#46 0x00007f537dcc08be in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#47 0x00007f537dce9e2a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#48 0x00007f537d23fcf2 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#49 0x00007f537d23fef7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#50 0x00007f537d244789 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#51 0x00007f537f49ea5d in kdemain (argc=<optimized out>, argv=<optimized out>) at /media/sda7/Build/Koffice/calligra/calligra-src/krita/main.cc:71
#52 0x00007f537f11a30d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#53 0x0000000000400661 in _start ()
Comment 3 Dmitry Kazakov 2012-01-11 18:27:16 UTC
Yes, the Sunday's patch.
I'll probably take a look on 14th or 19th, if there is time between exams.
Comment 4 David REVOY 2012-01-14 16:30:01 UTC
Haaaaa , I get striked by this one. Using the keyboard shortcut  ! (violent). 
Happilly nothing important is lost, backup files saved most of my painting time.
Comment 5 Dmitry Kazakov 2012-01-14 16:56:33 UTC
Git commit 2fbb50379446e2b0707e4116911d14046a390a76 by Dmitry Kazakov.
Committed on 14/01/2012 at 18:57.
Pushed by dkazakov into branch 'master'.

Fix bug in KisShapeController when the root of the image changes

M  +5    -2    krita/ui/flake/kis_shape_controller.cpp
M  +26   -0    krita/ui/tests/kis_shape_controller_test.cpp
M  +1    -0    krita/ui/tests/kis_shape_controller_test.h

http://commits.kde.org/calligra/2fbb50379446e2b0707e4116911d14046a390a76
Comment 6 David REVOY 2012-01-15 04:19:11 UTC
The fix works for multilayer picture. ( but a weird glitch appear, using the brush outline 'outline' , the cursor after this operation become outline + color picker, or a 'target' cursor appear at the center ).

Also , Krita still have a crash here when flatten a single image layer ( normally , flatten a single layer remove alpha and replace it with background color ).
Comment 7 Dmitry Kazakov 2012-02-03 10:36:33 UTC
Git commit dfc19c9649158820225318f9da7f1c5362b792d8 by Dmitry Kazakov.
Committed on 03/02/2012 at 12:35.
Pushed by dkazakov into branch 'shapes-as-node-model-kazakov'.

Fixed managing selection masks which are children of the root node

Now the mapping between KisNodeDummy and QModelIndex is done by
classes KisModeIndexConverter and KisModelIndexConverterShowAll.
They represent two options available to the user: normal mode and
mode when the root layer is visible.

This is the last commit in a series of refactorings for KisNodeModel.
Now there should be no known crashes or bugs. So if you see one, do
not hesitate to report! ;)

My plan is the following:
1) I'm pushing it to my branch.
2) Then I'll fix drag-and-drop (it is unrelated to the refactorings)
3) Then I'll make a call for testing both of the features, to
   save the time of artists ;)
Related: bug 290708

M  +11   -3    krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp
M  +28   -0    krita/sdk/tests/empty_nodes_test.h
M  +3    -0    krita/ui/CMakeLists.txt
M  +10   -3    krita/ui/flake/kis_dummies_facade_base.cpp
M  +2    -0    krita/ui/flake/kis_dummies_facade_base.h
A  +179  -0    krita/ui/kis_model_index_converter.cpp     [License: GPL (v2+)]
A  +49   -0    krita/ui/kis_model_index_converter.h     [License: GPL (v2+)]
A  +24   -0    krita/ui/kis_model_index_converter_base.cpp     [License: GPL (v2+)]
A  +64   -0    krita/ui/kis_model_index_converter_base.h     [License: GPL (v2+)]
A  +91   -0    krita/ui/kis_model_index_converter_show_all.cpp     [License: GPL (v2+)]
A  +47   -0    krita/ui/kis_model_index_converter_show_all.h     [License: GPL (v2+)]
M  +62   -86   krita/ui/kis_node_model.cpp
M  +4    -3    krita/ui/kis_node_model.h
M  +6    -0    krita/ui/tests/CMakeLists.txt
A  +279  -0    krita/ui/tests/kis_model_index_converter_test.cpp     [License: GPL (v2+)]
A  +61   -0    krita/ui/tests/kis_model_index_converter_test.h     [License: GPL (v2+)]

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