Bug 458935 - GMIC crash on macos arm, stacktrace gmic::_run<float>
Summary: GMIC crash on macos arm, stacktrace gmic::_run<float>
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: G'Mic for Krita (show other bugs)
Version: git master (please specify the git hash!)
Platform: Compiled Sources macOS
: NOR crash
Target Milestone: ---
Assignee: amyspark
URL: https://github.com/amyspark/gmic/rele...
Keywords:
: 458310 469241 471845 (view as bug list)
Depends on:
Blocks:
 
Reported: 2022-09-09 20:06 UTC by vanyossi
Modified: 2023-07-02 04:41 UTC (History)
6 users (show)

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


Attachments
crash with debug info (36.11 KB, text/plain)
2023-05-02 01:37 UTC, vanyossi
Details
3 backtraces (129.09 KB, text/plain)
2023-05-03 06:28 UTC, vanyossi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description vanyossi 2022-09-09 20:06:17 UTC
on macOS arm64, gmic crashes on many filters. Stacktrace is run with gmic in debug mode.

* thread #29, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000002aa02e674 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 50916
krita_gmic_qt.so`gmic::_run<float>:
->  0x2aa02e674 <+50916>: ldr    x9, [x22]
    0x2aa02e678 <+50920>: mov    w8, #0x1
    0x2aa02e67c <+50924>: ldr    x10, [sp, #0x40f0]
    0x2aa02e680 <+50928>: cmp    x9, x10
Target 0: (krita) stopped.
(lldb) bt all
  thread #1, queue = 'com.apple.main-thread'
    frame #0: 0x00000001975ee8b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x00000001975eed20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x00000001976f92c0 CoreFoundation`__CFRunLoopServiceMachPort + 372
    frame #3: 0x00000001976f7770 CoreFoundation`__CFRunLoopRun + 1180
    frame #4: 0x00000001976f6b34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #5: 0x00000001a0336338 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #6: 0x00000001a03360b4 HIToolbox`ReceiveNextEventCommon + 564
    frame #7: 0x00000001a0335e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
    frame #8: 0x000000019a25e51c AppKit`_DPSNextEvent + 860
    frame #9: 0x000000019a25ce14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
    frame #10: 0x000000011007701c libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1772
    frame #11: 0x000000010a158ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #12: 0x00000002aa937088 krita_gmic_qt.so`KritaGmicPlugin::launch(std::__1::shared_ptr<KisImageInterface>, bool) + 5056
    frame #13: 0x000000014df7e91c kritaqmic.so`QMic::slotQMic(this=0x000000014bd4ed10, again=false) at QMic.cpp:85:30
    frame #14: 0x000000014df7d9b8 kritaqmic.so`QMic::qt_static_metacall(_o=0x000000014bd4ed10, _c=InvokeMetaMethod, _id=2, _a=0x000000016fdfc868) at moc_QMic.cpp:79:21
    frame #15: 0x000000010a18d5c4 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2392
    frame #16: 0x0000000106484718 QtWidgets`QAction::activate(QAction::ActionEvent) + 304
    frame #17: 0x000000010a1861b0 QtCore`QObject::event(QEvent*) + 440
    frame #18: 0x000000010648dc9c QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292
    frame #19: 0x000000010648f010 QtWidgets`QApplication::notify(QObject*, QEvent*) + 548
    frame #20: 0x000000010396f4e0 libkritaui.19.0.0.dylib`KisApplication::notify(this=0x000000016fdfeda0, receiver=0x000000014afef500, event=0x00000002af56d920) at KisApplication.cpp:757:40
    frame #21: 0x000000010a15d444 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 288
    frame #22: 0x000000010a15e900 QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1476
    frame #23: 0x0000000110077b6c libqcocoa.dylib`___lldb_unnamed_symbol685$$libqcocoa.dylib + 312
    frame #24: 0x000000011007821c libqcocoa.dylib`___lldb_unnamed_symbol697$$libqcocoa.dylib + 48
    frame #25: 0x00000001976f9044 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
    frame #26: 0x00000001976f8f90 CoreFoundation`__CFRunLoopDoSource0 + 208
    frame #27: 0x00000001976f8c90 CoreFoundation`__CFRunLoopDoSources0 + 268
    frame #28: 0x00000001976f7610 CoreFoundation`__CFRunLoopRun + 828
    frame #29: 0x00000001976f6b34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #30: 0x00000001a0336338 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #31: 0x00000001a0335fc4 HIToolbox`ReceiveNextEventCommon + 324
    frame #32: 0x00000001a0335e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
    frame #33: 0x000000019a25e51c AppKit`_DPSNextEvent + 860
    frame #34: 0x000000019a25ce14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
    frame #35: 0x000000019a24efe0 AppKit`-[NSApplication run] + 596
    frame #36: 0x0000000110077094 libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1892
    frame #37: 0x000000010a158ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #38: 0x000000010a15db04 QtCore`QCoreApplication::exec() + 128
    frame #39: 0x00000001000132f0 krita`main(argc=1, argv=0x000000016fdff4a0) at main.cc:721:17
    frame #40: 0x00000001006c508c dyld`start + 520
  thread #2
    frame #0: 0x00000001975f072c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #3
    frame #0: 0x00000001975f072c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #5
    frame #0: 0x00000001975f072c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #6, name = 'OGL Profiler'
    frame #0: 0x00000001975ee8b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x00000001975eed20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x00000001f8da588c OpenGL`glcDebugListener + 408
    frame #3: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #7, name = 'com.apple.CFSocket.private'
    frame #0: 0x00000001975f9598 libsystem_kernel.dylib`__select + 8
    frame #1: 0x00000001977238a0 CoreFoundation`__CFSocketManager + 644
    frame #2: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #8, name = 'com.apple.NSEventThread'
    frame #0: 0x00000001975ee8b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x00000001975eed20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x00000001976f92c0 CoreFoundation`__CFRunLoopServiceMachPort + 372
    frame #3: 0x00000001976f7770 CoreFoundation`__CFRunLoopRun + 1180
    frame #4: 0x00000001976f6b34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #5: 0x000000019a3cb100 AppKit`_NSEventThread + 196
    frame #6: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #9, name = 'Qt bearer thread'
    frame #0: 0x00000001975f6eb0 libsystem_kernel.dylib`poll + 8
    frame #1: 0x0000000100bb32a8 libclang_rt.asan_osx_dynamic.dylib`wrap_poll + 856
    frame #2: 0x000000010a1b214c QtCore`qt_safe_poll(pollfd*, unsigned int, timespec const*) + 468
    frame #3: 0x000000010a1b3948 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 896
    frame #4: 0x000000010a158ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #5: 0x0000000109fac3cc QtCore`QThread::exec() + 136
    frame #6: 0x0000000109fad314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #7: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #10, name = 'KisTileDataSwapper'
    frame #0: 0x00000001975f2270 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x000000019762c83c libsystem_pthread.dylib`_pthread_cond_wait + 1236
    frame #2: 0x0000000109fb5db4 QtCore`___lldb_unnamed_symbol325$$QtCore + 48
    frame #3: 0x0000000109fb5d4c QtCore`QWaitCondition::wait(QMutex*, QDeadlineTimer) + 116
    frame #4: 0x0000000109fb1f60 QtCore`QSemaphore::tryAcquire(int, int) + 124
    frame #5: 0x0000000106cef3e4 libkritaimage.19.0.0.dylib`KisTileDataSwapper::waitForWork(this=0x0000000117493600) at kis_tile_data_swapper.cpp:74:20
    frame #6: 0x0000000106cef414 libkritaimage.19.0.0.dylib`KisTileDataSwapper::run(this=0x0000000117493600) at kis_tile_data_swapper.cpp:80:9
    frame #7: 0x0000000109fad314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #8: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #14
    frame #0: 0x00000001975f072c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #15
    frame #0: 0x00000001975f072c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #26
    frame #0: 0x0000000000000000
  thread #27, name = 'GmicQt::FilterThread'
    frame #0: 0x00000001975f0834 libsystem_kernel.dylib`__ulock_wait + 8
    frame #1: 0x000000019762e5a0 libsystem_pthread.dylib`_pthread_join + 444
    frame #2: 0x00000002aa1d706c krita_gmic_qt.so`void gmic::wait_threads<float>(void*, bool, float const&) + 560
    frame #3: 0x00000002aa094fac krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 471068
    frame #4: 0x00000002aa06c6e0 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 304976
    frame #5: 0x00000002aa0c9b6c krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 687068
    frame #6: 0x00000002aa06c6e0 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 304976
    frame #7: 0x00000002aa05b334 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 234404
    frame #8: 0x00000002aa0c9b6c krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 687068
    frame #9: 0x00000002aa0c9b6c krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 687068
    frame #10: 0x00000002a9ff1da0 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, float*, bool*) + 2400
    frame #11: 0x00000002a9ff0684 krita_gmic_qt.so`gmic& gmic::run<float>(char const*, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, float*, bool*) + 484
    frame #12: 0x00000002a9e57a48 krita_gmic_qt.so`GmicQt::FilterThread::run() + 1924
    frame #13: 0x0000000109fad314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #14: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #28
    frame #0: 0x0000000100be9eec libclang_rt.asan_osx_dynamic.dylib`__sanitizer::StackDepotBase<__sanitizer::StackDepotNode, 1, 20>::Put(__sanitizer::StackTrace, bool*) + 208
    frame #1: 0x0000000100be9e0c libclang_rt.asan_osx_dynamic.dylib`__sanitizer::StackDepotPut(__sanitizer::StackTrace) + 36
    frame #2: 0x0000000100b8d2dc libclang_rt.asan_osx_dynamic.dylib`__asan::Allocator::Allocate(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType, bool) + 880
    frame #3: 0x0000000100b8dc40 libclang_rt.asan_osx_dynamic.dylib`__asan::asan_memalign(unsigned long, unsigned long, __sanitizer::BufferedStackTrace*, __asan::AllocType) + 80
    frame #4: 0x0000000100bd4d70 libclang_rt.asan_osx_dynamic.dylib`wrap__Znam + 228
    frame #5: 0x00000002a9e4fd0c krita_gmic_qt.so`cimg_library::CImg<unsigned int>::CImg(unsigned int, unsigned int, unsigned int, unsigned int) + 432
    frame #6: 0x00000002a9e4bf1c krita_gmic_qt.so`cimg_library::CImg<unsigned int>::CImg(unsigned int, unsigned int, unsigned int, unsigned int) + 64
    frame #7: 0x00000002aa0c9230 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 684704
    frame #8: 0x00000002aa1d6c6c krita_gmic_qt.so`void* gmic_parallel<float>(void*) + 632
    frame #9: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
* thread #29, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00000002aa02e674 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 50916
    frame #1: 0x00000002aa06c6e0 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 304976
    frame #2: 0x00000002aa1d6c6c krita_gmic_qt.so`void* gmic_parallel<float>(void*) + 632
    frame #3: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
Comment 1 vanyossi 2022-09-09 20:07:38 UTC
Related: stack trace

Process 47586 stopped
* thread #24, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x00000002803716a8 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 751384
krita_gmic_qt.so`gmic::_run<float>:
->  0x2803716a8 <+751384>: ldr    x8, [x22]
    0x2803716ac <+751388>: ldr    x9, [sp, #0x40f0]
    0x2803716b0 <+751392>: cmp    x8, x9
    0x2803716b4 <+751396>: b.ne   0x2803717cc               ; <+751676>

  thread #22, name = 'GmicQt::FilterThread'
    frame #0: 0x00000001975f0834 libsystem_kernel.dylib`__ulock_wait + 8
    frame #1: 0x000000019762e5a0 libsystem_pthread.dylib`_pthread_join + 444
    frame #2: 0x000000028046f06c krita_gmic_qt.so`void gmic::wait_threads<float>(void*, bool, float const&) + 560
    frame #3: 0x000000028032cfac krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 471068
    frame #4: 0x00000002802f3334 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 234404
    frame #5: 0x0000000280361b6c krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 687068
    frame #6: 0x0000000280361b6c krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 687068
    frame #7: 0x0000000280289da0 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, float*, bool*) + 2400
    frame #8: 0x0000000280288684 krita_gmic_qt.so`gmic& gmic::run<float>(char const*, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, float*, bool*) + 484
    frame #9: 0x00000002800efa48 krita_gmic_qt.so`GmicQt::FilterThread::run() + 1924
    frame #10: 0x0000000109fad314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #11: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
  thread #23
    frame #0: 0x0000000280b436f0 krita_gmic_qt.so`cimg_library::CImg<float>::_cimg_recursive_apply(float*, double const*, int, unsigned long, unsigned int, bool) + 3332
    frame #1: 0x00000002804b05fc krita_gmic_qt.so`cimg_library::CImg<float>::vanvliet(float, unsigned int, char, unsigned int) + 4116
    frame #2: 0x00000002804f65bc krita_gmic_qt.so`cimg_library::CImg<float>::blur(float, float, float, unsigned int, bool) + 180
    frame #3: 0x00000002803872d0 krita_gmic_qt.so`cimg_library::CImg<float>::blur(float, unsigned int, bool) + 140
    frame #4: 0x00000002802d2558 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 99784
    frame #5: 0x000000028046ec6c krita_gmic_qt.so`void* gmic_parallel<float>(void*) + 632
    frame #6: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
* thread #24, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x00000002803716a8 krita_gmic_qt.so`gmic& gmic::_run<float>(cimg_library::CImgList<char> const&, unsigned int&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, cimg_library::CImgList<float>&, cimg_library::CImgList<char>&, unsigned int const*, bool*, char const*, cimg_library::CImg<unsigned int> const*) + 751384
    frame #1: 0x000000028046ec6c krita_gmic_qt.so`void* gmic_parallel<float>(void*) + 632
    frame #2: 0x000000019762c26c libsystem_pthread.dylib`_pthread_start + 148
Comment 2 amyspark 2022-09-09 20:52:04 UTC
G'MIC crash logs are pretty much useless, we need them to be fully symbolicated and the underlying script that's being run.
Comment 3 vanyossi 2022-09-11 23:03:29 UTC
*** Bug 458310 has been marked as a duplicate of this bug. ***
Comment 4 vanyossi 2022-09-12 01:45:13 UTC
previous ones was using lldb, I wasn't sure why I was not getting the symbols attached. I "force" patched our version of gmic and got this from
Artistic -> Chalk it up [Fr]

* thread #27, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
    frame #0: 0x000000016a131750 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc328, commands_line=0x000000010a0fc290, position=0x0000000290012fac, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x000000010aa51800, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:5333:33
   5330	  cimg::mutex(24);
   5331	  CImgList<void*> &grl = gmic_runs();
   5332	  const CImg<void*> &grb = grl.back();
-> 5333	  const bool push_run = !grl || grb[0]!=this || grb[1]!=&images;
   5334	  if (push_run) {
   5335	    CImg<void*> gr(7);
   5336	    gr[0] = (void*)this;
Target 0: (krita) stopped.
(lldb) bt all
  thread #1, queue = 'com.apple.main-thread'
    frame #0: 0x0000000187b628b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x0000000187b62d20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x0000000187c6d2c0 CoreFoundation`__CFRunLoopServiceMachPort + 372
    frame #3: 0x0000000187c6b770 CoreFoundation`__CFRunLoopRun + 1180
    frame #4: 0x0000000187c6ab34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #5: 0x00000001908aa338 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #6: 0x00000001908aa0b4 HIToolbox`ReceiveNextEventCommon + 564
    frame #7: 0x00000001908a9e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
    frame #8: 0x000000018a7d251c AppKit`_DPSNextEvent + 860
    frame #9: 0x000000018a7d0e14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
    frame #10: 0x000000010d27701c libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1772
    frame #11: 0x0000000109410ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #12: 0x000000016a62089c krita_gmic_qt.so`KritaGmicPlugin::launch(this=0x00006000005467c0, i=std::__1::shared_ptr<KisImageInterface>::element_type @ 0x00006000010805e8 strong=3 weak=1, headless=false) at gmicqttoolplugin.cpp:218:19
    frame #13: 0x0000000138da691c kritaqmic.so`QMic::slotQMic(this=0x0000600000f13270, again=false) at QMic.cpp:85:30
    frame #14: 0x0000000138da59b8 kritaqmic.so`QMic::qt_static_metacall(_o=0x0000600000f13270, _c=InvokeMetaMethod, _id=2, _a=0x000000016fdfc8b8) at moc_QMic.cpp:79:21
    frame #15: 0x00000001094455c4 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2392
    frame #16: 0x00000001058ec718 QtWidgets`QAction::activate(QAction::ActionEvent) + 304
    frame #17: 0x000000010943e1b0 QtCore`QObject::event(QEvent*) + 440
    frame #18: 0x00000001058f5c9c QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292
    frame #19: 0x00000001058f7010 QtWidgets`QApplication::notify(QObject*, QEvent*) + 548
    frame #20: 0x0000000102c274e0 libkritaui.19.0.0.dylib`KisApplication::notify(this=0x000000016fdfedf0, receiver=0x00006000005c9540, event=0x0000600002737960) at KisApplication.cpp:757:40
    frame #21: 0x0000000109415444 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 288
    frame #22: 0x0000000109416900 QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1476
    frame #23: 0x000000010d277b6c libqcocoa.dylib`___lldb_unnamed_symbol685$$libqcocoa.dylib + 312
    frame #24: 0x000000010d27821c libqcocoa.dylib`___lldb_unnamed_symbol697$$libqcocoa.dylib + 48
    frame #25: 0x0000000187c6d044 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28
    frame #26: 0x0000000187c6cf90 CoreFoundation`__CFRunLoopDoSource0 + 208
    frame #27: 0x0000000187c6cc90 CoreFoundation`__CFRunLoopDoSources0 + 268
    frame #28: 0x0000000187c6b610 CoreFoundation`__CFRunLoopRun + 828
    frame #29: 0x0000000187c6ab34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #30: 0x00000001908aa338 HIToolbox`RunCurrentEventLoopInMode + 292
    frame #31: 0x00000001908a9fc4 HIToolbox`ReceiveNextEventCommon + 324
    frame #32: 0x00000001908a9e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72
    frame #33: 0x000000018a7d251c AppKit`_DPSNextEvent + 860
    frame #34: 0x000000018a7d0e14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328
    frame #35: 0x000000018a7c2fe0 AppKit`-[NSApplication run] + 596
    frame #36: 0x000000010d277094 libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1892
    frame #37: 0x0000000109410ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #38: 0x0000000109415b04 QtCore`QCoreApplication::exec() + 128
    frame #39: 0x00000001000132f0 krita`main(argc=1, argv=0x000000016fdff4f0) at main.cc:721:17
    frame #40: 0x00000001006c908c dyld`start + 520
  thread #6
    frame #0: 0x0000000187b6472c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #7, name = 'OGL Profiler'
    frame #0: 0x0000000187b628b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x0000000187b62d20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x00000001e931988c OpenGL`glcDebugListener + 408
    frame #3: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #8, name = 'com.apple.CFSocket.private'
    frame #0: 0x0000000187b6d598 libsystem_kernel.dylib`__select + 8
    frame #1: 0x0000000187c978a0 CoreFoundation`__CFSocketManager + 644
    frame #2: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #9, name = 'com.apple.NSEventThread'
    frame #0: 0x0000000187b628b0 libsystem_kernel.dylib`mach_msg_trap + 8
    frame #1: 0x0000000187b62d20 libsystem_kernel.dylib`mach_msg + 76
    frame #2: 0x0000000187c6d2c0 CoreFoundation`__CFRunLoopServiceMachPort + 372
    frame #3: 0x0000000187c6b770 CoreFoundation`__CFRunLoopRun + 1180
    frame #4: 0x0000000187c6ab34 CoreFoundation`CFRunLoopRunSpecific + 600
    frame #5: 0x000000018a93f100 AppKit`_NSEventThread + 196
    frame #6: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #10
    frame #0: 0x0000000187b6472c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #11
    frame #0: 0x0000000187b6472c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #12, name = 'Qt bearer thread'
    frame #0: 0x0000000187b6aeb0 libsystem_kernel.dylib`poll + 8
    frame #1: 0x000000010946a14c QtCore`qt_safe_poll(pollfd*, unsigned int, timespec const*) + 468
    frame #2: 0x000000010946b948 QtCore`QEventDispatcherUNIX::processEvents(QFlags<QEventLoop::ProcessEventsFlag>) + 896
    frame #3: 0x0000000109410ca8 QtCore`QEventLoop::exec(QFlags<QEventLoop::ProcessEventsFlag>) + 524
    frame #4: 0x00000001092643cc QtCore`QThread::exec() + 136
    frame #5: 0x0000000109265314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #6: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #13, name = 'KisTileDataSwapper'
    frame #0: 0x0000000187b66270 libsystem_kernel.dylib`__psynch_cvwait + 8
    frame #1: 0x0000000187ba083c libsystem_pthread.dylib`_pthread_cond_wait + 1236
    frame #2: 0x000000010926ddb4 QtCore`___lldb_unnamed_symbol325$$QtCore + 48
    frame #3: 0x000000010926dd4c QtCore`QWaitCondition::wait(QMutex*, QDeadlineTimer) + 116
    frame #4: 0x0000000109269f60 QtCore`QSemaphore::tryAcquire(int, int) + 124
    frame #5: 0x0000000105fa73e4 libkritaimage.19.0.0.dylib`KisTileDataSwapper::waitForWork(this=0x0000600003b46500) at kis_tile_data_swapper.cpp:74:20
    frame #6: 0x0000000105fa7414 libkritaimage.19.0.0.dylib`KisTileDataSwapper::run(this=0x0000600003b46500) at kis_tile_data_swapper.cpp:80:9
    frame #7: 0x0000000109265314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #8: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #16
    frame #0: 0x0000000187b6472c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #18
    frame #0: 0x0000000187b6472c libsystem_kernel.dylib`__workq_kernreturn + 8
  thread #20
    frame #0: 0x0000000000000000
  thread #21, name = 'GmicQt::FilterThread'
    frame #0: 0x0000000187b64834 libsystem_kernel.dylib`__ulock_wait + 8
    frame #1: 0x0000000187ba25a0 libsystem_pthread.dylib`_pthread_join + 444
    frame #2: 0x000000016a28a714 krita_gmic_qt.so`void gmic::wait_threads<float>(this=0x0000000288806d68, p_gmic_threads=0x00000001690c5780, try_abort=false, pixel_type=0x00000002887550fc) at gmic.cpp:2763:7
    frame #3: 0x000000016a1bffd4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x000000028878a2c0, position=0x000000028878a298, images=0x0000000288778e48, images_names=0x0000000288778e58, parent_images=0x00000002887953a8, parent_images_names=0x00000002887953b8, variables_sizes=0x0000000151799c00, is_noarg=0x000000028878a716, parent_arguments=0x0000000000000000, command_selection=0x0000000288794ec0) at gmic.cpp:10812:15
    frame #4: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x000000028878a2c0, position=0x000000028878a298, images=0x00000002887953a8, images_names=0x00000002887953b8, parent_images=0x00000002887b1908, parent_images_names=0x00000002887b1918, variables_sizes=0x0000000151799c00, is_noarg=0x000000028878a716, parent_arguments="_split_preview,016", command_selection=0x0000000288794ec0) at gmic.cpp:8929:13
    frame #5: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x00000002887df2e0, position=0x00000002887df2b8, images=0x00000002887b1908, images_names=0x00000002887b1918, parent_images=0x00000002887cde68, parent_images_names=0x00000002887cde78, variables_sizes=0x000000028983b200, is_noarg=0x00000002887df736, parent_arguments=0x0000000000000000, command_selection=0x00000002887e9ee0) at gmic.cpp:14046:17
    frame #6: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x00000002887df2e0, position=0x00000002887df2b8, images=0x00000002887cde68, images_names=0x00000002887cde78, parent_images=0x00000002887ea3c8, parent_images_names=0x00000002887ea3d8, variables_sizes=0x000000028983b200, is_noarg=0x00000002887df736, parent_arguments=0x0000000000000000, command_selection=0x00000002887e9ee0) at gmic.cpp:8929:13
    frame #7: 0x000000016a170aa8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x00000002887df2e0, position=0x00000002887df2b8, images=0x00000002887ea3c8, images_names=0x00000002887ea3d8, parent_images=0x0000000288806928, parent_images_names=0x0000000288806938, variables_sizes=0x000000028983b200, is_noarg=0x00000002887df736, parent_arguments="samj_chalkitup 5\U0000001a2.5\U0000001a1.5\U0000001a50\U0000001a1\U0000001a5\U0000001a5\U0000001a0\U0000001a0\U0000001a7\U0000001a0.8\U0000001a1.9\U0000001a7,0", command_selection=0x00000002887e9ee0) at gmic.cpp:7935:17
    frame #8: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x00000002887fb840, position=0x00000002887fb818, images=0x0000000288806928, images_names=0x0000000288806938, parent_images=0x00006000000b88d0, parent_images_names=0x00006000000b8340, variables_sizes=0x0000000289839200, is_noarg=0x00000002887fbc96, parent_arguments="5,2.5,1.5,50,1,5,5,0,0,7,0.8,1.9,7,0", command_selection=0x0000000288806440) at gmic.cpp:14046:17
    frame #9: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x0000000288806be0, position=0x0000000288806b48, images=0x00006000000b88d0, images_names=0x00006000000b8340, parent_images=0x00006000000b88d0, parent_images_names=0x00006000000b8340, variables_sizes=0x0000000289813800, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x0000000000000000) at gmic.cpp:14046:17
    frame #10: 0x000000016a11e178 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000288806d68, commands_line=0x0000000288806be0, images=0x00006000000b88d0, images_names=0x00006000000b8340, p_progress=0x0000600002f588d0, p_is_abort=0x0000600002f588c0) at gmic.cpp:5309:10
    frame #11: 0x000000016a11d600 krita_gmic_qt.so`gmic& gmic::run<float>(this=0x0000000288806d68, commands_line="samj_chalkitup_preview 5,2.5,1.5,50,1,5,5,0,0,7,0.8,1.9,7,0", images=0x00006000000b88d0, images_names=0x00006000000b8340, p_progress=0x0000600002f588d0, p_is_abort=0x0000600002f588c0) at gmic.cpp:5272:3
    frame #12: 0x000000016a063f9c krita_gmic_qt.so`GmicQt::FilterThread::run(this=0x0000600002f58880) at FilterThread.cpp:223:18
    frame #13: 0x0000000109265314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328
    frame #14: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #22
    frame #0: 0x0000000187b64834 libsystem_kernel.dylib`__ulock_wait + 8
    frame #1: 0x0000000187ba25a0 libsystem_pthread.dylib`_pthread_join + 444
    frame #2: 0x000000016a28a714 krita_gmic_qt.so`void gmic::wait_threads<float>(this=0x00000002898168b8, p_gmic_threads=0x000000016b8c5300, try_abort=false, pixel_type=0x000000028c672a6c) at gmic.cpp:2763:7
    frame #3: 0x000000016a1bffd4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c68b6d0, position=0x000000028c68b6a8, images=0x000000028c6967b8, images_names=0x000000028c6967c8, parent_images=0x000000028c6b2d18, parent_images_names=0x000000028c6b2d28, variables_sizes=0x000000010f871200, is_noarg=0x000000028c68bb26, parent_arguments="_apply_parallel_overlap4 \U0000001c_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0\U0000001c\U0000001a1.5,1.5", command_selection=0x000000028c6962d0) at gmic.cpp:10812:15
    frame #4: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c6a7c30, position=0x000000028c6a7c08, images=0x000000028c6b2d18, images_names=0x000000028c6b2d28, parent_images=0x000000028c6cf278, parent_images_names=0x000000028c6cf288, variables_sizes=0x000000010f86f200, is_noarg=0x000000028c6a8086, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,1.5", command_selection=0x000000028c6b2830) at gmic.cpp:14046:17
    frame #5: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c6e06f0, position=0x000000028c6e06c8, images=0x000000028c6cf278, images_names=0x000000028c6cf288, parent_images=0x000000028c6eb7d8, parent_images_names=0x000000028c6eb7e8, variables_sizes=0x000000010f86d200, is_noarg=0x000000028c6e0b46, parent_arguments=0x0000000000000000, command_selection=0x000000028c6eb2f0) at gmic.cpp:14046:17
    frame #6: 0x000000016a170aa8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c6e06f0, position=0x000000028c6e06c8, images=0x000000028c6eb7d8, images_names=0x000000028c6eb7e8, parent_images=0x000000028c707d38, parent_images_names=0x000000028c707d48, variables_sizes=0x000000010f86d200, is_noarg=0x000000028c6e0b46, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,1.5,0", command_selection=0x000000028c6eb2f0) at gmic.cpp:7935:17
    frame #7: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c6fcc50, position=0x000000028c6fcc28, images=0x000000028c707d38, images_names=0x000000028c707d48, parent_images=0x000000028c724298, parent_images_names=0x000000028c7242a8, variables_sizes=0x000000010f86b200, is_noarg=0x000000028c6fd0a6, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,1.5,0", command_selection=0x000000028c707850) at gmic.cpp:14046:17
    frame #8: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c7191b0, position=0x000000028c719188, images=0x000000028c724298, images_names=0x000000028c7242a8, parent_images=0x000000028c7407f8, parent_images_names=0x000000028c740808, variables_sizes=0x000000010f869200, is_noarg=0x000000028c719606, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,0,1.5", command_selection=0x000000028c723db0) at gmic.cpp:14046:17
    frame #9: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c751c70, position=0x000000028c751c48, images=0x000000028c7407f8, images_names=0x000000028c740808, parent_images=0x000000028c75cd58, parent_images_names=0x000000028c75cd68, variables_sizes=0x000000010f80cc00, is_noarg=0x000000028c7520c6, parent_arguments=0x0000000000000000, command_selection=0x000000028c75c870) at gmic.cpp:14046:17
    frame #10: 0x000000016a170aa8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c751c70, position=0x000000028c751c48, images=0x000000028c75cd58, images_names=0x000000028c75cd68, parent_images=0x000000028c7792b8, parent_images_names=0x000000028c7792c8, variables_sizes=0x000000010f80cc00, is_noarg=0x000000028c7520c6, parent_arguments="1,0,0,1.5,0,0.5,1.5,0,0.5,0,2,0", command_selection=0x000000028c75c870) at gmic.cpp:7935:17
    frame #11: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c78a730, position=0x000000028c78a708, images=0x000000028c7792b8, images_names=0x000000028c7792c8, parent_images=0x000000028c795818, parent_images_names=0x000000028c795828, variables_sizes=0x0000000289c17c00, is_noarg=0x000000028c78ab86, parent_arguments=0x0000000000000000, command_selection=0x000000028c795330) at gmic.cpp:14046:17
    frame #12: 0x000000016a170aa8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c78a730, position=0x000000028c78a708, images=0x000000028c795818, images_names=0x000000028c795828, parent_images=0x000000028c7b1d78, parent_images_names=0x000000028c7b1d88, variables_sizes=0x0000000289c17c00, is_noarg=0x000000028c78ab86, parent_arguments="5,2.5,1.5,50,1", command_selection=0x000000028c795330) at gmic.cpp:7935:17
    frame #13: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c7c31f0, position=0x000000028c7c31c8, images=0x000000028c7b1d78, images_names=0x000000028c7b1d88, parent_images=0x000000028c7ce2d8, parent_images_names=0x000000028c7ce2e8, variables_sizes=0x0000000289c15600, is_noarg=0x000000028c7c3646, parent_arguments=0x0000000000000000, command_selection=0x000000028c7cddf0) at gmic.cpp:14046:17
    frame #14: 0x000000016a170aa8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c7c31f0, position=0x000000028c7c31c8, images=0x000000028c7ce2d8, images_names=0x000000028c7ce2e8, parent_images=0x000000028c7ea838, parent_images_names=0x000000028c7ea848, variables_sizes=0x0000000289c15600, is_noarg=0x000000028c7c3646, parent_arguments="5,2.5,1.5,50,1,5,5,0,0,7,0.8,1.9,7", command_selection=0x000000028c7cddf0) at gmic.cpp:7935:17
    frame #15: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c7df750, position=0x000000028c7df728, images=0x000000028c7ea838, images_names=0x000000028c7ea848, parent_images=0x000000028c806d98, parent_images_names=0x000000028c806da8, variables_sizes=0x0000000289c13600, is_noarg=0x000000028c7dfba6, parent_arguments="samj_chalkitup 5\U0000001a2.5\U0000001a1.5\U0000001a50\U0000001a1\U0000001a5\U0000001a5\U0000001a0\U0000001a0\U0000001a7\U0000001a0.8\U0000001a1.9\U0000001a7", command_selection=0x000000028c7ea350) at gmic.cpp:14046:17
    frame #16: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x000000028c7fbcb0, position=0x000000028c7fbc88, images=0x000000028c806d98, images_names=0x000000028c806da8, parent_images=0x0000000288778e48, parent_images_names=0x0000000288778e58, variables_sizes=0x0000000289c11600, is_noarg=0x000000028c7fc106, parent_arguments="__done8184=1", command_selection=0x000000028c8068b0) at gmic.cpp:14046:17
    frame #17: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x00000002898168b8, commands_line=0x0000000289816820, position=0x000000028c806fac, images=0x0000000288778e48, images_names=0x0000000288778e58, parent_images=0x00000002887953a8, parent_images_names=0x00000002887953b8, variables_sizes=0x0000000289a1d800, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x0000000288794ec0) at gmic.cpp:14046:17
    frame #18: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x0000000289816810) at gmic.cpp:2652:22
    frame #19: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #23
    frame #0: 0x0000000187b6606c libsystem_kernel.dylib`__semwait_signal + 8
    frame #1: 0x0000000187a6efc8 libsystem_c.dylib`nanosleep + 220
    frame #2: 0x000000016a2b71f4 krita_gmic_qt.so`cimg_library::cimg::sleep(milliseconds=95) at CImg.h:5981:7
    frame #3: 0x000000016a5e2a54 krita_gmic_qt.so`cimg_library::cimg::wait(milliseconds=100, p_timer=0x000000016a96fb38) at CImg.h:5995:7
    frame #4: 0x000000016a2b729c krita_gmic_qt.so`cimg_library::cimg::wait(milliseconds=100) at CImg.h:6010:14
    frame #5: 0x000000016a1f4a5c krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000289816b28, commands_line=0x0000000289816a90, position=0x000000028d012fac, images=0x000000028d012d98, images_names=0x000000028d012da8, parent_images=0x0000000288778e48, parent_images_names=0x0000000288778e58, variables_sizes=0x0000000289c0f600, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x0000000288794ec0) at gmic.cpp:13295:20
    frame #6: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x0000000289816b28, commands_line=0x0000000289816a90, position=0x000000028d012fac, images=0x0000000288778e48, images_names=0x0000000288778e58, parent_images=0x00000002887953a8, parent_images_names=0x00000002887953b8, variables_sizes=0x0000000289c0f600, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x0000000288794ec0) at gmic.cpp:8929:13
    frame #7: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x0000000289816a80) at gmic.cpp:2652:22
    frame #8: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #24
    frame #0: 0x00000001879b0c14 libsystem_malloc.dylib`tiny_malloc_from_free_list + 64
    frame #1: 0x00000001879b05d0 libsystem_malloc.dylib`tiny_malloc_should_clear + 220
    frame #2: 0x00000001879af3a0 libsystem_malloc.dylib`szone_malloc_should_clear + 92
    frame #3: 0x00000001879cb748 libsystem_malloc.dylib`_malloc_zone_malloc + 156
    frame #4: 0x0000000187b5c8a0 libc++abi.dylib`operator new(unsigned long) + 32
    frame #5: 0x000000016a0526c4 krita_gmic_qt.so`cimg_library::CImgList<char>::CImgList(this=0x000000028d7c9ee0, n=2) at CImg.h:60020:22
    frame #6: 0x000000016a0523f8 krita_gmic_qt.so`cimg_library::CImgList<char>::CImgList(this=0x000000028d7c9ee0, n=2) at CImg.h:60019:55
    frame #7: 0x000000016a0522fc krita_gmic_qt.so`cimg_library::CImgList<char>::assign(this=0x000000028ba331e0, list=0x000000010f87cbe0, is_shared=true) at CImg.h:60522:19
    frame #8: 0x000000016a1bf0e8 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f865eb8, commands_line=0x000000028d7f7750, position=0x000000028d7f7728, images=0x000000028d802838, images_names=0x000000028d802848, parent_images=0x000000028d81ed98, parent_images_names=0x000000028d81eda8, variables_sizes=0x000000010fc42c00, is_noarg=0x000000028d7f7ba6, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,1.5", command_selection=0x000000028d802350) at gmic.cpp:10718:49
    frame #9: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f865eb8, commands_line=0x000000010f865e20, position=0x000000028d81efac, images=0x000000028d81ed98, images_names=0x000000028d81eda8, parent_images=0x000000028c6967b8, parent_images_names=0x000000028c6967c8, variables_sizes=0x000000010fa33c00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028c6962d0) at gmic.cpp:14046:17
    frame #10: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f865eb8, commands_line=0x000000010f865e20, position=0x000000028d81efac, images=0x000000028c6967b8, images_names=0x000000028c6967c8, parent_images=0x000000028c6b2d18, parent_images_names=0x000000028c6b2d28, variables_sizes=0x000000010fa33c00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028c6962d0) at gmic.cpp:8929:13
    frame #11: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010f865e10) at gmic.cpp:2652:22
    frame #12: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #25
    frame #0: 0x0000000187b64834 libsystem_kernel.dylib`__ulock_wait + 8
    frame #1: 0x0000000187ba25a0 libsystem_pthread.dylib`_pthread_join + 444
    frame #2: 0x000000016a28a714 krita_gmic_qt.so`void gmic::wait_threads<float>(this=0x000000010f866128, p_gmic_threads=0x000000028e640b30, try_abort=false, pixel_type=0x000000028dfeaaec) at gmic.cpp:2763:7
    frame #3: 0x000000016a1bffd4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f866128, commands_line=0x000000028e003750, position=0x000000028e003728, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x0000000172de8000, is_noarg=0x000000028e003ba6, parent_arguments="_fx_mix_lab 1\U0000001a0\U0000001a0\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a1.5\U0000001a0\U0000001a0.5\U0000001a0\U0000001a2\U0000001a0,1.5", command_selection=0x000000028e00e350) at gmic.cpp:10812:15
    frame #4: 0x000000016a2004e4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f866128, commands_line=0x000000010f866090, position=0x000000028e02afac, images=0x000000028e02ad98, images_names=0x000000028e02ada8, parent_images=0x000000028c6967b8, parent_images_names=0x000000028c6967c8, variables_sizes=0x000000010fc40c00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028c6962d0) at gmic.cpp:14046:17
    frame #5: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010f866128, commands_line=0x000000010f866090, position=0x000000028e02afac, images=0x000000028c6967b8, images_names=0x000000028c6967c8, parent_images=0x000000028c6b2d18, parent_images_names=0x000000028c6b2d28, variables_sizes=0x000000010fc40c00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028c6962d0) at gmic.cpp:8929:13
    frame #6: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010f866080) at gmic.cpp:2652:22
    frame #7: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #26
    frame #0: 0x000000016a1ff9ec krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc0b8, commands_line=0x000000010a0fc020, position=0x000000028f806fac, images=0x000000028f806d98, images_names=0x000000028f806da8, parent_images=0x000000028e00e838, parent_images_names=0x000000028e00e848, variables_sizes=0x0000000172fe6a00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:13988:13
    frame #1: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc0b8, commands_line=0x000000010a0fc020, position=0x000000028f806fac, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x0000000172fe6a00, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:8929:13
    frame #2: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010a0fc010) at gmic.cpp:2652:22
    frame #3: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
* thread #27, stop reason = EXC_BAD_ACCESS (code=1, address=0x0)
  * frame #0: 0x000000016a131750 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc328, commands_line=0x000000010a0fc290, position=0x0000000290012fac, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x000000010aa51800, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:5333:33
    frame #1: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010a0fc280) at gmic.cpp:2652:22
    frame #2: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #28
    frame #0: 0x000000016a0521f4 krita_gmic_qt.so`void cimg_library::cimg::swap<unsigned int>(a=0x000000029081e938, b=0x000000029081e9a0) at CImg.h:5801
    frame #1: 0x000000016a052264 krita_gmic_qt.so`void cimg_library::cimg::swap<unsigned int, unsigned int>(a1=0x000000029081e938, b1=0x000000029081e9a0, a2=0x000000029081e93c, b2=0x000000029081e9a4) at CImg.h:5806:26
    frame #2: 0x000000016a0521dc krita_gmic_qt.so`void cimg_library::cimg::swap<unsigned int, unsigned int, unsigned int>(a1=0x000000029081e938, b1=0x000000029081e9a0, a2=0x000000029081e93c, b2=0x000000029081e9a4, a3=0x000000029081e940, b3=0x000000029081e9a8) at CImg.h:5812:7
    frame #3: 0x000000016a052104 krita_gmic_qt.so`void cimg_library::cimg::swap<unsigned int, unsigned int, unsigned int, unsigned int>(a1=0x000000029081e938, b1=0x000000029081e9a0, a2=0x000000029081e93c, b2=0x000000029081e9a4, a3=0x000000029081e940, b3=0x000000029081e9a8, a4=0x000000029081e944, b4=0x000000029081e9ac) at CImg.h:5818:7
    frame #4: 0x000000016a05313c krita_gmic_qt.so`cimg_library::CImg<char>::swap(this=0x000000029081e938, img=0x000000029081e9a0) at CImg.h:12876:7
    frame #5: 0x000000016a0530cc krita_gmic_qt.so`cimg_library::CImg<char>::move_to(this=0x000000029081e938, img=0x000000029081e9a0) at CImg.h:12832:12
    frame #6: 0x000000016a132cec krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc598, commands_line=0x000000010a0fc500, position=0x000000029081efac, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x000000028e81b800, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:5473:42
    frame #7: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010a0fc4f0) at gmic.cpp:2652:22
    frame #8: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
  thread #29
    frame #0: 0x000000016a052800 krita_gmic_qt.so`cimg_library::CImg<char>::assign(this=0x000000028e866b50, values="fx_end_mix", size_x=11, size_y=1, size_z=1, size_c=1, is_shared=false) at CImg.h:12694:57
    frame #1: 0x000000016a052478 krita_gmic_qt.so`cimg_library::CImg<char>& cimg_library::CImg<char>::assign<char>(this=0x000000028e866b50, img=0x000000028e860d50, is_shared=false) at CImg.h:12741:14
    frame #2: 0x000000016a11e8e8 krita_gmic_qt.so`cimg_library::CImgList<char>::CImgList(this=0x0000000291003750, list=0x0000000290ff2408) at CImg.h:60268:38
    frame #3: 0x000000016a116aa8 krita_gmic_qt.so`cimg_library::CImgList<char>::CImgList(this=0x0000000291003750, list=0x0000000290ff2408) at CImg.h:60266:78
    frame #4: 0x000000016a115b28 krita_gmic_qt.so`gmic::commands_line_to_CImgList(this=0x000000010a0fc808, commands_line=" fx_start_mix 0,2 rgb2lab. s. c *... 1 +... 0 b... 0% *.. 1.5 +.. 0 b.. 0.5% *. 1.5 +. 0 b. 0.5% a[-3--1] c lab2rgb. fx_end_mix 0") at gmic.cpp:3200:10
    frame #5: 0x000000016a1ff9a4 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc808, commands_line=0x000000010a0fc770, position=0x000000029102afac, images=0x000000029102ad98, images_names=0x000000029102ada8, parent_images=0x000000028e00e838, parent_images_names=0x000000028e00e848, variables_sizes=0x000000028bbb7600, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:13986:32
    frame #6: 0x000000016a188b24 krita_gmic_qt.so`gmic& gmic::_run<float>(this=0x000000010a0fc808, commands_line=0x000000010a0fc770, position=0x000000029102afac, images=0x000000028e00e838, images_names=0x000000028e00e848, parent_images=0x000000028e02ad98, parent_images_names=0x000000028e02ada8, variables_sizes=0x000000028bbb7600, is_noarg=0x0000000000000000, parent_arguments=0x0000000000000000, command_selection=0x000000028e00e350) at gmic.cpp:8929:13
    frame #7: 0x000000016a28a4f4 krita_gmic_qt.so`void* gmic_parallel<float>(arg=0x000000010a0fc760) at gmic.cpp:2652:22
    frame #8: 0x0000000187ba026c libsystem_pthread.dylib`_pthread_start + 148
(lldb)
Comment 5 Bug Janitor Service 2022-09-12 04:36:40 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 6 amyspark 2023-01-28 20:53:41 UTC
Iván, is this still reproducible? I'll be preparing the 3.2 tarball next week, perhaps you can try reproducing it then.

Also cc David so that he knows.
Comment 7 vanyossi 2023-01-31 00:20:37 UTC
I can still reproduce it in master  Version: 5.2.0-prealpha (git f7ba48f). Selecting Chalk It Up [Fr] will produce the same backtrace
Comment 8 vanyossi 2023-05-02 01:37:02 UTC
Created attachment 158611 [details]
crash with debug info

Maybe this updated crash log could help  find the culprit
Comment 9 vanyossi 2023-05-02 04:25:41 UTC
*** Bug 469241 has been marked as a duplicate of this bug. ***
Comment 10 amyspark 2023-05-02 14:16:06 UTC
Iván, this looks like some bit of CImg's internal state is NULL at the point of access; but I don't know what or how, because the whole stack is marked as "unavailable".

Before marking this as an upstream bug, could you please try building G'MIC without optimizations and without `-flto` (I think this one is enabled in macOS), then triggering the bug? I think this could be done with either the Krita plugin or the stock G'MIC (GMIC_QT_HOST=none) so that the app can be loaded and tested inside Xcode.
Comment 11 vanyossi 2023-05-03 06:28:56 UTC
Created attachment 158645 [details]
3 backtraces

I attach a file with 3 backtraces concatenated. gmic was compiled with no optimization and LTO off.
Comment 12 David Tschumperlé 2023-05-03 07:32:33 UTC
A note about this : we have recently fixed a bug that could be related from G'MIC 2.3.2 to 2.3.3 (current is 2.3.4).
This was a multi-threading issue (G'MIC was trying to decompress its standard library in multiple threads at the same time).
It may be interesting to test the latest version 2.3.4 and see if your issue still happens.
Comment 13 vanyossi 2023-05-03 07:43:22 UTC
(In reply to David Tschumperlé from comment #12)
> A note about this : we have recently fixed a bug that could be related from
> G'MIC 2.3.2 to 2.3.3 (current is 2.3.4).
> This was a multi-threading issue (G'MIC was trying to decompress its
> standard library in multiple threads at the same time).
> It may be interesting to test the latest version 2.3.4 and see if your issue
> still happens.

that could explain why in some backtraces the crash was happening in more than one thread at the same time
Comment 14 Bug Janitor Service 2023-05-04 03:46:19 UTC
Thanks for your comment!

Automatically switching the status of this bug to REPORTED so that the KDE team
knows that the bug is ready to get confirmed.

In the future you may also do this yourself when providing needed information.
Comment 15 amyspark 2023-05-04 22:53:30 UTC
Iván, can you check with the amyspark/v3.2.4 branch of https://github.com/amyspark/gmic ?
Comment 16 vanyossi 2023-05-06 02:25:41 UTC
(In reply to amyspark from comment #15)
> Iván, can you check with the amyspark/v3.2.4 branch of
> https://github.com/amyspark/gmic ?

I can happily report that using gmic amyspark/v3.2.4 branch is no longer crashing
Comment 17 amyspark 2023-05-06 03:12:21 UTC
I'll cut a tarball during the weekend and PR it for the next dev meeting.
Comment 18 Halla Rempt 2023-05-29 14:17:25 UTC
Um, I guess that hasn't happened yet?
Comment 19 David Tschumperlé 2023-05-29 16:01:21 UTC
FYI, nest g'mic version 3.2.5 will be released tomorrow :)
Comment 20 amyspark 2023-05-29 16:14:12 UTC
Tarball has already been packaged and released, I hadn't submitted the PR both because of health/RL constraints and also because of the 5.2 feature freeze.
Comment 21 vanyossi 2023-07-02 04:41:45 UTC
*** Bug 471845 has been marked as a duplicate of this bug. ***