Bug 393753

Summary: Krita Crash when trying to merge a Layer with a Colorize Mask
Product: [Applications] krita Reporter: sebastian labi <sebastianlabi>
Component: UsabilityAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: antti.savo, ghevan
Priority: NOR    
Version: 4.0.1   
Target Milestone: ---   
Platform: unspecified   
OS: All   
Latest Commit: Version Fixed In:
Attachments: crash step by step

Description sebastian labi 2018-05-02 03:54:21 UTC
Cuando quiero unificar la capa con la mascara de color se crashea el krita.
Comment 1 sebastian labi 2018-05-02 03:55:52 UTC
When i selec the layer and the color mask and paste them (ctrl+e) krita crash
Comment 2 vanyossi 2018-05-02 06:43:24 UTC
I'm not sure I get the same bug. It's always best to explain all the steps you did to generate the bug. This way it is easier for us to replicate it. As far as I understood, you get the problems when trying to merge two layers, one with a Colorize Mask. I've got a crash after some attempts.

I created some layers, one with a Colorize Mask
Unset the "update mask button" on the Colorize mask
Select Layer to merge, mask and another adyacent layer.
Ctrl + E, crashes

Backtrace

 thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x0000000101112900 libkritaimage.16.dylib`KisColorizeMask::slotUpdateOnDirtyParent() + 32
    frame #1: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #2: 0x0000000101d79c72 libkritaglobal.16.dylib`KisSignalCompressor::start() + 66
    frame #3: 0x00000001032994a1 QtCore`QObject::event(QEvent*) + 769
    frame #4: 0x00000001020b13bd QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 269
    frame #5: 0x00000001020b275a QtWidgets`QApplication::notify(QObject*, QEvent*) + 362
    frame #6: 0x0000000100ab3a0a libkritaui.16.dylib`KisApplication::notify(QObject*, QEvent*) + 26
    frame #7: 0x0000000103270298 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 168
    frame #8: 0x0000000103271428 QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 840
    frame #9: 0x000000010622a747 libqcocoa.dylib`___lldb_unnamed_symbol559$$libqcocoa.dylib + 183
    frame #10: 0x000000010622b011 libqcocoa.dylib`___lldb_unnamed_symbol571$$libqcocoa.dylib + 33
    frame #11: 0x00007fff522b1a61 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
    frame #12: 0x00007fff5236b47c CoreFoundation`__CFRunLoopDoSource0 + 108
    frame #13: 0x00007fff522944c0 CoreFoundation`__CFRunLoopDoSources0 + 208
    frame #14: 0x00007fff5229393d CoreFoundation`__CFRunLoopRun + 1293
    frame #15: 0x00007fff522931a3 CoreFoundation`CFRunLoopRunSpecific + 483
    frame #16: 0x00007fff5157bd96 HIToolbox`RunCurrentEventLoopInMode + 286
    frame #17: 0x00007fff5157ba0f HIToolbox`ReceiveNextEventCommon + 366
    frame #18: 0x00007fff5157b884 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 64
    frame #19: 0x00007fff4f82ea73 AppKit`_DPSNextEvent + 2085
    frame #20: 0x00007fff4ffc4e34 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
    frame #21: 0x00007fff4f823885 AppKit`-[NSApplication run] + 764
    frame #22: 0x0000000106229dfd libqcocoa.dylib`___lldb_unnamed_symbol552$$libqcocoa.dylib + 2381
    frame #23: 0x000000010326be4e QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 398
    frame #24: 0x0000000103270991 QtCore`QCoreApplication::exec() + 369
    frame #25: 0x000000010000f95a krita`main + 6618
    frame #26: 0x00007fff7a5ad015 libdyld.dylib`start + 1
  thread #2
    frame #0: 0x00007fff7a6fe292 libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7a8c520e libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff7a8c4be9 libsystem_pthread.dylib`start_wqthread + 13
  thread #3
    frame #0: 0x00007fff7a6fe292 libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7a8c520e libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff7a8c4be9 libsystem_pthread.dylib`start_wqthread + 13
  thread #7
    frame #0: 0x00007fff7a8c4bdc libsystem_pthread.dylib`start_wqthread
  thread #8, name = 'com.apple.CFSocket.private'
    frame #0: 0x00007fff7a6fdcfa libsystem_kernel.dylib`__select + 10
    frame #1: 0x00007fff522ce8db CoreFoundation`__CFSocketManager + 635
    frame #2: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #3: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #4: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #9, name = 'com.apple.NSEventThread'
    frame #0: 0x00007fff7a6f420a libsystem_kernel.dylib`mach_msg_trap + 10
    frame #1: 0x00007fff7a6f3724 libsystem_kernel.dylib`mach_msg + 60
    frame #2: 0x00007fff522947d5 CoreFoundation`__CFRunLoopServiceMachPort + 341
    frame #3: 0x00007fff52293b27 CoreFoundation`__CFRunLoopRun + 1783
    frame #4: 0x00007fff522931a3 CoreFoundation`CFRunLoopRunSpecific + 483
    frame #5: 0x00007fff4f96bfc4 AppKit`_NSEventThread + 184
    frame #6: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #7: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #8: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #11, name = 'KisTileDataSwapper'
    frame #0: 0x00007fff7a6fda1e libsystem_kernel.dylib`__psynch_cvwait + 10
    frame #1: 0x00007fff7a8c6589 libsystem_pthread.dylib`_pthread_cond_wait + 732
    frame #2: 0x00000001030b0a1b QtCore`___lldb_unnamed_symbol319$$QtCore + 75
    frame #3: 0x00000001030b09ac QtCore`QWaitCondition::wait(QMutex*, unsigned long) + 156
    frame #4: 0x00000001030aa78f QtCore`QSemaphore::tryAcquire(int, int) + 143
    frame #5: 0x000000010107f165 libkritaimage.16.dylib`KisTileDataSwapper::run() + 53
    frame #6: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #7: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #8: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #9: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #12, name = 'QQmlThread'
    frame #0: 0x00007fff7a6ff0a2 libsystem_kernel.dylib`poll + 10
    frame #1: 0x00000001032c3860 QtCore`qt_safe_poll(pollfd*, unsigned int, timespec const*) + 528
    frame #2: 0x00000001032c4eb9 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 857
    frame #3: 0x000000010326be4e QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 398
    frame #4: 0x00000001030ab352 QtCore`QThread::exec() + 114
    frame #5: 0x00000001258d0509 QtQml`___lldb_unnamed_symbol5288$$QtQml + 57
    frame #6: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #7: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #8: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #9: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #13, name = 'QQuickPixmapReader'
    frame #0: 0x00007fff7a6ff0a2 libsystem_kernel.dylib`poll + 10
    frame #1: 0x00000001032c3860 QtCore`qt_safe_poll(pollfd*, unsigned int, timespec const*) + 528
    frame #2: 0x00000001032c4eb9 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 857
    frame #3: 0x000000010326be4e QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 398
    frame #4: 0x00000001030ab352 QtCore`QThread::exec() + 114
    frame #5: 0x00000001252e85ad QtQuick`___lldb_unnamed_symbol1120$$QtQuick + 285
    frame #6: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #7: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #8: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #9: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #15, name = 'Thread (pooled)'
    frame #0: 0x000000010fef6321 kritalcmsengine.so`___lldb_unnamed_symbol8537$$kritalcmsengine.so + 1
    frame #1: 0x0000000110084c2d kritalcmsengine.so`___lldb_unnamed_symbol12729$$kritalcmsengine.so + 173
    frame #2: 0x000000010191bfe6 libkritapigment.16.dylib`KoColorSpace::convertPixelsTo(unsigned char const*, unsigned char*, KoColorSpace const*, unsigned int, KoColorConversionTransformation::Intent, QFlags<KoColorConversionTransformation::ConversionFlag>) const + 150
    frame #3: 0x000000010fef576a kritalcmsengine.so`___lldb_unnamed_symbol8533$$kritalcmsengine.so + 90
    frame #4: 0x000000010076ab22 libkritaui.16.dylib`___lldb_unnamed_symbol192$$libkritaui.16.dylib + 322
    frame #5: 0x00000001009370e5 libkritaui.16.dylib`KisOpenGLImageTextures::updateCacheImpl(QRect const&, KisSharedPtr<KisImage>, bool) + 2565
    frame #6: 0x00000001009341db libkritaui.16.dylib`KisOpenGLImageTextures::updateCache(QRect const&, KisSharedPtr<KisImage>) + 43
    frame #7: 0x0000000100931bdc libkritaui.16.dylib`KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 236
    frame #8: 0x0000000100931cd5 libkritaui.16.dylib`non-virtual thunk to KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 21
    frame #9: 0x000000010075368d libkritaui.16.dylib`KisCanvas2::startUpdateCanvasProjection(QRect const&) + 45
    frame #10: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #11: 0x00000001012d8064 libkritaimage.16.dylib`KisImage::sigImageUpdated(QRect const&) + 52
    frame #12: 0x00000001011a3e0d libkritaimage.16.dylib`KisImage::notifyProjectionUpdated(QRect const&) + 173
    frame #13: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #14: 0x00000001012dbb90 libkritaimage.16.dylib`___lldb_unnamed_symbol3535$$libkritaimage.16.dylib + 96
    frame #15: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #16: 0x00000001012dccfd libkritaimage.16.dylib`___lldb_unnamed_symbol3578$$libkritaimage.16.dylib + 205
    frame #17: 0x00000001030ac13e QtCore`___lldb_unnamed_symbol288$$QtCore + 222
    frame #18: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #19: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #20: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #21: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #16, name = 'Thread (pooled)'
    frame #0: 0x000000010fefe79f kritalcmsengine.so`___lldb_unnamed_symbol8577$$kritalcmsengine.so + 255
    frame #1: 0x0000000101932d12 libkritapigment.16.dylib`KoCompositeOp::composite(KoCompositeOp::ParameterInfo const&) const + 162
    frame #2: 0x0000000101086389 libkritaimage.16.dylib`___lldb_unnamed_symbol207$$libkritaimage.16.dylib + 1097
    frame #3: 0x0000000101083ad0 libkritaimage.16.dylib`KisPainter::bitBlt(QPoint const&, KisSharedPtr<KisPaintDevice>, QRect const&) + 96
    frame #4: 0x00000001011bf7b3 libkritaimage.16.dylib`___lldb_unnamed_symbol1919$$libkritaimage.16.dylib + 1731
    frame #5: 0x0000000101168268 libkritaimage.16.dylib`___lldb_unnamed_symbol1410$$libkritaimage.16.dylib + 136
    frame #6: 0x0000000101167405 libkritaimage.16.dylib`KisAsyncMerger::startMerge(KisBaseRectsWalker&, bool) + 1445
    frame #7: 0x00000001012dccd0 libkritaimage.16.dylib`___lldb_unnamed_symbol3578$$libkritaimage.16.dylib + 160
    frame #8: 0x00000001030ac13e QtCore`___lldb_unnamed_symbol288$$QtCore + 222
    frame #9: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #10: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #11: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #12: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #17, name = 'Thread (pooled)'
    frame #0: 0x00000001102b7610 liblcms2.dylib`___lldb_unnamed_symbol128$$liblcms2.dylib
    frame #1: 0x00000001102be799 liblcms2.dylib`___lldb_unnamed_symbol204$$liblcms2.dylib + 201
    frame #2: 0x00000001102bce99 liblcms2.dylib`cmsDoTransform + 41
    frame #3: 0x0000000110084bd5 kritalcmsengine.so`___lldb_unnamed_symbol12729$$kritalcmsengine.so + 85
    frame #4: 0x000000010191bfe6 libkritapigment.16.dylib`KoColorSpace::convertPixelsTo(unsigned char const*, unsigned char*, KoColorSpace const*, unsigned int, KoColorConversionTransformation::Intent, QFlags<KoColorConversionTransformation::ConversionFlag>) const + 150
    frame #5: 0x000000010fef576a kritalcmsengine.so`___lldb_unnamed_symbol8533$$kritalcmsengine.so + 90
    frame #6: 0x000000010076ab22 libkritaui.16.dylib`___lldb_unnamed_symbol192$$libkritaui.16.dylib + 322
    frame #7: 0x00000001009370e5 libkritaui.16.dylib`KisOpenGLImageTextures::updateCacheImpl(QRect const&, KisSharedPtr<KisImage>, bool) + 2565
    frame #8: 0x00000001009341db libkritaui.16.dylib`KisOpenGLImageTextures::updateCache(QRect const&, KisSharedPtr<KisImage>) + 43
    frame #9: 0x0000000100931bdc libkritaui.16.dylib`KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 236
    frame #10: 0x0000000100931cd5 libkritaui.16.dylib`non-virtual thunk to KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 21
    frame #11: 0x000000010075368d libkritaui.16.dylib`KisCanvas2::startUpdateCanvasProjection(QRect const&) + 45
    frame #12: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #13: 0x00000001012d8064 libkritaimage.16.dylib`KisImage::sigImageUpdated(QRect const&) + 52
    frame #14: 0x00000001011a3e0d libkritaimage.16.dylib`KisImage::notifyProjectionUpdated(QRect const&) + 173
    frame #15: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #16: 0x00000001012dbb90 libkritaimage.16.dylib`___lldb_unnamed_symbol3535$$libkritaimage.16.dylib + 96
    frame #17: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #18: 0x00000001012dccfd libkritaimage.16.dylib`___lldb_unnamed_symbol3578$$libkritaimage.16.dylib + 205
    frame #19: 0x00000001030ac13e QtCore`___lldb_unnamed_symbol288$$QtCore + 222
    frame #20: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #21: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #22: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #23: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #18, name = 'Thread (pooled)'
    frame #0: 0x000000010fef633d kritalcmsengine.so`___lldb_unnamed_symbol8537$$kritalcmsengine.so + 29
    frame #1: 0x0000000110084c2d kritalcmsengine.so`___lldb_unnamed_symbol12729$$kritalcmsengine.so + 173
    frame #2: 0x000000010191bfe6 libkritapigment.16.dylib`KoColorSpace::convertPixelsTo(unsigned char const*, unsigned char*, KoColorSpace const*, unsigned int, KoColorConversionTransformation::Intent, QFlags<KoColorConversionTransformation::ConversionFlag>) const + 150
    frame #3: 0x000000010fef576a kritalcmsengine.so`___lldb_unnamed_symbol8533$$kritalcmsengine.so + 90
    frame #4: 0x000000010076ab22 libkritaui.16.dylib`___lldb_unnamed_symbol192$$libkritaui.16.dylib + 322
    frame #5: 0x00000001009370e5 libkritaui.16.dylib`KisOpenGLImageTextures::updateCacheImpl(QRect const&, KisSharedPtr<KisImage>, bool) + 2565
    frame #6: 0x00000001009341db libkritaui.16.dylib`KisOpenGLImageTextures::updateCache(QRect const&, KisSharedPtr<KisImage>) + 43
    frame #7: 0x0000000100931bdc libkritaui.16.dylib`KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 236
    frame #8: 0x0000000100931cd5 libkritaui.16.dylib`non-virtual thunk to KisOpenGLCanvas2::startUpdateCanvasProjection(QRect const&, QBitArray const&) + 21
    frame #9: 0x000000010075368d libkritaui.16.dylib`KisCanvas2::startUpdateCanvasProjection(QRect const&) + 45
    frame #10: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #11: 0x00000001012d8064 libkritaimage.16.dylib`KisImage::sigImageUpdated(QRect const&) + 52
    frame #12: 0x00000001011a3e0d libkritaimage.16.dylib`KisImage::notifyProjectionUpdated(QRect const&) + 173
    frame #13: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #14: 0x00000001012dbb90 libkritaimage.16.dylib`___lldb_unnamed_symbol3535$$libkritaimage.16.dylib + 96
    frame #15: 0x00000001032a0ddb QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2923
    frame #16: 0x00000001012dccfd libkritaimage.16.dylib`___lldb_unnamed_symbol3578$$libkritaimage.16.dylib + 205
    frame #17: 0x00000001030ac13e QtCore`___lldb_unnamed_symbol288$$QtCore + 222
    frame #18: 0x00000001030af46c QtCore`___lldb_unnamed_symbol310$$QtCore + 364
    frame #19: 0x00007fff7a8c5661 libsystem_pthread.dylib`_pthread_body + 340
    frame #20: 0x00007fff7a8c550d libsystem_pthread.dylib`_pthread_start + 377
    frame #21: 0x00007fff7a8c4bf9 libsystem_pthread.dylib`thread_start + 13
  thread #19
    frame #0: 0x00007fff7a6fe292 libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff7a8c520e libsystem_pthread.dylib`_pthread_wqthread + 1552
    frame #2: 0x00007fff7a8c4be9 libsystem_pthread.dylib`start_wqthread + 13

I tought it was related to bug https://bugs.kde.org/show_bug.cgi?id=381972 but backtraces seems different.
Comment 3 sebastian labi 2018-05-02 13:08:28 UTC
Created attachment 112374 [details]
crash step by step

i hope i can explain with this image
Comment 4 Antti Savolainen 2018-05-03 16:46:03 UTC
Found a simple way to reproduce this on Linux https://webmshare.com/RRzbA

Steps:
    Make a colorize mask
    Select the layer
    Alternate between Ctrl+E and Ctrl+Z until krita crashes

Build Date & Platform:

    krita 4.1.0-pre-alpha (Built on 3.5.2018)
    Xubuntu 17.10
    Krita Lime https://launchpad.net/~kritalime/+archive/ubuntu/ppa

Backtrace:
    (gdb) bt
#0  0x00007ffff2144f2d in KisColorizeMask::slotUpdateOnDirtyParent() (this=0x555565995ff0) at ./libs/image/lazybrush/kis_colorize_mask.cpp:380
#1  0x00007ffff239a42f in KisColorizeMask::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x555565995ff0, _c=QMetaObject::InvokeMetaMethod, _id=6, _a=0x7fffffffd570)
    at ./obj-x86_64-linux-gnu/libs/image/kritaimage_autogen/BZS45I2QK2/moc_kis_colorize_mask.cpp:108
#2  0x00007ffff50f28e5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#3  0x00007ffff67c23e3 in KisSignalCompressor::timeout() (this=0x55556068ad08) at ./obj-x86_64-linux-gnu/libs/global/kritaglobal_autogen/EWIEGA46WW/moc_kis_signal_compressor.cpp:144
#4  0x00007ffff67a79c0 in KisSignalCompressor::slotTimerExpired() (this=0x55556068ad08) at ./libs/global/kis_signal_compressor.cpp:115
#5  0x00007ffff67c2231 in KisSignalCompressor::qt_static_metacall(QObject*, QMetaObject::Call, int, void**) (_o=0x55556068ad08, _c=QMetaObject::InvokeMetaMethod, _id=3, _a=0x7fffffffd700)
    at ./obj-x86_64-linux-gnu/libs/global/kritaglobal_autogen/EWIEGA46WW/moc_kis_signal_compressor.cpp:88
#6  0x00007ffff50f28e5 in QMetaObject::activate(QObject*, int, int, void**) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#7  0x00007ffff67c21a9 in KisRelaxedTimer::timeout() (this=0x555560917f40) at ./obj-x86_64-linux-gnu/libs/global/kritaglobal_autogen/EWIEGA46WW/moc_kis_relaxed_timer.cpp:127
#8  0x00007ffff67a744e in KisRelaxedTimer::timerEvent(QTimerEvent*) (this=0x555560917f40, event=0x7fffffffdb00) at ./libs/global/kis_relaxed_timer.cpp:100
#9  0x00007ffff50f340b in QObject::event(QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#10 0x00007ffff5e3e46c in QApplicationPrivate::notify_helper(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#11 0x00007ffff5e45d34 in QApplication::notify(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#12 0x00007ffff76aa4f5 in KisApplication::notify(QObject*, QEvent*) (this=0x7fffffffde50, receiver=0x555560917f40, event=0x7fffffffdb00) at ./libs/ui/KisApplication.cpp:652
#13 0x00007ffff50c3de8 in QCoreApplication::notifyInternal2(QObject*, QEvent*) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#14 0x00007ffff511b91e in QTimerInfoList::activateTimers() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#15 0x00007ffff511c0e1 in  () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#16 0x00007fffec78ffb7 in g_main_context_dispatch () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#17 0x00007fffec7901f0 in  () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#18 0x00007fffec79027c in g_main_context_iteration () at /lib/x86_64-linux-gnu/libglib-2.0.so.0
#19 0x00007ffff511c47f in QEventDispatcherGlib::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#20 0x00007ffff50c1e3a in QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#21 0x00007ffff50cada4 in QCoreApplication::exec() () at /usr/lib/x86_64-linux-gnu/libQt5Core.so.5
#22 0x0000555555849493 in main(int, char**) (argc=1, argv=0x7fffffffdfd8) at ./krita/main.cc:361
Comment 5 Halla Rempt 2018-05-07 13:43:05 UTC
Git commit 8b5236f14bb6abd214409aa0c7fe1e39ee6aa2d5 by Boudewijn Rempt.
Committed on 07/05/2018 at 13:42.
Pushed by rempt into branch 'master'.

Fix possible crash in KisColorizeMask

parent() can return an empty paint device, so add a safe
assert for checking the return value before using it.

M  +1    -0    libs/image/lazybrush/kis_colorize_mask.cpp

https://commits.kde.org/krita/8b5236f14bb6abd214409aa0c7fe1e39ee6aa2d5
Comment 6 Halla Rempt 2018-05-12 08:33:51 UTC
Git commit 00c3a1a5a2bb618c1a8b2168eed0879957747c6b by Boudewijn Rempt.
Committed on 12/05/2018 at 08:26.
Pushed by rempt into tag 'v3.0.4'.

Fix possible crash in KisColorizeMask

parent() can return an empty paint device, so add a safe
assert for checking the return value before using it.
(cherry picked from commit 8b5236f14bb6abd214409aa0c7fe1e39ee6aa2d5)

M  +1    -0    libs/image/lazybrush/kis_colorize_mask.cpp

https://commits.kde.org/krita/00c3a1a5a2bb618c1a8b2168eed0879957747c6b