Bug 264116 - Adding filter layer crashed Krita
Summary: Adding filter layer crashed Krita
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:
Depends on:
Blocks:
 
Reported: 2011-01-23 21:43 UTC by Kubuntiac
Modified: 2011-01-31 13:56 UTC (History)
0 users

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 Kubuntiac 2011-01-23 21:43:48 UTC
Application: krita (2.4 Alpha 1)
KDE Platform Version: 4.5.5 (KDE 4.5.5)
Qt Version: 4.7.0
Operating System: Linux 2.6.35-24-generic-pae i686
Distribution: Ubuntu 10.10

-- Information about the crash:
I had a setup with the followig layers:

1 paint layer
2 Group layer with the following:
2.1 filter layer (guassian blue 1px horizontal, 10px vertical)
2.2 filter layer desaturate
2.3 Clone layer (of the paint layer above)

I had the blur layer selected and accidentally tried to paint on it. Then I clicked on Add filter layer from the layers docker and Krita crashed. I was in the standard RGB colour space.

git describe --tags says my version is:
v1.9.95.4-20580-g10553e9

The crash can be reproduced some of the time.

-- Backtrace:
Application: Krita (krita), signal: Segmentation fault
[Current thread is 1 (Thread 0xb3f3a720 (LWP 2359))]

Thread 7 (Thread 0xaf548b70 (LWP 2364)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb4b09371 in select () from /lib/libc.so.6
#2  0xb768f872 in qt_safe_select (nfds=16, fdread=0xa9ee858, fdwrite=0xa9eea6c, fdexcept=0xa9eec80, orig_timeout=0x0) at kernel/qcore_unix.cpp:82
#3  0xb7694329 in QEventDispatcherUNIX::select (this=0xa767ca8, nfds=16, readfds=0xa9ee858, writefds=0xa9eea6c, exceptfds=0xa9eec80, timeout=0x0) at kernel/qeventdispatcher_unix.cpp:632
#4  0xb7694eac in QEventDispatcherUNIXPrivate::doSelect (this=0xa9ee760, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:219
#5  0xb7695c25 in QEventDispatcherUNIX::processEvents (this=0xa767ca8, flags=...) at kernel/qeventdispatcher_unix.cpp:919
#6  0xb7662609 in QEventLoop::processEvents (this=0xaf548280, flags=) at kernel/qeventloop.cpp:149
#7  0xb7662a8a in QEventLoop::exec (this=0xaf548280, flags=...) at kernel/qeventloop.cpp:201
#8  0xb755eb7e in QThread::exec (this=0xa7fad58) at thread/qthread.cpp:490
#9  0xb764135b in QInotifyFileSystemWatcherEngine::run (this=0xa7fad58) at io/qfilesystemwatcher_inotify.cpp:248
#10 0xb7561df9 in QThreadPrivate::start (arg=0xa7fad58) at thread/qthread_unix.cpp:266
#11 0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#12 0xb4b1069e in clone () from /lib/libc.so.6

Thread 6 (Thread 0xace75b70 (LWP 2419)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb74ef4dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb75629c7 in wait (this=0xae3850c, mutex=0xae38508, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xae3850c, mutex=0xae38508, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0xb755e2bf in QSemaphore::acquire (this=0xadfc2a8, n=1) at thread/qsemaphore.cpp:144
#5  0xb708754b in KisTileDataPooler::waitForWork (this=0xadfc2a0) at /home/user/Apps/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:127
#6  0xb70877a3 in KisTileDataPooler::run (this=0xadfc2a0) at /home/user/Apps/calligra/calligra-src/krita/image/tiles3/kis_tile_data_pooler.cc:156
#7  0xb7561df9 in QThreadPrivate::start (arg=0xadfc2a0) at thread/qthread_unix.cpp:266
#8  0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#9  0xb4b1069e in clone () from /lib/libc.so.6

Thread 5 (Thread 0xac674b70 (LWP 2420)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb74ef4dc in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb75629c7 in wait (this=0xa6ebbe4, mutex=0xa6ebbe0, time=4294967295) at thread/qwaitcondition_unix.cpp:88
#3  QWaitCondition::wait (this=0xa6ebbe4, mutex=0xa6ebbe0, time=4294967295) at thread/qwaitcondition_unix.cpp:160
#4  0xb755e57a in QSemaphore::tryAcquire (this=0xadf6e30, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#5  0xb70a5010 in KisTileDataSwapper::waitForWork (this=0xadfc2bc) at /home/user/Apps/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:84
#6  0xb70a5414 in KisTileDataSwapper::run (this=0xadfc2bc) at /home/user/Apps/calligra/calligra-src/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:90
#7  0xb7561df9 in QThreadPrivate::start (arg=0xadfc2bc) at thread/qthread_unix.cpp:266
#8  0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#9  0xb4b1069e in clone () from /lib/libc.so.6

Thread 4 (Thread 0xa2f33b70 (LWP 2506)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb74ef884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb756294f in wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0xb75565b3 in QThreadPoolThread::run (this=0xeab2128) at concurrent/qthreadpool.cpp:140
#5  0xb7561df9 in QThreadPrivate::start (arg=0xeab2128) at thread/qthread_unix.cpp:266
#6  0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#7  0xb4b1069e in clone () from /lib/libc.so.6

Thread 3 (Thread 0xa4736b70 (LWP 2507)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb74ef884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb756294f in wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0xb75565b3 in QThreadPoolThread::run (this=0xc669a48) at concurrent/qthreadpool.cpp:140
#5  0xb7561df9 in QThreadPrivate::start (arg=0xc669a48) at thread/qthread_unix.cpp:266
#6  0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#7  0xb4b1069e in clone () from /lib/libc.so.6

Thread 2 (Thread 0xa3f35b70 (LWP 2508)):
#0  0xb77bb424 in __kernel_vsyscall ()
#1  0xb74ef884 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
#2  0xb756294f in wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:86
#3  QWaitCondition::wait (this=0xaec051a4, mutex=0xaec051a0, time=30000) at thread/qwaitcondition_unix.cpp:160
#4  0xb75565b3 in QThreadPoolThread::run (this=0xaec4cc48) at concurrent/qthreadpool.cpp:140
#5  0xb7561df9 in QThreadPrivate::start (arg=0xaec4cc48) at thread/qthread_unix.cpp:266
#6  0xb74eacc9 in start_thread () from /lib/libpthread.so.0
#7  0xb4b1069e in clone () from /lib/libc.so.6

Thread 1 (Thread 0xb3f3a720 (LWP 2359)):
[KCrash Handler]
#7  KisFilterConfiguration::name (this=0xbfd653cc) at /home/user/Apps/calligra/calligra-src/krita/image/filter/kis_filter_configuration.cc:106
#8  0xb70e6118 in KisAdjustmentLayer::accept (this=0xe9a6738, v=...) at /home/user/Apps/calligra/calligra-src/krita/image/kis_adjustment_layer.cc:114
#9  0xb7147af3 in KisNodeVisitor::visitAllInverse (this=0xe9a6738, node=0xad5e230, breakOnFail=false) at /home/user/Apps/calligra/calligra-src/krita/image/kis_node_visitor.cpp:48
#10 0xb73f8bac in KisSaveXmlVisitor::visit (this=0xbfd6553c, layer=0xad5e230) at /home/user/Apps/calligra/calligra-src/krita/ui/kra/kis_kra_savexml_visitor.cpp:103
#11 0xb7119388 in KisGroupLayer::accept (this=0xad5e230, v=...) at /home/user/Apps/calligra/calligra-src/krita/image/kis_group_layer.cc:151
#12 0xb7147af3 in KisNodeVisitor::visitAllInverse (this=0xbfd6553c, node=0xa98c8c8, breakOnFail=false) at /home/user/Apps/calligra/calligra-src/krita/image/kis_node_visitor.cpp:48
#13 0xb73f8bac in KisSaveXmlVisitor::visit (this=0xbfd655f4, layer=0xa98c8c8) at /home/user/Apps/calligra/calligra-src/krita/ui/kra/kis_kra_savexml_visitor.cpp:103
#14 0xb7119388 in KisGroupLayer::accept (this=0xa98c8c8, v=...) at /home/user/Apps/calligra/calligra-src/krita/image/kis_group_layer.cc:151
#15 0xb73f44b0 in KisKraSaver::saveXML (this=0xbcfac68, doc=..., image=) at /home/user/Apps/calligra/calligra-src/krita/ui/kra/kis_kra_saver.cpp:89
#16 0xb73325f7 in KisDoc2::saveXML (this=0xa1219d8) at /home/user/Apps/calligra/calligra-src/krita/ui/kis_doc2.cc:239
#17 0xb6c7466c in KoDocument::saveToStream (this=0xa1219d8, dev=0xbfd65800) at /home/user/Apps/calligra/calligra-src/libs/main/KoDocument.cpp:1025
#18 0xb6c6f5ce in KoDocument::saveNativeFormatKOffice (this=0xa1219d8, store=0xeba2f18) at /home/user/Apps/calligra/calligra-src/libs/main/KoDocument.cpp:984
#19 0xb6c73f7e in KoDocument::saveNativeFormat (this=0xa1219d8, file=...) at /home/user/Apps/calligra/calligra-src/libs/main/KoDocument.cpp:874
#20 0xb6c6e739 in KoDocument::slotAutoSave (this=0xa1219d8) at /home/user/Apps/calligra/calligra-src/libs/main/KoDocument.cpp:660
#21 0xb6c6ea9b in KoDocument::qt_metacall (this=0xa1219d8, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfd65aac) at /home/user/Apps/calligra/calligra-build/libs/main/KoDocument.moc:132
#22 0xb7335c2a in KisDoc2::qt_metacall (this=0xa1219d8, _c=QMetaObject::InvokeMetaMethod, _id=36, _a=0xbfd65aac) at /home/user/Apps/calligra/calligra-build/krita/ui/kis_doc2.moc:78
#23 0xb76698ca in QMetaObject::metacall (object=0xa1219d8, cl=QMetaObject::ReadProperty, idx=36, argv=0xbfd65aac) at kernel/qmetaobject.cpp:237
#24 0xb767c6ad in QMetaObject::activate (sender=0xa6b1330, m=0xb77965a4, local_signal_index=0, argv=0x0) at kernel/qobject.cpp:3280
#25 0xb76ce1e7 in QTimer::timeout (this=0xa6b1330) at .moc/release-shared/moc_qtimer.cpp:134
#26 0xb76821ce in QTimer::timerEvent (this=0xa6b1330, e=0xbfd65fe0) at kernel/qtimer.cpp:271
#27 0xb7676504 in QObject::event (this=0xa6b1330, e=0xa03c401) at kernel/qobject.cpp:1183
#28 0xb5277fdc in QApplicationPrivate::notify_helper (this=0x9fed410, receiver=0xa6b1330, e=0xbfd65fe0) at kernel/qapplication.cpp:4396
#29 0xb527e04e in QApplication::notify (this=0xbfd683a0, receiver=0xa6b1330, e=0xbfd65fe0) at kernel/qapplication.cpp:3798
#30 0xb5defd8a in KApplication::notify (this=0xbfd683a0, receiver=0xa6b1330, event=0xbfd65fe0) at ../../kdeui/kernel/kapplication.cpp:310
#31 0xb7663b3b in QCoreApplication::notifyInternal (this=0xbfd683a0, receiver=0xa6b1330, event=0xbfd65fe0) at kernel/qcoreapplication.cpp:732
#32 0xb7695ad6 in sendEvent (this=0x9fedbd8) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#33 QTimerInfoList::activateTimers (this=0x9fedbd8) at kernel/qeventdispatcher_unix.cpp:602
#34 0xb7695c37 in QEventDispatcherUNIX::processEvents (this=0x9f9db70, flags=...) at kernel/qeventdispatcher_unix.cpp:923
#35 0xb533b0d2 in QEventDispatcherX11::processEvents (this=0x9f9db70, flags=...) at kernel/qeventdispatcher_x11.cpp:152
#36 0xb7662609 in QEventLoop::processEvents (this=0xbfd66230, flags=) at kernel/qeventloop.cpp:149
#37 0xb7662a8a in QEventLoop::exec (this=0xbfd66230, flags=...) at kernel/qeventloop.cpp:201
#38 0xb57e2873 in QDialog::exec (this=0xbfd662b4) at dialogs/qdialog.cpp:552
#39 0xb7359b09 in KisLayerManager::addAdjustmentLayer (this=0xb68fb18, parent=..., above=...) at /home/user/Apps/calligra/calligra-src/krita/ui/kis_layer_manager.cc:475
#40 0xb736fa39 in KisNodeManager::createNode (this=0xb6910e8, nodeType=...) at /home/user/Apps/calligra/calligra-src/krita/ui/kis_node_manager.cpp:252
#41 0xb0fab980 in KisLayerBox::slotNewAdjustmentLayer (this=0xb08af18) at /home/user/Apps/calligra/calligra-src/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.cpp:347
#42 0xb0fb16c3 in KisLayerBox::qt_metacall (this=0xb08af18, _c=QMetaObject::InvokeMetaMethod, _id=17, _a=0xbfd66588) at /home/user/Apps/calligra/calligra-build/krita/plugins/extensions/dockers/defaultdockers/kis_layer_box.moc:137
#43 0xb76698ca in QMetaObject::metacall (object=0xb08af18, cl=QMetaObject::ReadProperty, idx=51, argv=0xbfd66588) at kernel/qmetaobject.cpp:237
#44 0xb767c6ad in QMetaObject::activate (sender=0xb0a4d40, m=0xb5bf6370, local_signal_index=1, argv=0x0) at kernel/qobject.cpp:3280
#45 0xb526ff99 in QAction::triggered (this=0xb0a4d40, _t1=false) at .moc/release-shared/moc_qaction.cpp:263
#46 0xb52718dc in QAction::activate (this=0xb0a4d40, event=QAction::Trigger) at kernel/qaction.cpp:1256
#47 0xb573d7ef in QMenuPrivate::activateCausedStack (this=0xb0a7ae0, causedStack=..., action=0xb0a4d40, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:993
#48 0xb5743a4b in QMenuPrivate::activateAction (this=0xb0a7ae0, action=0xb0a4d40, action_e=QAction::Trigger, self=<value optimized out>) at widgets/qmenu.cpp:1085
#49 0xb57445e0 in QMenu::mouseReleaseEvent (this=0xb0a49a0, e=0xbfd66e30) at widgets/qmenu.cpp:2301
#50 0xb5eeb8a5 in KMenu::mouseReleaseEvent (this=0xb0a49a0, e=0xbfd66e30) at ../../kdeui/widgets/kmenu.cpp:471
#51 0xb52d5e08 in QWidget::event (this=0xb0a49a0, event=0xbfd66e30) at kernel/qwidget.cpp:8187
#52 0xb574602f in QMenu::event (this=0xb0a49a0, e=0xbfd66e30) at widgets/qmenu.cpp:2410
#53 0xb5277fdc in QApplicationPrivate::notify_helper (this=0x9fed410, receiver=0xb0a49a0, e=0xbfd66e30) at kernel/qapplication.cpp:4396
#54 0xb527ec2e in QApplication::notify (this=0xbfd683a0, receiver=0xb0a49a0, e=0xbfd66e30) at kernel/qapplication.cpp:3959
#55 0xb5defd8a in KApplication::notify (this=0xbfd683a0, receiver=0xb0a49a0, event=0xbfd66e30) at ../../kdeui/kernel/kapplication.cpp:310
#56 0xb7663b3b in QCoreApplication::notifyInternal (this=0xbfd683a0, receiver=0xb0a49a0, event=0xbfd66e30) at kernel/qcoreapplication.cpp:732
#57 0xb527d094 in sendEvent (receiver=0xb0a49a0, event=0xbfd66e30, alienWidget=0x0, nativeWidget=0xb0a49a0, buttonDown=0xb5c123c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#58 QApplicationPrivate::sendMouseEvent (receiver=0xb0a49a0, event=0xbfd66e30, alienWidget=0x0, nativeWidget=0xb0a49a0, buttonDown=0xb5c123c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#59 0xb530c261 in QETWidget::translateMouseEvent (this=0xb0a49a0, event=0xbfd6734c) at kernel/qapplication_x11.cpp:4337
#60 0xb530b151 in QApplication::x11ProcessEvent (this=0xbfd683a0, event=0xbfd6734c) at kernel/qapplication_x11.cpp:3414
#61 0xb533afc7 in QEventDispatcherX11::processEvents (this=0x9f9db70, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#62 0xb7662609 in QEventLoop::processEvents (this=0xbfd67480, flags=) at kernel/qeventloop.cpp:149
#63 0xb7662a8a in QEventLoop::exec (this=0xbfd67480, flags=...) at kernel/qeventloop.cpp:201
#64 0xb5740efe in QMenu::exec (this=0xb0a49a0, p=..., action=0x0) at widgets/qmenu.cpp:2054
#65 0xb579028b in QToolButtonPrivate::popupTimerDone (this=0xb09f628) at widgets/qtoolbutton.cpp:955
#66 0xb57917e5 in QToolButton::mousePressEvent (this=0xb09f468, e=0xbfd67ce0) at widgets/qtoolbutton.cpp:706
#67 0xb52d5dec in QWidget::event (this=0xb09f468, event=0xbfd67ce0) at kernel/qwidget.cpp:8183
#68 0xb56a5e9e in QAbstractButton::event (this=0xb09f468, e=0xa03c401) at widgets/qabstractbutton.cpp:1080
#69 0xb57910ca in QToolButton::event (this=0xb09f468, event=0xbfd67ce0) at widgets/qtoolbutton.cpp:1163
#70 0xb5277fdc in QApplicationPrivate::notify_helper (this=0x9fed410, receiver=0xb09f468, e=0xbfd67ce0) at kernel/qapplication.cpp:4396
#71 0xb527ec2e in QApplication::notify (this=0xbfd683a0, receiver=0xb09f468, e=0xbfd67ce0) at kernel/qapplication.cpp:3959
#72 0xb5defd8a in KApplication::notify (this=0xbfd683a0, receiver=0xb09f468, event=0xbfd67ce0) at ../../kdeui/kernel/kapplication.cpp:310
#73 0xb7663b3b in QCoreApplication::notifyInternal (this=0xbfd683a0, receiver=0xb09f468, event=0xbfd67ce0) at kernel/qcoreapplication.cpp:732
#74 0xb527d094 in sendEvent (receiver=0xb09f468, event=0xbfd67ce0, alienWidget=0xb09f468, nativeWidget=0xb08af18, buttonDown=0xb5c123c0, lastMouseReceiver=..., spontaneous=true) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:215
#75 QApplicationPrivate::sendMouseEvent (receiver=0xb09f468, event=0xbfd67ce0, alienWidget=0xb09f468, nativeWidget=0xb08af18, buttonDown=0xb5c123c0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3058
#76 0xb530bd10 in QETWidget::translateMouseEvent (this=0xb08af18, event=0xbfd681fc) at kernel/qapplication_x11.cpp:4403
#77 0xb530b151 in QApplication::x11ProcessEvent (this=0xbfd683a0, event=0xbfd681fc) at kernel/qapplication_x11.cpp:3414
#78 0xb533afc7 in QEventDispatcherX11::processEvents (this=0x9f9db70, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#79 0xb7662609 in QEventLoop::processEvents (this=0xbfd68334, flags=) at kernel/qeventloop.cpp:149
#80 0xb7662a8a in QEventLoop::exec (this=0xbfd68334, flags=...) at kernel/qeventloop.cpp:201
#81 0xb766700f in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1009
#82 0xb5276e07 in QApplication::exec () at kernel/qapplication.cpp:3672
#83 0xb77b66dd in kdemain (argc=1, argv=0xbfd684b4) at /home/user/Apps/calligra/calligra-src/krita/main.cc:49
#84 0x080487eb in main (argc=1, argv=0xbfd684b4) at /home/user/Apps/calligra/calligra-build/krita/krita_dummy.cpp:3

Reported using DrKonqi
Comment 1 Sven Langkamp 2011-01-23 22:36:34 UTC
Git commit b8244f279d48dd9d576ff2d70c71a586bff3d8eb by Sven Langkamp.
Pushed by langkamp into branch 'master'.

check for filter before saving filter layer
CCBUG:264116

M  +1    -0    krita/ui/kra/kis_kra_save_visitor.cpp     
M  +3    -0    krita/ui/kra/kis_kra_savexml_visitor.cpp     

http://commits.kde.org/47e7010d/b8244f279d48dd9d576ff2d70c71a586bff3d8eb
Comment 2 Halla Rempt 2011-01-31 13:35:27 UTC
SVN commit 1218107 by rempt:

backport of fix for bug 264116

CCBUG:264116

see https://projects.kde.org/projects/calligra/repository/revisions/b8244f279d48dd9d576ff2d70c71a586bff3d8eb


 M  +1 -0      kis_kra_save_visitor.cpp  
 M  +3 -0      kis_kra_savexml_visitor.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1218107