[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 vanyossi changed: What|Removed |Added CC||gabrielle.l...@gmail.com --- Comment #21 from vanyossi --- *** Bug 471845 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 col...@outlook.com changed: What|Removed |Added CC||col...@outlook.com -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added URL||https://github.com/amyspark ||/gmic/releases/tag/v3.2.4.1 --- Comment #20 from amyspark --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #19 from David Tschumperlé --- FYI, nest g'mic version 3.2.5 will be released tomorrow :) -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 Halla Rempt changed: What|Removed |Added CC||ha...@valdyas.org --- Comment #18 from Halla Rempt --- Um, I guess that hasn't happened yet? -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED|RESOLVED Latest Commit||https://github.com/amyspark ||/gmic/commit/65fbd5d3bd3c27 ||84385fae1c7490735bb4a9df5f --- Comment #17 from amyspark --- I'll cut a tarball during the weekend and PR it for the next dev meeting. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #16 from vanyossi --- (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 -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added Status|REPORTED|ASSIGNED Ever confirmed|0 |1 Assignee|krita-bugs-n...@kde.org |a...@amyspark.me --- Comment #15 from amyspark --- Iván, can you check with the amyspark/v3.2.4 branch of https://github.com/amyspark/gmic ? -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 Bug Janitor Service changed: What|Removed |Added Resolution|BACKTRACE |--- Ever confirmed|1 |0 Status|NEEDSINFO |REPORTED --- Comment #14 from Bug Janitor Service --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #13 from vanyossi --- (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 -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #12 from David Tschumperlé --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 vanyossi changed: What|Removed |Added Attachment #158611|0 |1 is obsolete|| --- Comment #11 from vanyossi --- Created attachment 158645 --> https://bugs.kde.org/attachment.cgi?id=158645=edit 3 backtraces I attach a file with 3 backtraces concatenated. gmic was compiled with no optimization and LTO off. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added Resolution|--- |BACKTRACE Status|CONFIRMED |NEEDSINFO --- Comment #10 from amyspark --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 vanyossi changed: What|Removed |Added CC||irene.roys...@gmail.com --- Comment #9 from vanyossi --- *** Bug 469241 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #8 from vanyossi --- Created attachment 158611 --> https://bugs.kde.org/attachment.cgi?id=158611=edit crash with debug info Maybe this updated crash log could help find the culprit -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 vanyossi changed: What|Removed |Added Ever confirmed|0 |1 Resolution|WAITINGFORINFO |--- Status|NEEDSINFO |CONFIRMED --- Comment #7 from vanyossi --- I can still reproduce it in master Version: 5.2.0-prealpha (git f7ba48f). Selecting Chalk It Up [Fr] will produce the same backtrace -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added Resolution|--- |WAITINGFORINFO CC||david.tschumpe...@gmail.com Status|REPORTED|NEEDSINFO --- Comment #6 from amyspark --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 Bug Janitor Service changed: What|Removed |Added Resolution|WAITINGFORINFO |--- Ever confirmed|1 |0 Status|NEEDSINFO |REPORTED --- Comment #5 from Bug Janitor Service --- 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. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #4 from vanyossi --- 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: 0x00016a131750 krita_gmic_qt.so`gmic& gmic::_run(this=0x00010a0fc328, commands_line=0x00010a0fc290, position=0x000290012fac, images=0x00028e00e838, images_names=0x00028e00e848, parent_images=0x00028e02ad98, parent_images_names=0x00028e02ada8, variables_sizes=0x00010aa51800, is_noarg=0x, parent_arguments=0x, command_selection=0x00028e00e350) at gmic.cpp:5333:33 5330 cimg::mutex(24); 5331 CImgList = gmic_runs(); 5332 const CImg = grl.back(); -> 5333 const bool push_run = !grl || grb[0]!=this || grb[1]!= 5334 if (push_run) { 5335 CImg gr(7); 5336 gr[0] = (void*)this; Target 0: (krita) stopped. (lldb) bt all thread #1, queue = 'com.apple.main-thread' frame #0: 0x000187b628b0 libsystem_kernel.dylib`mach_msg_trap + 8 frame #1: 0x000187b62d20 libsystem_kernel.dylib`mach_msg + 76 frame #2: 0x000187c6d2c0 CoreFoundation`__CFRunLoopServiceMachPort + 372 frame #3: 0x000187c6b770 CoreFoundation`__CFRunLoopRun + 1180 frame #4: 0x000187c6ab34 CoreFoundation`CFRunLoopRunSpecific + 600 frame #5: 0x0001908aa338 HIToolbox`RunCurrentEventLoopInMode + 292 frame #6: 0x0001908aa0b4 HIToolbox`ReceiveNextEventCommon + 564 frame #7: 0x0001908a9e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72 frame #8: 0x00018a7d251c AppKit`_DPSNextEvent + 860 frame #9: 0x00018a7d0e14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328 frame #10: 0x00010d27701c libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1772 frame #11: 0x000109410ca8 QtCore`QEventLoop::exec(QFlags) + 524 frame #12: 0x00016a62089c krita_gmic_qt.so`KritaGmicPlugin::launch(this=0x605467c0, i=std::__1::shared_ptr::element_type @ 0x610805e8 strong=3 weak=1, headless=false) at gmicqttoolplugin.cpp:218:19 frame #13: 0x000138da691c kritaqmic.so`QMic::slotQMic(this=0x60f13270, again=false) at QMic.cpp:85:30 frame #14: 0x000138da59b8 kritaqmic.so`QMic::qt_static_metacall(_o=0x60f13270, _c=InvokeMetaMethod, _id=2, _a=0x00016fdfc8b8) at moc_QMic.cpp:79:21 frame #15: 0x0001094455c4 QtCore`QMetaObject::activate(QObject*, int, int, void**) + 2392 frame #16: 0x0001058ec718 QtWidgets`QAction::activate(QAction::ActionEvent) + 304 frame #17: 0x00010943e1b0 QtCore`QObject::event(QEvent*) + 440 frame #18: 0x0001058f5c9c QtWidgets`QApplicationPrivate::notify_helper(QObject*, QEvent*) + 292 frame #19: 0x0001058f7010 QtWidgets`QApplication::notify(QObject*, QEvent*) + 548 frame #20: 0x000102c274e0 libkritaui.19.0.0.dylib`KisApplication::notify(this=0x00016fdfedf0, receiver=0x605c9540, event=0x62737960) at KisApplication.cpp:757:40 frame #21: 0x000109415444 QtCore`QCoreApplication::notifyInternal2(QObject*, QEvent*) + 288 frame #22: 0x000109416900 QtCore`QCoreApplicationPrivate::sendPostedEvents(QObject*, int, QThreadData*) + 1476 frame #23: 0x00010d277b6c libqcocoa.dylib`___lldb_unnamed_symbol685$$libqcocoa.dylib + 312 frame #24: 0x00010d27821c libqcocoa.dylib`___lldb_unnamed_symbol697$$libqcocoa.dylib + 48 frame #25: 0x000187c6d044 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 28 frame #26: 0x000187c6cf90 CoreFoundation`__CFRunLoopDoSource0 + 208 frame #27: 0x000187c6cc90 CoreFoundation`__CFRunLoopDoSources0 + 268 frame #28: 0x000187c6b610 CoreFoundation`__CFRunLoopRun + 828 frame #29: 0x000187c6ab34 CoreFoundation`CFRunLoopRunSpecific + 600 frame #30: 0x0001908aa338 HIToolbox`RunCurrentEventLoopInMode + 292 frame #31: 0x0001908a9fc4 HIToolbox`ReceiveNextEventCommon + 324 frame #32: 0x0001908a9e68 HIToolbox`_BlockUntilNextEventMatchingListInModeWithFilter + 72 frame #33: 0x00018a7d251c AppKit`_DPSNextEvent + 860 frame #34: 0x00018a7d0e14 AppKit`-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1328 frame #35: 0x00018a7c2fe0 AppKit`-[NSApplication run] + 596 frame #36: 0x00010d277094 libqcocoa.dylib`___lldb_unnamed_symbol678$$libqcocoa.dylib + 1892 frame #37: 0x000109410ca8 QtCore`QEventLoop::exec(QFlags) + 524 frame #38: 0x000109415b04 QtCore`QCoreApplication::exec() + 128 frame #39: 0x0001000132f0 krita`main(argc=1, argv=0x00016fdff4f0) at main.cc:721:17 frame #40: 0x0001006c908c dyld`start + 520 thread #6 frame #0: 0x000187b6472c
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 --- Comment #3 from vanyossi --- *** Bug 458310 has been marked as a duplicate of this bug. *** -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 amyspark changed: What|Removed |Added Resolution|--- |WAITINGFORINFO Status|CONFIRMED |NEEDSINFO CC||a...@amyspark.me --- Comment #2 from amyspark --- G'MIC crash logs are pretty much useless, we need them to be fully symbolicated and the underlying script that's being run. -- You are receiving this mail because: You are watching all bug changes.
[krita] [Bug 458935] GMIC crash on macos arm, stacktrace gmic::_run
https://bugs.kde.org/show_bug.cgi?id=458935 vanyossi changed: What|Removed |Added Ever confirmed|0 |1 Status|REPORTED|CONFIRMED --- Comment #1 from vanyossi --- Related: stack trace Process 47586 stopped * thread #24, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) frame #0: 0x0002803716a8 krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 751384 krita_gmic_qt.so`gmic::_run: -> 0x2803716a8 <+751384>: ldrx8, [x22] 0x2803716ac <+751388>: ldrx9, [sp, #0x40f0] 0x2803716b0 <+751392>: cmpx8, x9 0x2803716b4 <+751396>: b.ne 0x2803717cc ; <+751676> thread #22, name = 'GmicQt::FilterThread' frame #0: 0x0001975f0834 libsystem_kernel.dylib`__ulock_wait + 8 frame #1: 0x00019762e5a0 libsystem_pthread.dylib`_pthread_join + 444 frame #2: 0x00028046f06c krita_gmic_qt.so`void gmic::wait_threads(void*, bool, float const&) + 560 frame #3: 0x00028032cfac krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 471068 frame #4: 0x0002802f3334 krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 234404 frame #5: 0x000280361b6c krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 687068 frame #6: 0x000280361b6c krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 687068 frame #7: 0x000280289da0 krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, cimg_library::CImgList&, cimg_library::CImgList&, float*, bool*) + 2400 frame #8: 0x000280288684 krita_gmic_qt.so`gmic& gmic::run(char const*, cimg_library::CImgList&, cimg_library::CImgList&, float*, bool*) + 484 frame #9: 0x0002800efa48 krita_gmic_qt.so`GmicQt::FilterThread::run() + 1924 frame #10: 0x000109fad314 QtCore`___lldb_unnamed_symbol266$$QtCore + 328 frame #11: 0x00019762c26c libsystem_pthread.dylib`_pthread_start + 148 thread #23 frame #0: 0x000280b436f0 krita_gmic_qt.so`cimg_library::CImg::_cimg_recursive_apply(float*, double const*, int, unsigned long, unsigned int, bool) + 3332 frame #1: 0x0002804b05fc krita_gmic_qt.so`cimg_library::CImg::vanvliet(float, unsigned int, char, unsigned int) + 4116 frame #2: 0x0002804f65bc krita_gmic_qt.so`cimg_library::CImg::blur(float, float, float, unsigned int, bool) + 180 frame #3: 0x0002803872d0 krita_gmic_qt.so`cimg_library::CImg::blur(float, unsigned int, bool) + 140 frame #4: 0x0002802d2558 krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 99784 frame #5: 0x00028046ec6c krita_gmic_qt.so`void* gmic_parallel(void*) + 632 frame #6: 0x00019762c26c libsystem_pthread.dylib`_pthread_start + 148 * thread #24, stop reason = EXC_BAD_ACCESS (code=1, address=0x0) * frame #0: 0x0002803716a8 krita_gmic_qt.so`gmic& gmic::_run(cimg_library::CImgList const&, unsigned int&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, cimg_library::CImgList&, unsigned int const*, bool*, char const*, cimg_library::CImg const*) + 751384 frame #1: 0x00028046ec6c krita_gmic_qt.so`void* gmic_parallel(void*) + 632 frame #2: 0x00019762c26c libsystem_pthread.dylib`_pthread_start + 148 -- You are receiving this mail because: You are watching all bug changes.