Bug 305465 - Crash when merging down
Summary: Crash when merging down
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: 2012-08-19 23:09 UTC by Kvaks
Modified: 2012-08-20 18:57 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 Kvaks 2012-08-19 23:09:33 UTC
Application: krita (2.4.0)
KDE Platform Version: 4.8.4 (4.8.4)
Qt Version: 4.8.1
Operating System: Linux 3.2.0-27-generic x86_64
Distribution: Ubuntu 12.04.1 LTS

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

Just was just finishing up a piece and merging down a few layers. I merged down twice in quick succession and Krita crashed.

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

Thread 7 (Thread 0x7f78866d1700 (LWP 27259)):
#0  0x00007f78a42e4d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f78a8b9b4db in wait (time=18446744073709551615, this=0x5410750) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5410700, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f78a8b97314 in QSemaphore::acquire (this=0x5410450, n=1) at thread/qsemaphore.cpp:144
#4  0x00007f7892866c8e in ?? () from /usr/lib/libkritaimage.so.9
#5  0x00007f7892867374 in ?? () from /usr/lib/libkritaimage.so.9
#6  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x5410440) at thread/qthread_unix.cpp:298
#7  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#8  0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#9  0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#10 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7f7885ed0700 (LWP 27260)):
#0  0x00007f78a42e4d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f78a8b9b4db in wait (time=18446744073709551615, this=0x5410ae0) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x5410a90, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f78a8b97759 in QSemaphore::tryAcquire (this=0x54107c0, n=1, timeout=-1) at thread/qsemaphore.cpp:221
#4  0x00007f7892887e9a in KisTileDataSwapper::run() () from /usr/lib/libkritaimage.so.9
#5  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x5410478) at thread/qthread_unix.cpp:298
#6  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#7  0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#8  0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#9  0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7f7872e26700 (LWP 27265)):
#0  0x00007f78aac5d823 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f78a8cc6366 in qt_safe_select (nfds=29, fdread=0x7f7868000ae8, fdwrite=0x7f7868000d80, fdexcept=0x7f7868001018, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f78a8ccb7b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f7868000930, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f78a8ccbca3 in QEventDispatcherUNIX::processEvents (this=0x7f7868000910, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f78a8c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f78a8c98ed7 in QEventLoop::exec (this=0x7f7872e25cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f78a8b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f78a8c789ff in QInotifyFileSystemWatcherEngine::run (this=0x58aef60) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x58aef60) at thread/qthread_unix.cpp:298
#9  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#10 0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7f7873627700 (LWP 27270)):
#0  0x00007f78aac5d823 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f78a8cc6366 in qt_safe_select (nfds=25, fdread=0x7f7864000ae8, fdwrite=0x7f7864000d80, fdexcept=0x7f7864001018, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f78a8ccb7b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f7864000930, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f78a8ccbca3 in QEventDispatcherUNIX::processEvents (this=0x7f7864000910, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f78a8c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f78a8c98ed7 in QEventLoop::exec (this=0x7f7873626cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f78a8b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f78a8c789ff in QInotifyFileSystemWatcherEngine::run (this=0x5b1fca0) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x5b1fca0) at thread/qthread_unix.cpp:298
#9  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#10 0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7f7863044700 (LWP 27279)):
#0  0x00007f78a42e4d84 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/x86_64-linux-gnu/libpthread.so.0
#1  0x00007f78a8b9b4db in wait (time=18446744073709551615, this=0x10d85070) at thread/qwaitcondition_unix.cpp:86
#2  QWaitCondition::wait (this=<optimized out>, mutex=0x10d84bf0, time=18446744073709551615) at thread/qwaitcondition_unix.cpp:158
#3  0x00007f78a9b9e354 in QFileInfoGatherer::run (this=0x10d84be0) at dialogs/qfileinfogatherer.cpp:214
#4  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x10d84be0) at thread/qthread_unix.cpp:298
#5  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#6  0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#7  0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#8  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7f7862843700 (LWP 27280)):
#0  0x00007f78aac5d823 in select () from /lib/x86_64-linux-gnu/libc.so.6
#1  0x00007f78a8cc6366 in qt_safe_select (nfds=37, fdread=0x7f786c000ae8, fdwrite=0x7f786c000d80, fdexcept=0x7f786c001018, orig_timeout=<optimized out>) at kernel/qcore_unix.cpp:83
#2  0x00007f78a8ccb7b2 in QEventDispatcherUNIXPrivate::doSelect (this=0x7f786c000930, flags=..., timeout=0x0) at kernel/qeventdispatcher_unix.cpp:223
#3  0x00007f78a8ccbca3 in QEventDispatcherUNIX::processEvents (this=0x7f786c000910, flags=...) at kernel/qeventdispatcher_unix.cpp:926
#4  0x00007f78a8c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#5  0x00007f78a8c98ed7 in QEventLoop::exec (this=0x7f7862842cd0, flags=...) at kernel/qeventloop.cpp:204
#6  0x00007f78a8b97fa7 in QThread::exec (this=<optimized out>) at thread/qthread.cpp:501
#7  0x00007f78a8c789ff in QInotifyFileSystemWatcherEngine::run (this=0x10d85170) at io/qfilesystemwatcher_inotify.cpp:248
#8  0x00007f78a8b9afcb in QThreadPrivate::start (arg=0x10d85170) at thread/qthread_unix.cpp:298
#9  0x00007f789e05bb74 in ?? () from /usr/lib/nvidia-current-updates/libGL.so.1
#10 0x00007f78a42e0e9a in start_thread () from /lib/x86_64-linux-gnu/libpthread.so.0
#11 0x00007f78aac644bd in clone () from /lib/x86_64-linux-gnu/libc.so.6
#12 0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7f78ab6db7c0 (LWP 27258)):
[KCrash Handler]
#6  0x00007f789290e840 in KisLayer::metaData() () from /usr/lib/libkritaimage.so.9
#7  0x00007f7892da7846 in ?? () from /usr/lib/libkritaui.so.9
#8  0x00007f7874cb14e5 in ?? () from /usr/lib/kde4/kritadefaultdockers.so
#9  0x00007f78a8cae281 in QMetaObject::activate (sender=0x13cfbb00, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcb1f2e50) at kernel/qobject.cpp:3547
#10 0x00007f78a968e132 in QAction::triggered (this=<optimized out>, _t1=false) at .moc/release-shared/moc_qaction.cpp:277
#11 0x00007f78a968e31f in QAction::activate (this=0x13cfbb00, event=<optimized out>) at kernel/qaction.cpp:1257
#12 0x00007f78a9ae0119 in QMenuPrivate::activateCausedStack (this=0x5a92640, causedStack=..., action=0x13cfbb00, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1028
#13 0x00007f78a9ae6272 in QMenuPrivate::activateAction (this=0x5a92640, action=0x13cfbb00, action_e=QAction::Trigger, self=true) at widgets/qmenu.cpp:1120
#14 0x00007f78a96e5144 in QWidget::event (this=0x7fffcb1f4400, event=0x7fffcb1f3870) at kernel/qwidget.cpp:8362
#15 0x00007f78a9ae780b in QMenu::event (this=0x7fffcb1f4400, e=0x7fffcb1f3870) at widgets/qmenu.cpp:2469
#16 0x00007f78a9694894 in notify_helper (e=0x7fffcb1f3870, receiver=0x7fffcb1f4400, this=0x17b4d00) at kernel/qapplication.cpp:4559
#17 QApplicationPrivate::notify_helper (this=0x17b4d00, receiver=0x7fffcb1f4400, e=0x7fffcb1f3870) at kernel/qapplication.cpp:4531
#18 0x00007f78a969a0bf in QApplication::notify (this=<optimized out>, receiver=0x7fffcb1f4400, e=0x7fffcb1f3870) at kernel/qapplication.cpp:4102
#19 0x00007f78aa3ce9e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#20 0x00007f78a8c99e9c in QCoreApplication::notifyInternal (this=0x7fffcb1f6250, receiver=0x7fffcb1f4400, event=0x7fffcb1f3870) at kernel/qcoreapplication.cpp:876
#21 0x00007f78a9695862 in sendEvent (event=<optimized out>, receiver=<optimized out>) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:231
#22 QApplicationPrivate::sendMouseEvent (receiver=0x7fffcb1f4400, event=0x7fffcb1f3870, alienWidget=0x0, nativeWidget=0x7fffcb1f4400, buttonDown=0x0, lastMouseReceiver=..., spontaneous=true) at kernel/qapplication.cpp:3170
#23 0x00007f78a97152c1 in QETWidget::translateMouseEvent (this=0x7fffcb1f4400, event=<optimized out>) at kernel/qapplication_x11.cpp:4551
#24 0x00007f78a9713bae in QApplication::x11ProcessEvent (this=0x7fffcb1f6250, event=0x7fffcb1f4150) at kernel/qapplication_x11.cpp:3732
#25 0x00007f78a973db3a in QEventDispatcherX11::processEvents (this=0x16f8150, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#26 0x00007f78a8c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#27 0x00007f78a8c98ed7 in QEventLoop::exec (this=0x7fffcb1f43a0, flags=...) at kernel/qeventloop.cpp:204
#28 0x00007f78a9ae3131 in QMenu::exec (this=<optimized out>, p=..., action=0x0) at widgets/qmenu.cpp:2113
#29 0x00007f7874caff2c in ?? () from /usr/lib/kde4/kritadefaultdockers.so
#30 0x00007f7874cb139d in ?? () from /usr/lib/kde4/kritadefaultdockers.so
#31 0x00007f78a8cae281 in QMetaObject::activate (sender=0x10f2d5f0, m=<optimized out>, local_signal_index=<optimized out>, argv=0x7fffcb1f4730) at kernel/qobject.cpp:3547
#32 0x00007f78aa8dec07 in KoDocumentSectionView::contextMenuRequested(QPoint const&, QModelIndex const&) () from /usr/lib/libkomain.so.9
#33 0x00007f78aa8dd51f in KoDocumentSectionView::contextMenuEvent(QContextMenuEvent*) () from /usr/lib/libkomain.so.9
#34 0x00007f78a96e4e94 in QWidget::event (this=0x10f2d5f0, event=0x7fffcb1f5710) at kernel/qwidget.cpp:8529
#35 0x00007f78a9aa53b6 in QFrame::event (this=0x10f2d5f0, e=0x7fffcb1f5710) at widgets/qframe.cpp:557
#36 0x00007f78a9bb989b in QAbstractItemView::viewportEvent (this=0x10f2d5f0, event=0x7fffcb1f5710) at itemviews/qabstractitemview.cpp:1644
#37 0x00007f78a9c014b5 in QTreeView::viewportEvent (this=0x10f2d5f0, event=0x7fffcb1f5710) at itemviews/qtreeview.cpp:1257
#38 0x00007f78aa8ddc7b in KoDocumentSectionView::viewportEvent(QEvent*) () from /usr/lib/libkomain.so.9
#39 0x00007f78a8c9a028 in QCoreApplicationPrivate::sendThroughObjectEventFilters (this=<optimized out>, receiver=0x10f16870, event=0x7fffcb1f5710) at kernel/qcoreapplication.cpp:986
#40 0x00007f78a969485f in notify_helper (e=0x7fffcb1f5710, receiver=0x10f16870, this=0x17b4d00) at kernel/qapplication.cpp:4555
#41 QApplicationPrivate::notify_helper (this=0x17b4d00, receiver=0x10f16870, e=0x7fffcb1f5710) at kernel/qapplication.cpp:4531
#42 0x00007f78a9699bcd in QApplication::notify (this=<optimized out>, receiver=0x10f16870, e=0x7fffcb1f5710) at kernel/qapplication.cpp:4181
#43 0x00007f78aa3ce9e6 in KApplication::notify(QObject*, QEvent*) () from /usr/lib/libkdeui.so.5
#44 0x00007f78a8c99e9c in QCoreApplication::notifyInternal (this=0x7fffcb1f6250, receiver=0x10f16870, event=0x7fffcb1f5710) at kernel/qcoreapplication.cpp:876
#45 0x00007f78a9714c58 in sendSpontaneousEvent (event=0x7fffcb1f5710, receiver=0x10f16870) at ../../include/QtCore/../../src/corelib/kernel/qcoreapplication.h:234
#46 QETWidget::translateMouseEvent (this=<optimized out>, event=<optimized out>) at kernel/qapplication_x11.cpp:4622
#47 0x00007f78a9713bae in QApplication::x11ProcessEvent (this=0x7fffcb1f6250, event=0x7fffcb1f5fc0) at kernel/qapplication_x11.cpp:3732
#48 0x00007f78a973db3a in QEventDispatcherX11::processEvents (this=0x16f8150, flags=...) at kernel/qeventdispatcher_x11.cpp:132
#49 0x00007f78a8c98c82 in QEventLoop::processEvents (this=<optimized out>, flags=...) at kernel/qeventloop.cpp:149
#50 0x00007f78a8c98ed7 in QEventLoop::exec (this=0x7fffcb1f6210, flags=...) at kernel/qeventloop.cpp:204
#51 0x00007f78a8c9df67 in QCoreApplication::exec () at kernel/qcoreapplication.cpp:1148
#52 0x00007f78ab10021d in kdemain () from /usr/lib/kde4/libkdeinit/libkdeinit4_krita.so
#53 0x00007f78aab9376d in __libc_start_main () from /lib/x86_64-linux-gnu/libc.so.6
#54 0x0000000000400661 in _start ()

Reported using DrKonqi
Comment 1 Kvaks 2012-08-19 23:19:51 UTC
After restarting and opening the saved work, the crash happened again when merging down the top layer again. Happens every time.
Comment 2 Kvaks 2012-08-19 23:28:03 UTC
Link to saved file: http://dl.dropbox.com/u/11568637/moonlight.kra

When opening this file in Krita, right-clicking the top layer and selecting merge down, Krita crashes.
Comment 3 Sven Langkamp 2012-08-19 23:43:04 UTC
Application: Krita (krita), signal: Segmentation fault
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[Current thread is 1 (Thread 0x7fee83e35780 (LWP 7952))]

Thread 9 (Thread 0x7fee64e77700 (LWP 7953)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fee812124db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee8120e314 in QSemaphore::acquire(int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fee6d18688c in KisTileDataPooler::waitForWork (this=0x25374a0) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:162
#4  0x00007fee6d18691b in KisTileDataPooler::run (this=0x25374a0) at /home/sven/kde/src/calligra/krita/image/tiles3/kis_tile_data_pooler.cc:184
#5  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fee7c5f4e9a in start_thread (arg=0x7fee64e77700) at pthread_create.c:308
#7  0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 8 (Thread 0x7fee64676700 (LWP 7954)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fee812124db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee8120e759 in QSemaphore::tryAcquire(int, int) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fee6d1a2ecc in KisTileDataSwapper::waitForWork (this=0x25374d8) at /home/sven/kde/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007fee6d1a2ee6 in KisTileDataSwapper::run (this=0x25374d8) at /home/sven/kde/src/calligra/krita/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fee7c5f4e9a in start_thread (arg=0x7fee64676700) at pthread_create.c:308
#7  0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#8  0x0000000000000000 in ?? ()

Thread 7 (Thread 0x7fee6103f700 (LWP 7959)):
#0  0x00007fee83388823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fee8133d366 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee813427b2 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fee81342ca3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fee8130fc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fee8130fed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fee8120efa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fee812ef9ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fee7c5f4e9a in start_thread (arg=0x7fee6103f700) at pthread_create.c:308
#10 0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 6 (Thread 0x7fee61840700 (LWP 7964)):
#0  0x00007fee83388823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fee8133d366 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee813427b2 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fee81342ca3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fee8130fc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fee8130fed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fee8120efa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fee812ef9ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fee7c5f4e9a in start_thread (arg=0x7fee61840700) at pthread_create.c:308
#10 0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 5 (Thread 0x7fee41c5b700 (LWP 7972)):
#0  pthread_cond_wait@@GLIBC_2.3.2 () at ../nptl/sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:162
#1  0x00007fee812124db in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee82215354 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#3  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fee7c5f4e9a in start_thread (arg=0x7fee41c5b700) at pthread_create.c:308
#5  0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 4 (Thread 0x7fee4245c700 (LWP 7973)):
#0  0x00007fee83388823 in select () at ../sysdeps/unix/syscall-template.S:82
#1  0x00007fee8133d366 in qt_safe_select(int, fd_set*, fd_set*, fd_set*, timeval const*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#2  0x00007fee813427b2 in QEventDispatcherUNIXPrivate::doSelect(QFlags<QEventLoop::ProcessEventsFlag>, timeval*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#3  0x00007fee81342ca3 in QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#4  0x00007fee8130fc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#5  0x00007fee8130fed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#6  0x00007fee8120efa7 in QThread::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#7  0x00007fee812ef9ff in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#8  0x00007fee81211fcb in ?? () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#9  0x00007fee7c5f4e9a in start_thread (arg=0x7fee4245c700) at pthread_create.c:308
#10 0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#11 0x0000000000000000 in ?? ()

Thread 3 (Thread 0x7fee62265700 (LWP 7977)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1  0x00007fee2d75ebdc in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#2  0x00007fee2d1279d8 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#3  0x00007fee2d12788d in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#4  0x00007fee7c5f4e9a in start_thread (arg=0x7fee62265700) at pthread_create.c:308
#5  0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 2 (Thread 0x7fee6083e700 (LWP 7978)):
#0  sem_wait () at ../nptl/sysdeps/unix/sysv/linux/x86_64/sem_wait.S:86
#1  0x00007fee2d75ebdc in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#2  0x00007fee2d1279d8 in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#3  0x00007fee2d12788d in ?? () from /usr/lib/fglrx/dri/fglrx_dri.so
#4  0x00007fee7c5f4e9a in start_thread (arg=0x7fee6083e700) at pthread_create.c:308
#5  0x00007fee8338f4bd in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:112
#6  0x0000000000000000 in ?? ()

Thread 1 (Thread 0x7fee83e35780 (LWP 7952)):
[KCrash Handler]
#6  0x00007fee6d25d8d6 in KisLayer::metaData (this=0x0) at /home/sven/kde/src/calligra/krita/image/kis_layer.cc:584
#7  0x00007fee6d7a42c2 in KisLayerManager::mergeLayer (this=0xadd59c0) at /home/sven/kde/src/calligra/krita/ui/kis_layer_manager.cc:815
#8  0x00007fee6d7a6522 in KisLayerManager::qt_static_metacall (_o=0xadd59c0, _c=QMetaObject::InvokeMetaMethod, _id=1, _a=0x7fff605567a0) at /home/sven/kde/build/calligra/krita/ui/kis_layer_manager.moc:107
#9  0x00007fee81325281 in QMetaObject::activate(QObject*, QMetaObject const*, int, void**) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#10 0x00007fee81d05132 in QAction::triggered(bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#11 0x00007fee81d0531f in QAction::activate(QAction::ActionEvent) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#12 0x00007fee82157119 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#13 0x00007fee8215d272 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#14 0x00007fee82b062d0 in KMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib/libkdeui.so.5
#15 0x00007fee81d5c144 in QWidget::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#16 0x00007fee8215e80b in QMenu::event(QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#17 0x00007fee81d0b894 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#18 0x00007fee81d110bf in QApplication::notify(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#19 0x00007fee82efd26e in KoApplication::notify (this=0x7fff60557f20, receiver=0xb64e570, event=0x7fff605573a0) at /home/sven/kde/src/calligra/libs/main/KoApplication.cpp:504
#20 0x00007fee81310e9c in QCoreApplication::notifyInternal(QObject*, QEvent*) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#21 0x00007fee81d0c862 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#22 0x00007fee81d8c2c1 in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#23 0x00007fee81d8abae in QApplication::x11ProcessEvent(_XEvent*) () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#24 0x00007fee81db4b3a in ?? () from /usr/lib/x86_64-linux-gnu/libQtGui.so.4
#25 0x00007fee8130fc82 in QEventLoop::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#26 0x00007fee8130fed7 in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#27 0x00007fee81314f67 in QCoreApplication::exec() () from /usr/lib/x86_64-linux-gnu/libQtCore.so.4
#28 0x00007fee8383e86a in kdemain (argc=1, argv=0x7fff60558128) at /home/sven/kde/src/calligra/krita/main.cc:71
#29 0x0000000000400746 in main (argc=1, argv=0x7fff60558128) at /home/sven/kde/build/calligra/krita/krita_dummy.cpp:3
Comment 4 Halla Rempt 2012-08-20 06:09:57 UTC
Thanks for your report! I can reproduce the bug too, I'll look into it. Nice image, btw!
Comment 5 Sven Langkamp 2012-08-20 15:50:57 UTC
There is a invisible selection mask in the file. The merge tries to merge the layer with the selection make below it, which leads to the crash.
Comment 6 Halla Rempt 2012-08-20 18:49:58 UTC
Git commit 6d92f4e34d6aa83b2a032977a93d396a36915fbe by Boudewijn Rempt.
Committed on 20/08/2012 at 09:30.
Pushed by rempt into branch 'master'.

Fix crash when merging down the top layer if there is a selection

M  +3    -1    krita/ui/kis_layer_manager.cc

http://commits.kde.org/calligra/6d92f4e34d6aa83b2a032977a93d396a36915fbe
Comment 7 Halla Rempt 2012-08-20 18:57:59 UTC
Git commit ab34d6aa49ebb0b7d3f09974d2fa9bf8dcfe8518 by Boudewijn Rempt.
Committed on 20/08/2012 at 09:30.
Pushed by rempt into branch 'calligra/2.5'.

Fix crash when merging down the top layer if there is a selection

M  +3    -1    krita/ui/kis_layer_manager.cc

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