Bug 399969 - Krita Crashes when adding selection masks to group layer
Summary: Krita Crashes when adding selection masks to group layer
Status: RESOLVED DUPLICATE of bug 400072
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords: drkonqi
Depends on:
Blocks:
 
Reported: 2018-10-18 07:41 UTC by Raghavendra kamath
Modified: 2018-10-21 11:41 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 Raghavendra kamath 2018-10-18 07:41:16 UTC
Application: krita (4.2.0-pre-alpha (git e35700e))

Qt Version: 5.11.2
Frameworks Version: 5.51.0
Operating System: Linux 4.18.14-arch1-1-ARCH x86_64
Distribution (Platform): Archlinux Packages

-- Information about the crash:
- What I was doing when the application crashed:
I added a selection to a new document
Then enable displaying global selection mask
then select the selection mask in the layer panel and press ctrl G to make krita crash

A user can have multiple selection masks so it would be great to make it possible to add selection masks to a group to keep them organised. And krita shouldn't crash when grouping them

The crash can be reproduced every time.

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

Thread 16 (Thread 0x7fbd8dffc700 (LWP 11949)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 15 (Thread 0x7fbdb6bf2700 (LWP 11898)):
#0  0x00007fbdef12ac21 in poll () from /usr/lib/libc.so.6
#1  0x00007fbdecc3dee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbdecc3dfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbdef7f2fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fbdef5e7eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 14 (Thread 0x7fbdb73fe700 (LWP 11891)):
#0  0x00007fbdecbec414 in g_mutex_unlock () from /usr/lib/libglib-2.0.so.0
#1  0x00007fbdecc3d741 in g_main_context_prepare () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbdecc3de06 in ?? () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbdecc3dfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#4  0x00007fbdef7f2fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#6  0x00007fbdef5e7eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#7  0x00007fbde6ae35bb in ?? () from /usr/lib/libQt5Quick.so.5
#8  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#9  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#10 0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 13 (Thread 0x7fbdbcf2e700 (LWP 11890)):
#0  0x00007fbdef12ac21 in poll () from /usr/lib/libc.so.6
#1  0x00007fbdecc3dee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbdecc3dfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbdef7f2fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fbdef5e7eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fbde6864859 in ?? () from /usr/lib/libQt5Qml.so.5
#7  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 12 (Thread 0x7fbdbeffd700 (LWP 11889)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 11 (Thread 0x7fbdbf7fe700 (LWP 11888)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 10 (Thread 0x7fbdb7fff700 (LWP 11887)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 9 (Thread 0x7fbdbffff700 (LWP 11886)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 8 (Thread 0x7fbdd4c11700 (LWP 11885)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 7 (Thread 0x7fbdd5412700 (LWP 11884)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 6 (Thread 0x7fbdd5c13700 (LWP 11883)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 5 (Thread 0x7fbdd6c15700 (LWP 11882)):
#0  0x00007fbdee4deef6 in pthread_cond_timedwait@@GLIBC_2.3.2 () from /usr/lib/libpthread.so.0
#1  0x00007fbdef5f25fd in QWaitCondition::wait(QMutex*, unsigned long) () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5ea024 in ?? () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#5  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 4 (Thread 0x7fbdd6414700 (LWP 11881)):
#0  0x00007fbdef1304ed in syscall () from /usr/lib/libc.so.6
#1  0x00007fbdef5e6d71 in ?? () from /usr/lib/libQt5Core.so.5
#2  0x00007fbdef5e6be2 in QSemaphore::tryAcquire(int, int) () from /usr/lib/libQt5Core.so.5
#3  0x00007fbdf2fcc503 in KisTileDataSwapper::waitForWork (this=<optimized out>) at /mnt/Data/krita-build/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:86
#4  0x00007fbdf2fcc71a in KisTileDataSwapper::run (this=0x7fbdf32dac80 <(anonymous namespace)::Q_QGS_s_instance::innerFunction()::holder+64>) at /mnt/Data/krita-build/src/krita/libs/image/tiles3/swap/kis_tile_data_swapper.cpp:92
#5  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#6  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#7  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 3 (Thread 0x7fbdd7524700 (LWP 11879)):
#0  0x00007fbdecc3dc4e in g_main_context_release () from /usr/lib/libglib-2.0.so.0
#1  0x00007fbdecc3de9d in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbdecc3dfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbdef7f2fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fbdef5e7eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#7  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#8  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 2 (Thread 0x7fbde4c29700 (LWP 11877)):
#0  0x00007fbdef12ac21 in poll () from /usr/lib/libc.so.6
#1  0x00007fbdecc3dee0 in ?? () from /usr/lib/libglib-2.0.so.0
#2  0x00007fbdecc3dfce in g_main_context_iteration () from /usr/lib/libglib-2.0.so.0
#3  0x00007fbdef7f2fe4 in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#4  0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#5  0x00007fbdef5e7eb9 in QThread::exec() () from /usr/lib/libQt5Core.so.5
#6  0x00007fbdf13f1ba6 in ?? () from /usr/lib/libQt5DBus.so.5
#7  0x00007fbdef5f1f65 in ?? () from /usr/lib/libQt5Core.so.5
#8  0x00007fbdee4d8a9d in start_thread () from /usr/lib/libpthread.so.0
#9  0x00007fbdef135b23 in clone () from /usr/lib/libc.so.6

Thread 1 (Thread 0x7fbde9203840 (LWP 11875)):
[KCrash Handler]
#6  0x00007fbdf3a173d6 in KisNodeManager::createQuickGroupImpl (this=<optimized out>, juggler=0x562b435e3190, overrideGroupName=..., newGroup=0x7fff53464b20, newLastChild=0x7fff53464b28) at /usr/include/qt/QtCore/qlist.h:266
#7  0x00007fbdf3a17653 in KisNodeManager::createQuickGroup (this=0x562b4344cb58) at /usr/include/qt/QtCore/qstring.h:693
#8  0x00007fbdf3d0c728 in KisNodeManager::qt_static_metacall (_o=0x562b4344cb58, _c=<optimized out>, _id=<optimized out>, _a=0x7fff53464cb0) at /mnt/Data/krita-build/build/libs/ui/kritaui_autogen/EWIEGA46WW/moc_kis_node_manager.cpp:358
#9  0x00007fbdef7c9a7c in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib/libQt5Core.so.5
#10 0x00007fbdf0118613 in QAction::triggered(bool) () from /usr/lib/libQt5Widgets.so.5
#11 0x00007fbdf011ad0a in QAction::activate(QAction::ActionEvent) () from /usr/lib/libQt5Widgets.so.5
#12 0x00007fbdf011b615 in QAction::event(QEvent*) () from /usr/lib/libQt5Widgets.so.5
#13 0x00007fbdf011ee14 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#14 0x00007fbdf01266e1 in QApplication::notify(QObject*, QEvent*) () from /usr/lib/libQt5Widgets.so.5
#15 0x00007fbdf3c1c597 in KisApplication::notify (this=<optimized out>, receiver=0x562b43567f60, event=0x7fff53464fd0) at /mnt/Data/krita-build/src/krita/libs/ui/KisApplication.cpp:608
#16 0x00007fbdef79fc39 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib/libQt5Core.so.5
#17 0x00007fbdefb73a05 in QShortcutMap::dispatchEvent(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#18 0x00007fbdefb73ae3 in QShortcutMap::tryShortcut(QKeyEvent*) () from /usr/lib/libQt5Gui.so.5
#19 0x00007fbdefb2785c in QWindowSystemInterface::handleShortcutEvent(QWindow*, unsigned long, int, QFlags<Qt::KeyboardModifier>, unsigned int, unsigned int, unsigned int, QString const&, bool, unsigned short) () from /usr/lib/libQt5Gui.so.5
#20 0x00007fbdefb447ae in QGuiApplicationPrivate::processKeyEvent(QWindowSystemInterfacePrivate::KeyEvent*) () from /usr/lib/libQt5Gui.so.5
#21 0x00007fbdefb4a046 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib/libQt5Gui.so.5
#22 0x00007fbdefb23a3c in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Gui.so.5
#23 0x00007fbde8df9e1d in ?? () from /usr/lib/libQt5XcbQpa.so.5
#24 0x00007fbdef79e8cc in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib/libQt5Core.so.5
#25 0x00007fbdef7a6bc6 in QCoreApplication::exec() () from /usr/lib/libQt5Core.so.5
#26 0x0000562b38516c3c in main (argc=<optimized out>, argv=0x7fff53465618) at /mnt/Data/krita-build/src/krita/krita/main.cc:456
[Inferior 1 (process 11875) detached]

Reported using DrKonqi
Comment 1 mvowada 2018-10-18 08:48:36 UTC
I can confirm. 

In both Krita 4.2.0-pre-alpha (git a2ae7f3) and Krita 4.1.5 it's easily reproducible when grouping either a local or a global selection.

In Krita 3 the problem doesn't rise just because grouping selections is disabled.
Comment 2 Halla Rempt 2018-10-21 11:41:50 UTC

*** This bug has been marked as a duplicate of bug 400072 ***