Bug 399749 - Crash when converting a Transparency mask to Selection mask
Summary: Crash when converting a Transparency mask to Selection mask
Status: RESOLVED DUPLICATE of bug 406241
Alias: None
Product: krita
Classification: Applications
Component: General (show other bugs)
Version: git master (please specify the git hash!)
Platform: Appimage Linux
: NOR crash
Target Milestone: ---
Assignee: Dmitry Kazakov
URL:
Keywords: regression
Depends on:
Blocks:
 
Reported: 2018-10-13 11:05 UTC by mvowada
Modified: 2019-05-01 09:39 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
(Video example) (881.00 KB, video/mp4)
2018-10-13 11:05 UTC, mvowada
Details
(GDB report - Appimage) (16.73 KB, text/plain)
2018-10-13 11:06 UTC, mvowada
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mvowada 2018-10-13 11:05:56 UTC
Created attachment 115618 [details]
(Video example)

(Krita 4.2.0-pre-alpha (git e35700e) - Ubuntu 14.04.5 LTS)

SIGABRT signal when trying to convert a Transparency mask to Selection mask:

    1. click on a Transparency mask layer
    2. right-click > Convert > Selection Mask

Actual Results: crash
Comment 1 mvowada 2018-10-13 11:06:47 UTC
Created attachment 115619 [details]
(GDB report - Appimage)
Comment 2 Halla Rempt 2018-10-14 08:27:04 UTC
#0  _int_malloc (av=av@entry=0x7fffec596640 <main_arena>, bytes=bytes@entry=112) at malloc.c:3421
#1  0x00007fffec2743d0 in __GI___libc_malloc (bytes=112) at malloc.c:2918
#2  0x00007fffecb47a58 in operator new (sz=112) at ../../../../libstdc++-v3/libsupc++/new_op.cc:50
#3  0x00007fffed0cd1c2 in QObject::QObject(QObject*) () from /usr/lib64/libQt5Core.so.5
#4  0x00007ffff327630a in KisThreadSafeSignalCompressor::KisThreadSafeSignalCompressor (this=0x9c77300, delay=100, 
    mode=KisSignalCompressor::POSTPONE) at /home/boud/dev/krita/libs/global/kis_thread_safe_signal_compressor.cpp:25
#5  0x00007ffff5deabe3 in KisSelectionUpdateCompressor::KisSelectionUpdateCompressor (this=0x9bb6fe0, 
    selection=<optimized out>) at /home/boud/dev/krita/libs/image/KisSelectionUpdateCompressor.cpp:29
#6  0x00007ffff5deab82 in KisLazyStorage<KisSelectionUpdateCompressor>::KisLazyStorage<KisSelection*>(KisSelection*)::{lambda()#1}::operator()() const (__closure=0xaf40b30) at /home/boud/dev/krita/libs/image/KisLazyStorage.h:36
#7  std::_Function_handler<KisSelectionUpdateCompressor* (), KisLazyStorage<KisSelectionUpdateCompressor>::KisLazyStorage<KisSelection*>(KisSelection*)::{lambda()#1}>::_M_invoke(std::_Any_data const&) (__functor=...)
    at /usr/include/c++/7/bits/std_function.h:302
#8  0x00007ffff5dea295 in std::function<KisSelectionUpdateCompressor* ()>::operator()() const (this=0xaf40b30)
    at /usr/include/c++/7/bits/std_function.h:706
#9  KisLazyStorage<KisSelectionUpdateCompressor>::getPointer (this=0xaf40b30)
    at /home/boud/dev/krita/libs/image/KisLazyStorage.h:76
#10 KisLazyStorage<KisSelectionUpdateCompressor>::operator-> (this=0xaf40b30)
    at /home/boud/dev/krita/libs/image/KisLazyStorage.h:64
#11 KisSelection::setParentNode (this=this@entry=0x96e4f00, node=...)
    at /home/boud/dev/krita/libs/image/kis_selection.cc:128
#12 0x00007ffff5d82c4f in KisMask::Private::initSelectionImpl (this=0x8ac21c0, copyFrom=..., parentLayer=..., 
    copyFromDevice=...) at /home/boud/dev/krita/libs/image/kis_mask.cc:198
#13 0x00007ffff5d8334a in KisMask::initSelection (this=this@entry=0xc99ece0, copyFromDevice=..., parentLayer=...)
    at /home/boud/dev/krita/libs/image/kis_mask.cc:153
#14 0x00007ffff723e78e in KisMaskManager::createMaskCommon (this=this@entry=0x9bd1f20, mask=..., activeNode=..., 
    copyFrom=..., macroName=..., nodeType=..., nodeName=..., suppressSelection=false, avoidActiveNode=true, 
    updateImage=false) at /home/boud/dev/krita/libs/ui/kis_mask_manager.cc:172
#15 0x00007ffff723f7f5 in KisMaskManager::createSelectionMask (this=0x9bd1f20, activeNode=..., copyFrom=..., 
    convertActiveNode=convertActiveNode@entry=true) at /home/boud/dev/krita/libs/ui/kis_mask_manager.cc:202
#16 0x00007ffff724ba2f in KisNodeManager::convertNode (this=0x9c67f18, nodeType=...)
    at /home/boud/dev/krita/libs/ui/kis_node_manager.cpp:605
#17 0x00007ffff75669fc in KisNodeManager::qt_static_metacall (_o=0x9c67f18, _c=<optimized out>, _id=<optimized out>, 
    _a=0x7fffffffb230) at /home/boud/dev/b-krita/libs/ui/moc_kis_node_manager.cpp:327
#18 0x00007fffed0c45ef in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#19 0x00007fffed0cfe65 in QSignalMapper::mapped(QString const&) () from /usr/lib64/libQt5Core.so.5
#20 0x00007fffed0d09db in QSignalMapper::map(QObject*) () from /usr/lib64/libQt5Core.so.5
#21 0x00007fffed0c45ef in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5
#22 0x00007fffee03ed42 in QAction::triggered(bool) () from /usr/lib64/libQt5Widgets.so.5
#23 0x00007fffee04143d in QAction::activate(QAction::ActionEvent) () from /usr/lib64/libQt5Widgets.so.5
#24 0x00007fffee1a7ea2 in ?? () from /usr/lib64/libQt5Widgets.so.5
#25 0x00007fffee1ae7a4 in ?? () from /usr/lib64/libQt5Widgets.so.5
#26 0x00007fffee1af6bb in QMenu::mouseReleaseEvent(QMouseEvent*) () from /usr/lib64/libQt5Widgets.so.5
#27 0x00007fffee080c87 in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#28 0x00007fffee1b1a0b in QMenu::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#29 0x00007fffee0451ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#30 0x00007fffee04c718 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#31 0x00007ffff7479857 in KisApplication::notify (this=<optimized out>, receiver=0x9c21190, event=0x7fffffffba60)
    at /home/boud/dev/krita/libs/ui/KisApplication.cpp:608
#32 0x00007fffed09a8f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#33 0x00007fffee04b1e9 in QApplicationPrivate::sendMouseEvent(QWidget*, QMouseEvent*, QWidget*, QWidget*, QWidget**, QPointer<QWidget>&, bool) () from /usr/lib64/libQt5Widgets.so.5
#34 0x00007fffee0991d4 in ?? () from /usr/lib64/libQt5Widgets.so.5
#35 0x00007fffee09b993 in ?? () from /usr/lib64/libQt5Widgets.so.5
#36 0x00007fffee0451ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#37 0x00007fffee04bb52 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#38 0x00007ffff7479857 in KisApplication::notify (this=<optimized out>, receiver=0x96bccb0, event=0x7fffffffbf00)
    at /home/boud/dev/krita/libs/ui/KisApplication.cpp:608
#39 0x00007fffed09a8f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#40 0x00007fffed63374f in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) ()
   from /usr/lib64/libQt5Gui.so.5
#41 0x00007fffed635855 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
---Type <return> to continue, or q <return> to quit---
#42 0x00007fffed6147eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#43 0x00007fffe20b008b in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#44 0x00007fffed09908b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#45 0x00007fffee1ac61d in QMenu::exec(QPoint const&, QAction*) () from /usr/lib64/libQt5Widgets.so.5
#46 0x00007fffbf51222d in KisLayerBox::slotContextMenuRequested (this=0xbbae070, pos=..., index=...) at /home/boud/dev/krita/plugins/dockers/defaultdockers/kis_layer_box.cpp:685
#47 0x00007fffbf51280d in KisLayerBox::qt_static_metacall (_o=0xbbae070, _c=<optimized out>, _id=<optimized out>, _a=<optimized out>) at /home/boud/dev/b-krita/plugins/dockers/defaultdockers/moc_kis_layer_box.cpp:228
#48 0x00007fffed0c45ef in QMetaObject::activate(QObject*, int, int, void**) () from /usr/lib64/libQt5Core.so.5

#49 0x00007ffff7554e87 in KisNodeView::contextMenuRequested (this=this@entry=0xbbf8c90, _t1=..., _t2=...) at /home/boud/dev/b-krita/libs/ui/moc_KisNodeView.cpp:221
#50 0x00007ffff74947bd in KisNodeView::showContextMenu (index=..., globalPos=..., this=<optimized out>) at /home/boud/dev/krita/libs/ui/KisNodeView.cpp:312
#51 KisNodeView::contextMenuEvent (this=0xbbf8c90, e=0x7fffffffcc00) at /home/boud/dev/krita/libs/ui/KisNodeView.cpp:307
#52 0x00007fffee080ffe in QWidget::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#53 0x00007fffee12439e in QFrame::event(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#54 0x00007fffee28312b in QAbstractItemView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#55 0x00007fffee2eae20 in QTreeView::viewportEvent(QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#56 0x00007ffff7493bdb in KisNodeView::viewportEvent (this=0xbbf8c90, e=0x7fffffffcc00) at /home/boud/dev/krita/libs/ui/KisNodeView.cpp:298
#57 0x00007fffed09a76e in QCoreApplicationPrivate::sendThroughObjectEventFilters(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#58 0x00007fffee045185 in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#59 0x00007fffee04d254 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#60 0x00007ffff7479857 in KisApplication::notify (this=<optimized out>, receiver=0xbbf9370, event=0x7fffffffcc00) at /home/boud/dev/krita/libs/ui/KisApplication.cpp:608
#61 0x00007fffed09a8f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#62 0x00007fffee0995f6 in ?? () from /usr/lib64/libQt5Widgets.so.5
#63 0x00007fffee09b993 in ?? () from /usr/lib64/libQt5Widgets.so.5
#64 0x00007fffee0451ac in QApplicationPrivate::notify_helper(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#65 0x00007fffee04bb52 in QApplication::notify(QObject*, QEvent*) () from /usr/lib64/libQt5Widgets.so.5
#66 0x00007ffff7479857 in KisApplication::notify (this=<optimized out>, receiver=0x8a75250, event=0x7fffffffd0a0) at /home/boud/dev/krita/libs/ui/KisApplication.cpp:608
#67 0x00007fffed09a8f5 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () from /usr/lib64/libQt5Core.so.5
#68 0x00007fffed63374f in QGuiApplicationPrivate::processMouseEvent(QWindowSystemInterfacePrivate::MouseEvent*) () from /usr/lib64/libQt5Gui.so.5
#69 0x00007fffed635855 in QGuiApplicationPrivate::processWindowSystemEvent(QWindowSystemInterfacePrivate::WindowSystemEvent*) () from /usr/lib64/libQt5Gui.so.5
#70 0x00007fffed6147eb in QWindowSystemInterface::sendWindowSystemEvents(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Gui.so.5
#71 0x00007fffe20b008b in ?? () from /usr/lib64/libQt5XcbQpa.so.5
#72 0x00007fffed09908b in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () from /usr/lib64/libQt5Core.so.5
#73 0x00007fffed0a1770 in QCoreApplication::exec() () from /usr/lib64/libQt5Core.so.5
#74 0x000000000040640f in main (argc=<optimized out>, argv=0x7fffffffd5c8) at /home/boud/dev/krita/krita/main.cc:456
Comment 3 Dmitry Kazakov 2019-05-01 09:39:28 UTC
The bug has been fixed in commit 38175ae5b1efddcecf6f0699544884e5278a7c3f

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