Bug 512717 - Crash on "Paste" with Copy 'Em running
Summary: Crash on "Paste" with Copy 'Em running
Status: REPORTED
Alias: None
Product: krita
Classification: Applications
Component: General (other bugs)
Version First Reported In: 5.2.11
Platform: macOS (DMG) macOS
: NOR crash
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-28 10:49 UTC by Alexander Schilpp
Modified: 2025-11-28 10:49 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Schilpp 2025-11-28 10:49:02 UTC
SUMMARY
Krita crashes on "Paste" when copy-pasting on macOS, while Copy 'Em (clipboard manager for macOS) is running.

STEPS TO REPRODUCE
1. Install and run "Copy 'Em" (https://apprywhere.com/ce-mac.html or from App Store)
2. Open any image file in Krita
3. Select area, copy + paste

OBSERVED RESULT
Krita stops (crash)

EXPECTED RESULT
Pasting the copied image as new layer

SOFTWARE/OS VERSIONS
Windows: 
macOS: Sequoia 15.6.1
(available in the Info Center app, or by running `kinfo` in a terminal window)
Linux/KDE Plasma: 
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

Copy 'Em: 3.1.1

ADDITIONAL INFORMATION
I have contacted the developer of Copy 'Em, and his response was:

"I think this is something the developers of Krita should look into,
because normally, apps shouldn't crash. If an app crashes, it means it
fails to handle certain cases correctly. Given that Krista crashes on
"Paste", it's likely that it fails to handle the pasted data correctly."

Output from running with lldb debugger:
❯ lldb /Applications/krita.app/Contents/MacOS/krita
(lldb) target create "/Applications/krita.app/Contents/MacOS/krita"
Current executable set to '/Applications/krita.app/Contents/MacOS/krita' (arm64).
(lldb) run
Process 17742 launched: '/Applications/krita.app/Contents/MacOS/krita' (arm64)
2025-11-28 11:36:15.865672+0100 krita[17742:296110114] [logging-persist] cannot open file at line 49455 of [1b37c146ee]
2025-11-28 11:36:15.865681+0100 krita[17742:296110114] [logging-persist] os_unix.c:49455: (2) open(/private/var/db/DetachedSignatures) - No such file or directory
2025-11-28 11:36:15.866223+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.867087+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.867095+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.867099+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868480+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868485+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868521+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868525+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868528+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868533+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.868537+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:15.869085+0100 krita[17742:296110135] [Security] __delegate_identifier__:Performance Diagnostics__:::____message__:This method should not be called on the main thread as it may lead to UI unresponsiveness.
2025-11-28 11:36:16.402070+0100 krita[17742:296110114] WARNING: configured swap location is not writable, using a fall-back location "/Users/ulnari/Library/Application Support/krita/swap" -> "/private/var/folders/tj/l8c7p0h970zc19bdtq94l2dh0000gn/T"
2025-11-28 11:36:16.402218+0100 krita[17742:296110114] WARNING: configured swap location is not writable, using a fall-back location "/Users/ulnari/Library/Application Support/krita/swap" -> "/private/var/folders/tj/l8c7p0h970zc19bdtq94l2dh0000gn/T"
2025-11-28 11:36:16.402316+0100 krita[17742:296110114] WARNING: configured swap location is not writable, using a fall-back location "/Users/ulnari/Library/Application Support/krita/swap" -> "/private/var/folders/tj/l8c7p0h970zc19bdtq94l2dh0000gn/T"
2025-11-28 11:36:17.608254+0100 krita[17742:296110114] [StateRestoration] WARNING: Secure coding is automatically enabled for restorable state! However, not on all supported macOS versions of this application. Opt-in to secure coding explicitly by implementing NSApplicationDelegate.applicationSupportsSecureRestorableState:.
2025-11-28 11:36:17.866735+0100 krita[17742:296110114] [qt.qpa.fonts] Populating font family aliases took 105 ms. Replace uses of missing font family ".AppleSystemUIFont" with one that exists to avoid this cost.
2025-11-28 11:36:18.160794+0100 krita[17742:296110114] Invalid profile :  "/Library/ColorSync/Profiles//WebSafeColors.icc"
2025-11-28 11:36:20.068853+0100 krita[17742:296110216] QObject::startTimer: Timers cannot have negative intervals
2025-11-28 11:36:20.150654+0100 krita[17742:296110114] WARNING: configured swap location is not writable, using a fall-back location "/Users/ulnari/Library/Application Support/krita/swap" -> "/private/var/folders/tj/l8c7p0h970zc19bdtq94l2dh0000gn/T"
/Applications/krita.app/Contents/lib/krita-python-libs/krita added to PYTHONPATH
2025-11-28 11:36:21.795465+0100 krita[17742:296110114] Warning: requested data for unknown action "path-break-at-selection"
2025-11-28 11:36:25.029678+0100 krita[17742:296110114] WARNING: configured swap location is not writable, using a fall-back location "/Users/ulnari/Library/Application Support/krita/swap" -> "/private/var/folders/tj/l8c7p0h970zc19bdtq94l2dh0000gn/T"
2025-11-28 11:36:29.572658+0100 krita[17742:296110114] [krita.general] Unexpected tool event has come to endStroke while being mode 0 !
2025-11-28 11:36:30.222676+0100 krita[17742:296110114] [krita.general] Unexpected tool event has come to endStroke while being mode 0 !
2025-11-28 11:36:42.797832+0100 krita[17742:296110114] [CursorUI] ViewBridge to RemoteViewService Terminated: Error Domain=com.apple.ViewBridge Code=18 "(null)" UserInfo={com.apple.ViewBridge.error.hint=this process disconnected remote view controller -- benign unless unexpected, com.apple.ViewBridge.error.description=NSViewBridgeErrorCanceled}
2025-11-28 11:36:44.143587+0100 krita[17742:296110114] [krita.general] Unexpected tool event has come to endStroke while being mode 0 !
Process 17742 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0xfffffffffffffff0)
    frame #0: 0x0000000187d2e664 libc++abi.dylib`__cxxabiv1::(anonymous namespace)::dyn_cast_get_derived_info(__cxxabiv1::(anonymous namespace)::derived_object_info*, void const*) + 8
libc++abi.dylib`__cxxabiv1::(anonymous namespace)::dyn_cast_get_derived_info:
->  0x187d2e664 <+8>:  ldur   x9, [x8, #-0x10]
    0x187d2e668 <+12>: add    x10, x1, x9
    0x187d2e66c <+16>: str    x10, [x0]
    0x187d2e670 <+20>: ldur   x8, [x8, #-0x8]
Target 0: (krita) stopped.