Can you please give any advice on what to do next?
I saw that the app hangs on a remote session. But I don't know what process hangs the app.
I do realize that the proper way is to move everything except drawing to the BG queues. But I have a lot of legacy code. And my boss definitely isn't going to pay for overriding the whole app. And even then I can't guaranty the problem be solved.
Spindump:
End time:				 2021-01-29 15:58:32.475 +0100\
OS Version:			 macOS 11.1 (Build 20C69)\
Architecture:		 arm64e\
Report Version:	 32\
Share With Devs:	Yes\
\
Data Source:			Stackshots\
Shared Cache:		 64510D3B-D7B4-3C73-803C-AD9F01B790AD slid base address 0x18f298000, slide 0xf298000\
Shared Cache:		 E2B1A630-68DD-30AC-A036-6AC018B154DA slid base address 0x7fff20094000, slide 0x94000\
\
Command:					MyApp\
Path:						 /private/var/folders/*/MyApp.app/Contents/MacOS/MyApp\
Identifier:			 com.companyname.myappid\
Version:					7.3.1 (815)\
Parent:					 launchd [1]\
PID:							2264\
Time Since Fork:	464s\
Note:						 Translocated\
\
Event:						hang\
Duration:				 446.85s\
Duration Sampled: 4.70s (process was unresponsive for 442 seconds before sampling)\
Steps:						47 (100ms sampling interval)\
Report threshold: 2.5s\
\
Hardware model:	 MacBookAir10,1\
Active cpus:			8\
\
Time Awake Since Boot: 2536s\
Time Since Wake:	n/a (machine hasn't slept)\
\
\-------------------------------------------------\
Timeline format: stacks are sorted chronologically\
Use -i and -heavy to re-report with count sorting\-------------------------------------------------\
\
\
Heaviest stack for the main thread of the target process:\
	47	<truncated backtrace>\
	47	-[NSBundle initWithPath:] + 392 (Foundation + 15300) [0x1903a1bc4]\
	47	access + 8 (libsystem_kernel.dylib + 5952) [0x18f548740]\47	??? (kernel.release.t8101 + 30696) [0xfffffe0007c137e8]\
47	??? (kernel.release.t8101 + 1447416) [0xfffffe0007d6d5f8]\
47	??? (kernel.release.t8101 + 6596008) [0xfffffe00082565a8]\
47	??? (kernel.release.t8101 + 2786396) [0xfffffe0007eb445c]\
47	??? (kernel.release.t8101 + 2785876) [0xfffffe0007eb4254]\
47	kauth_authorize_action + 252 (kernel.release.t8101 + 5274992) [0xfffffe0008113d70]\
47	VnodeScopeListener + 1000 (AppleFileUtil + 51028) [0xfffffe0008b98754]\
47	Placeholders_Hydrate + 304 (AppleFileUtil + 54376) [0xfffffe0008b99468]\
47	_Placeholders_Hydrate_Wait_For_Completion + 284 (AppleFileUtil + 56540) [0xfffffe0008b99cdc]\
47	Tickets_WaitOnTicketResponse + 732 (AppleFileUtil + 10076) [0xfffffe0008b8e75c]\
47	Kernel_Cond_Wait + 64 (AppleFileUtil + 45928) [0xfffffe0008b97368]\
47	??? (kernel.release.t8101 + 5591856) [0xfffffe0008161330]\
47	lck_mtx_sleep_deadline + 132 (kernel.release.t8101 + 395372) [0xfffffe0007c6c86c]\
47	??? (kernel.release.t8101 + 462928) [0xfffffe0007c7d050]\
47	??? (kernel.release.t8101 + 468128) [0xfffffe0007c7e4a0]\
	Binary Images:\
					 0x1025ec000 -				0x102afbfff	com.companyname.myappid 7.3.1 (815)	<D7CFCE67-1556-322E-A82B-64604ECBB0E3>							/private/var/folders/*/MyApp.app/Contents/MacOS/MyApp\
					 0x18f547000 -				0x18f579fff	libsystem_kernel.dylib (7195.60.75)			<35BFD663-2C38-3E0F-A35E-8C1BC6400898>							/usr/lib/system/libsystem_kernel.dylib\
					 0x18f57a000 -				0x18f585fff	libsystem_pthread.dylib (454.60.1)			 <EDB716F3-BF94-3941-B7DA-D6C91094C645>							/usr/lib/system/libsystem_pthread.dylib\
					 0x18f5f8000 -				0x18faa1fff	com.apple.CoreFoundation 6.9 (1770.300)	<396F9604-7574-3C1B-ACA7-C7EB24FE3544>							/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation\
					 0x19039e000 -				0x19072ffff	com.apple.Foundation 6.9 (1770.300)			<5CEA7350-F274-39AE-9F27-D9813F2C3A76>							/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation\
					 0x191e10000 -				0x192b6efff	com.apple.AppKit 6.9 (2022.20.119)			 <78F21674-643E-3793-B1CD-C8BDBC76BAD5>							/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit\
	 *0xfffffe0007c0c000 - 0xfffffe00083f7fff	kernel.release.t8101 (7195.60.75)				<48F71DB3-6C91-3E62-9576-3A1DCEF2B536>__TEXT_EXEC	 /System/Library/Kernels/kernel.release.t8101\
	 *0xfffffe0008b8c000 - 0xfffffe0008b9ffff	com.apple.fileutil 20.036.15 (20.036.15) <73495C49-0EF7-3EA5-ADC9-0BD2D90305A0>__TEXT_EXEC	 /System/Library/Extensions/AppleFileUtil.kext/Contents/MacOS/AppleFileUtil\
	 *0xfffffe000a9d8000 - 0xfffffe000a9dffff	com.apple.kec.pthread 1.0 (1)						<EEB71141-5752-31E8-8495-2AF64D829A69>__TEXT_EXEC	 /System/Library/Extensions/pthread.kext/Contents/MacOS/pthread\
Selecting any option will automatically load the page
Post
Replies
Boosts
Views
Activity
The crash was received from user and I'm unable to reproduce it =(
Report Version: 12
Bridge OS Version: 3.0 (14Y908)
Time Awake Since Boot: 25000 seconds
Time Since Wake: 3900 seconds
System Integrity Protection: enabled
Crashed Thread: 9
Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY
Application Specific Information:
abort() called
terminating with uncaught exception of type NSException
//Four threads perform operations(remove files). and I did not find anything that can cause "locks" or something wrong.
Thread 9 Crashed:
0 libsystem_kernel.dylib 0x00007fff204bf936 0x7fff204b8000 + 31030
1 libsystem_c.dylib 0x00007fff20443411 abort + 120
2 libc++abi.dylib 0x00007fff204b1ef2 abort_message + 241
3 libc++abi.dylib 0x00007fff204a35fd demangling_terminate_handler() + 266
4 libobjc.A.dylib 0x00007fff2039c58d _objc_terminate() + 96
5 libc++abi.dylib 0x00007fff204b1307 std::__terminate(void (*)()) + 8
6 libc++abi.dylib 0x00007fff204b12a9 std::terminate() + 41
7 libdispatch.dylib 0x00007fff203447fa 0x7fff20341000 + 14330
8 libdispatch.dylib 0x00007fff2034a5ca 0x7fff20341000 + 38346
9 libdispatch.dylib 0x00007fff2034b08d 0x7fff20341000 + 41101
10 libdispatch.dylib 0x00007fff20354bed 0x7fff20341000 + 80877
11 libsystem_pthread.dylib 0x00007fff204eb4c0 0x7fff204e8000 + 13504
12 libsystem_pthread.dylib 0x00007fff204ea493 0x7fff204e8000 + 9363
Thread 9 crashed with X86 Thread State (64-bit):
rax: 0x0000000000000000 rbx: 0x00007000022d1000 rcx: 0x00007000022d02e8 rdx: 0x0000000000000000
rdi: 0x000000000004d327 rsi: 0x0000000000000006 rbp: 0x00007000022d0310 rsp: 0x00007000022d02e8
r8: 0x00007000022d01b0 r9: 0x0000000000000000 r10: 0x00007000022d1000 r11: 0x0000000000000246
r12: 0x000000000004d327 r13: 0x0000003000000008 r14: 0x0000000000000006 r15: 0x0000000000000016
rip: 0x00007fff204bf936 rfl: 0x0000000000000246 cr2: 0x00007fff8081d400
Logical CPU: 0
Error Code: 0x020000dc
Trap Number: 133
Thread 9 instruction stream not available.
Thread 9 last branch register state not available.
Binary Images:
0x7fff20341000 - 0x7fff20385fff libdispatch.dylib (1271.100.5) <91C02276-B0B7-3391-BDB2-F0CAAEF0CA11> /usr/lib/system/libdispatch.dylib
0x7fff204a2000 - 0x7fff204b7fff libc++abi.dylib (905.6) <0E137B9A-B841-3360-B183-539C7306C4DC> /usr/lib/libc++abi.dylib
0x7fff20386000 - 0x7fff203bffff libobjc.A.dylib (824) <B96EE933-7F66-3766-BA8C-A0460F9549CF> /usr/lib/libobjc.A.dylib
0x7fff203c3000 - 0x7fff2044bfff libsystem_c.dylib (1439.100.3) <9ACE66E2-F984-3185-8814-47C659740AD2> /usr/lib/system/libsystem_c.dylib
0x7fff204b8000 - 0x7fff204e7fff libsystem_kernel.dylib (7195.100.354.131.1) <BC055178-6A8A-3063-8C18-6EC135657827> /usr/lib/system/libsystem_kernel.dylib
0x7fff204e8000 - 0x7fff204f3fff libsystem_pthread.dylib (454.100.8) <F33FF9C7-08A4-3EBA-A3E7-042288C3644D> /usr/lib/system/libsystem_pthread.dylib
I found a bit similar crash https://developer.apple.com/forums/thread/124855.
But I don't have "Last Exception Backtrace" or anything similar in my crashlog. Only:
"last branch register state not available." and "last branch register state not available.".
The only activity I can perform is to use "Standard Memory Debugging Tools". At the moment I don't even know if my case relates to this "Memory Issues".