Libreoffice crashes frequently when copying data from Calc from one or multiple cells to the clipboard (the toolbar, using command-c or right clicking on mouse). When running from terminal, it raises an NSInvalidArgumentException exception when the crash occurs, as follows: % ./soffice 2024-06-26 14:57:24.569 soffice[35419:1965409] 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:. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSAutoresizingMaskLayoutConstraint length]: unrecognized selector sent to instance 0x600004e11310' *** First throw call stack: ( 0 CoreFoundation 0x00000001850d72ec __exceptionPreprocess + 176 1 libobjc.A.dylib 0x0000000184bbe788 objc_exception_throw + 60 2 CoreFoundation 0x000000018518956c -[NSObject(NSObject) __retain_OA] + 0 3 CoreFoundation 0x0000000185040f3c ___forwarding___ + 1580 4 CoreFoundation 0x0000000185040850 _CF_forwarding_prep_0 + 96 5 LaunchServices 0x00000001854dfaf0 _UTTypeIdentifierIsValid + 52 6 LaunchServices 0x00000001854dfa28 _UTTypeGetStatus + 28 7 AppKit 0x000000018897f004 +[NSPasteboard(NSTypeConversion) _typeIdentifierForName:securityScoped:] + 44 8 AppKit 0x0000000188b4b06c -[NSPasteboard _setOwner:forTypes:atIndex:selector:usesPboardTypes:] + 508 9 libvclplug_osxlo.dylib 0x00000001046978e8 _ZN13AquaClipboard11setContentsERKN3com3sun4star3uno9ReferenceINS2_12datatransfer13XTransferableEEERKNS4_INS5_9clipboard15XClipboardOwnerEEE + 412 10 libvcllo.dylib 0x00000001093eaf20 _ZNK18TransferableHelper15CopyToClipboardERKN3com3sun4star3uno9ReferenceINS2_12datatransfer9clipboard10XClipboardEEE + 320 11 libvcllo.dylib 0x00000001093eb0ac _ZNK18TransferableHelper15CopyToClipboardEPN3vcl6WindowE + 84 12 libsclo.dylib 0x00000004a3e03b04 _ZN10ScViewFunc21CopyToClipSingleRangeEP10ScDocumentRK11ScRangeListbb + 1412 13 libsclo.dylib 0x00000004a3e029e4 _ZN10ScViewFunc10CopyToClipEP10ScDocumentbbbb + 380 14 libsclo.dylib 0x00000004a3cf2a60 _ZN11ScCellShell11ExecuteEditER10SfxRequest + 14044 15 libsfxlo.dylib 0x00000001064c7e30 _ZN13SfxDispatcher9Call_ImplER8SfxShellRK7SfxSlotR10SfxRequestb + 572 16 libsfxlo.dylib 0x00000001064c34d8 _ZN11SfxBindings12Execute_ImplER10SfxRequestPK7SfxSlotP8SfxShell + 596 17 libsfxlo.dylib 0x00000001065057ec _ZN26SfxDispatchController_Impl8dispatchERKN3com3sun4star4util3URLERKNS2_3uno8SequenceINS2_5beans13PropertyValueEEERKNS7_9ReferenceINS2_5frame23XDispatchResultListenerEEE + 3108 18 libsfxlo.dylib 0x00000001065047b0 _ZN17SfxOfficeDispatch8dispatchERKN3com3sun4star4util3URLERKNS2_3uno8SequenceINS2_5beans13PropertyValueEEE + 296 19 libsvtlo.dylib 0x000000010583e198 _ZN3svt12_GLOBAL__N_114AsyncAccelExec29LinkStubimpl_ts_asyncCallbackEPvP13LinkParamNone + 228 20 libvcllo.dylib 0x00000001092daab4 _ZL19ImplHandleUserEventP11ImplSVEvent + 48 21 libvcllo.dylib 0x00000001092d8cb0 _Z19ImplWindowFrameProcPN3vcl6WindowE8SalEventPKv + 740 22 libvclplug_osxlo.dylib 0x00000001046a5a80 _ZThn40_N15AquaSalInstance12ProcessEventEN16SalUserEventList12SalUserEventE + 44 23 libvcllo.dylib 0x0000000109568798 _ZN16SalUserEventList18DispatchUserEventsEb + 720 24 libvclplug_osxlo.dylib 0x00000001046a609c _ZN15AquaSalInstance7DoYieldEbb + 392 25 libvcllo.dylib 0x00000001095aeaa4 _ZN11Application5YieldEv + 96 26 libvcllo.dylib 0x00000001095aea20 _ZN11Application7ExecuteEv + 176 27 libsofficeapp.dylib 0x0000000104b93014 _ZN7desktop7Desktop4MainEv + 2652 28 libvcllo.dylib 0x00000001095b635c _Z10ImplSVMainv + 392 29 libvclplug_osxlo.dylib 0x00000001046a5b20 _ZN15AquaSalInstance21handleAppDefinedEventEP7NSEvent + 96 30 libvclplug_osxlo.dylib 0x00000001046d7a70 -[VCL_NSApplication sendEvent:] + 92 31 AppKit 0x0000000188d0289c -[NSApplication _handleEvent:] + 60 32 AppKit 0x00000001888b30c0 -[NSApplication run] + 512 33 AppKit 0x000000018888a2e0 NSApplicationMain + 880 34 libvclplug_osxlo.dylib 0x00000001046a7b10 _ZN15AquaSalInstance10SVMainHookEPi + 152 35 libvcllo.dylib 0x00000001095b6338 _Z10ImplSVMainv + 356 36 libsofficeapp.dylib 0x0000000104bbc4d8 soffice_main + 216 37 soffice 0x00000001044dbf40 main + 20 38 dyld 0x0000000184bfa0e0 start + 2360 ) libc++abi: terminating due to uncaught exception of type NSException LibreOffice version information: Version: 24.2.4.2 (AARCH64) / LibreOffice Community Build ID: 51a6219feb6075d9a4c46691dcfe0cd9c4fff3c2 CPU threads: 12; OS: macOS 14.5; UI render: Skia/Metal; VCL: osx Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
*** This bug has been marked as a duplicate of bug 161461 ***
Update: the fix for this bug is now available for Mac App Store version of LibreOffice: https://apps.apple.com/app/libreoffice/id1630474372 If you bought LibreOffice in the Mac App Store, you can get the fix by opening the App Store application on your Mac and selecting the Store > Updates menu item. Unfortunately, the fix is not yet available in an official release from the LibreOffice website. But a new LibreOffice version is expected to be released sometime later this month (July 2024). I will post an update when the LibreOffice website has the new version.
Update: if you downloaded LibreOffice directly from the LibreOffice website, LibreOffice 24.2.5.1 (a pre-release that contains the fix) can be download from the folowing TDF website links: Mac Silicon: https://www.libreoffice.org/download/download-libreoffice/?type=mac-aarch64&version=24.2.5 Mac Intel: https://www.libreoffice.org/download/download-libreoffice/?type=mac-x86_64&version=24.2.5