Sourcetree crashes after launch
Asked by gdarm:

Sourcetree on macOS High Sierra 10.3.6 (Beta 1) keeps crashing after launch.

The kernel throughs a message in Console app:

```
Process[3970] crashed: Sourcetree. Too many corpses being created.
```

I updated to the latest version available after a few crashes, but Sourcetree keeps crashing. Latest version for Mac is 2.7.4c

Does anyone have any idea how I can fix this?

Find a crash report with first 260 lines below:

```
Process: Sourcetree [3319]
Path: /Applications/SourceTree.app/Contents/MacOS/Sourcetree
Identifier: Sourcetree
Version: 2.7.4 (175)
Code Type: X86-64 (Native)
Parent Process: ??? [1]
Responsible: Sourcetree [3319]
User ID: 501

Date/Time: 2018-06-06 11:11:07.772 +0200
OS Version: Mac OS X 10.13.6 (17G31f)
Report Version: 12
Anonymous UUID: 9A3287AE-520A-90EE-C621-945D735EFE2C

Sleep/Wake UUID: 68EF3BF4-E838-47A6-859A-BFE47D59B8A3

Time Awake Since Boot: 120000 seconds
Time Since Wake: 15000 seconds

System Integrity Protection: enabled

Crashed Thread: 4 Dispatch queue: com.apple.root.default-qos

Exception Type: EXC_CRASH (SIGABRT)
Exception Codes: 0x0000000000000000, 0x0000000000000000
Exception Note: EXC_CORPSE_NOTIFY

Application Specific Information:
dyld: in dladdr()
abort() called

Thread 0:: Dispatch queue: com.apple.main-thread
0 com.apple.CoreFoundation 0x00007fff5675b560 __CFSimpleMergeSort + 336
1 com.apple.CoreFoundation 0x00007fff5675b3c2 CFSortIndexes + 1042
2 com.apple.CoreFoundation 0x00007fff567ad767 -[NSDictionary descriptionWithLocale:indent:] + 631
3 com.torusknot.SourceTreeNotMAS 0x000000010bda9c58 0x10bce7000 + 797784
4 com.torusknot.SourceTreeNotMAS 0x000000010bda9f62 0x10bce7000 + 798562
5 libdispatch.dylib 0x00007fff7e5685fa _dispatch_call_block_and_release + 12
6 libdispatch.dylib 0x00007fff7e560db8 _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff7e56c18d _dispatch_main_queue_callback_4CF + 628
8 com.apple.CoreFoundation 0x00007fff567a7c19 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
9 com.apple.CoreFoundation 0x00007fff56769dfa __CFRunLoopRun + 2586
10 com.apple.CoreFoundation 0x00007fff56769153 CFRunLoopRunSpecific + 483
11 com.apple.HIToolbox 0x00007fff55a53d96 RunCurrentEventLoopInMode + 286
12 com.apple.HIToolbox 0x00007fff55a53b06 ReceiveNextEventCommon + 613
13 com.apple.HIToolbox 0x00007fff55a53884 _BlockUntilNextEventMatchingListInModeWithFilter + 64
14 com.apple.AppKit 0x00007fff53d04a73 _DPSNextEvent + 2085
15 com.apple.AppKit 0x00007fff5449ae34 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 3044
16 com.apple.AppKit 0x00007fff53cf9885 -[NSApplication run] + 764
17 com.apple.AppKit 0x00007fff53cc8a72 NSApplicationMain + 804
18 libdyld.dylib 0x00007fff7e59a015 start + 1

Thread 1:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b2009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 2:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b2009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 3:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b220e _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 4 Crashed:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff7e6eab6e __pthread_kill + 10
1 libsystem_pthread.dylib 0x00007fff7e8b5080 pthread_kill + 333
2 libsystem_c.dylib 0x00007fff7e64624d __abort + 144
3 libsystem_c.dylib 0x00007fff7e6461bd abort + 142
4 com.torusknot.SourceTreeNotMAS 0x000000010bfd049d 0x10bce7000 + 3052701
5 libc++abi.dylib 0x00007fff7c55c7c9 std::__terminate(void (*)()) + 8
6 libc++abi.dylib 0x00007fff7c55c843 std::terminate() + 51
7 libdispatch.dylib 0x00007fff7e560dcc _dispatch_client_callout + 28
8 libdispatch.dylib 0x00007fff7e56dcc5 _dispatch_queue_override_invoke + 880
9 libdispatch.dylib 0x00007fff7e5629a9 _dispatch_root_queue_drain + 515
10 libdispatch.dylib 0x00007fff7e562755 _dispatch_worker_thread3 + 101
11 libsystem_pthread.dylib 0x00007fff7e8b2169 _pthread_wqthread + 1387
12 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 5:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b220e _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 6:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff7e6ec702 write + 10
1 com.torusknot.SourceTreeNotMAS 0x000000010bfc5f4a 0x10bce7000 + 3010378
2 com.torusknot.SourceTreeNotMAS 0x000000010bfd0b40 0x10bce7000 + 3054400
3 com.torusknot.SourceTreeNotMAS 0x000000010bfd09db 0x10bce7000 + 3054043
4 com.torusknot.SourceTreeNotMAS 0x000000010bfd0704 0x10bce7000 + 3053316
5 com.apple.AppKit 0x00007fff54119aa8 uncaughtErrorProc + 157
6 com.apple.CoreFoundation 0x00007fff56881163 __handleUncaughtException + 771
7 libobjc.A.dylib 0x00007fff7d982e9d _objc_terminate() + 91
8 libc++abi.dylib 0x00007fff7c55c7c9 std::__terminate(void (*)()) + 8
9 libc++abi.dylib 0x00007fff7c55c843 std::terminate() + 51
10 libdispatch.dylib 0x00007fff7e560dcc _dispatch_client_callout + 28
11 libdispatch.dylib 0x00007fff7e56dcc5 _dispatch_queue_override_invoke + 880
12 libdispatch.dylib 0x00007fff7e5629a9 _dispatch_root_queue_drain + 515
13 libdispatch.dylib 0x00007fff7e562755 _dispatch_worker_thread3 + 101
14 libsystem_pthread.dylib 0x00007fff7e8b2169 _pthread_wqthread + 1387
15 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 7:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b220e _pthread_wqthread + 1552
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 8:: Dispatch queue: com.apple.root.default-qos
0 libsystem_kernel.dylib 0x00007fff7e6ec702 write + 10
1 com.torusknot.SourceTreeNotMAS 0x000000010bfc5f4a 0x10bce7000 + 3010378
2 com.torusknot.SourceTreeNotMAS 0x000000010bfd07a2 0x10bce7000 + 3053474
3 com.torusknot.SourceTreeNotMAS 0x000000010bfd0704 0x10bce7000 + 3053316
4 com.apple.AppKit 0x00007fff54119aa8 uncaughtErrorProc + 157
5 com.apple.CoreFoundation 0x00007fff56881163 __handleUncaughtException + 771
6 libobjc.A.dylib 0x00007fff7d982e9d _objc_terminate() + 91
7 libc++abi.dylib 0x00007fff7c55c7c9 std::__terminate(void (*)()) + 8
8 libc++abi.dylib 0x00007fff7c55c843 std::terminate() + 51
9 libdispatch.dylib 0x00007fff7e560dcc _dispatch_client_callout + 28
10 libdispatch.dylib 0x00007fff7e56dcc5 _dispatch_queue_override_invoke + 880
11 libdispatch.dylib 0x00007fff7e5629a9 _dispatch_root_queue_drain + 515
12 libdispatch.dylib 0x00007fff7e562755 _dispatch_worker_thread3 + 101
13 libsystem_pthread.dylib 0x00007fff7e8b2169 _pthread_wqthread + 1387
14 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 9:
0 libsystem_kernel.dylib 0x00007fff7e6eb292 __workq_kernreturn + 10
1 libsystem_pthread.dylib 0x00007fff7e8b2009 _pthread_wqthread + 1035
2 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 10:: Dispatch queue: com.apple.libdispatch-manager
0 libsystem_platform.dylib 0x00007fff7e8abf21 _platform_memmove$VARIANT$Haswell + 1
1 libdispatch.dylib 0x00007fff7e57e838 _dispatch_event_loop_merge + 97
2 libdispatch.dylib 0x00007fff7e579787 _dispatch_kevent_worker_thread + 453
3 libsystem_pthread.dylib 0x00007fff7e8b1ff6 _pthread_wqthread + 1016
4 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 11:: Dispatch queue: com.twitter.crashlytics.mac.exception
0 libsystem_kernel.dylib 0x00007fff7e6e120a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7e6e0724 mach_msg + 60
2 libsystem_kernel.dylib 0x00007fff7e6dd5f1 thread_resume + 74
3 com.torusknot.SourceTreeNotMAS 0x000000010bfd29cc 0x10bce7000 + 3062220
4 com.torusknot.SourceTreeNotMAS 0x000000010bfc2639 0x10bce7000 + 2995769
5 com.torusknot.SourceTreeNotMAS 0x000000010bfd11eb 0x10bce7000 + 3056107
6 libdispatch.dylib 0x00007fff7e560db8 _dispatch_client_callout + 8
7 libdispatch.dylib 0x00007fff7e5741e1 _dispatch_queue_barrier_sync_invoke_and_complete + 60
8 com.torusknot.SourceTreeNotMAS 0x000000010bfd0bae 0x10bce7000 + 3054510
9 com.torusknot.SourceTreeNotMAS 0x000000010bfd09db 0x10bce7000 + 3054043
10 com.torusknot.SourceTreeNotMAS 0x000000010bfd0704 0x10bce7000 + 3053316
11 com.apple.AppKit 0x00007fff54119aa8 uncaughtErrorProc + 157
12 com.apple.CoreFoundation 0x00007fff56881163 __handleUncaughtException + 771
13 libobjc.A.dylib 0x00007fff7d982e9d _objc_terminate() + 91
14 com.torusknot.SourceTreeNotMAS 0x000000010bfd0479 0x10bce7000 + 3052665
15 libc++abi.dylib 0x00007fff7c55c7c9 std::__terminate(void (*)()) + 8
16 libc++abi.dylib 0x00007fff7c55c843 std::terminate() + 51
17 libdispatch.dylib 0x00007fff7e560dcc _dispatch_client_callout + 28
18 libdispatch.dylib 0x00007fff7e56dcc5 _dispatch_queue_override_invoke + 880
19 libdispatch.dylib 0x00007fff7e5629a9 _dispatch_root_queue_drain + 515
20 libdispatch.dylib 0x00007fff7e562755 _dispatch_worker_thread3 + 101
21 libsystem_pthread.dylib 0x00007fff7e8b2169 _pthread_wqthread + 1387
22 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 12:
0 libsystem_pthread.dylib 0x00007fff7e8b1bdc start_wqthread + 0
1 ??? 0x0000000000000030 0 + 48

Thread 13:: Dispatch queue: com.apple.network.connections
0 libboringssl.dylib 0x00007fff7c44a76b x509_verify_param_zero + 47
1 libboringssl.dylib 0x00007fff7c44a80a X509_VERIFY_PARAM_free + 22
2 libboringssl.dylib 0x00007fff7c49598d SSL_free + 27
3 libboringssl.dylib 0x00007fff7c415522 boringssl_session_destroy + 181
4 libboringssl.dylib 0x00007fff7c41522e boringssl_context_release_reference + 238
5 libboringssl.dylib 0x00007fff7c42ac61 nw_protocol_boringssl_release_reference + 230
6 libboringssl.dylib 0x00007fff7c4282d6 nw_protocol_boringssl_remove_input_handler + 528
7 com.apple.CFNetwork 0x00007fff558a92f4 ConnectionProtocolRemoveInputHandler(nw_protocol*, nw_protocol*, bool) + 133
8 libnetwork.dylib 0x00007fff7d776c6d nw_endpoint_flow_failed + 429
9 libnetwork.dylib 0x00007fff7d7837e9 __nw_endpoint_flow_protocol_disconnected_block_invoke + 41
10 libdispatch.dylib 0x00007fff7e5685fa _dispatch_call_block_and_release + 12
11 libdispatch.dylib 0x00007fff7e560db8 _dispatch_client_callout + 8
12 libdispatch.dylib 0x00007fff7e575217 _dispatch_queue_serial_drain + 635
13 libdispatch.dylib 0x00007fff7e568166 _dispatch_queue_invoke + 373
14 libdispatch.dylib 0x00007fff7e575f0d _dispatch_root_queue_drain_deferred_wlh + 332
15 libdispatch.dylib 0x00007fff7e579d21 _dispatch_workloop_worker_thread + 880
16 libsystem_pthread.dylib 0x00007fff7e8b1fd2 _pthread_wqthread + 980
17 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 14:: Dispatch queue: com.apple.network.boringssl.metrics_queue
0 libsystem_kernel.dylib 0x00007fff7e6e120a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7e6e0724 mach_msg + 60
2 libdispatch.dylib 0x00007fff7e57bac2 _dispatch_mach_send_and_wait_for_reply + 756
3 libdispatch.dylib 0x00007fff7e57bfad dispatch_mach_send_with_result_and_wait_for_reply + 53
4 libxpc.dylib 0x00007fff7e8eede8 xpc_connection_send_message_with_reply_sync + 164
5 com.apple.security 0x00007fff625b797b securityd_message_with_reply_sync + 163
6 com.apple.security 0x00007fff625b7c45 securityd_send_sync_and_do + 68
7 com.apple.security 0x00007fff6261a777 SecTrustReportTLSAnalytics + 302
8 libboringssl.dylib 0x00007fff7c464cfe __boringssl_metrics_log_metric_block_invoke + 72
9 libdispatch.dylib 0x00007fff7e5685fa _dispatch_call_block_and_release + 12
10 libdispatch.dylib 0x00007fff7e560db8 _dispatch_client_callout + 8
11 libdispatch.dylib 0x00007fff7e575217 _dispatch_queue_serial_drain + 635
12 libdispatch.dylib 0x00007fff7e568166 _dispatch_queue_invoke + 373
13 libdispatch.dylib 0x00007fff7e575f0d _dispatch_root_queue_drain_deferred_wlh + 332
14 libdispatch.dylib 0x00007fff7e579d21 _dispatch_workloop_worker_thread + 880
15 libsystem_pthread.dylib 0x00007fff7e8b1fd2 _pthread_wqthread + 980
16 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 15:: Dispatch queue: com.apple.root.default-qos
0 dyld 0x000000011395797d ImageLoaderMachO::findClosestSymbol(mach_header const*, void const*, void const**) + 379
1 dyld 0x000000011394e333 dladdr + 133
2 libdyld.dylib 0x00007fff7e59bcaf dladdr + 103
3 libsystem_c.dylib 0x00007fff7e5eafdb backtrace_symbols + 107
4 com.apple.Foundation 0x00007fff58911c3d -[_NSCallStackArray descriptionWithLocale:indent:] + 112
5 com.apple.CoreFoundation 0x00007fff56881111 __handleUncaughtException + 689
6 libobjc.A.dylib 0x00007fff7d982e9d _objc_terminate() + 91
7 libc++abi.dylib 0x00007fff7c55c7c9 std::__terminate(void (*)()) + 8
8 libc++abi.dylib 0x00007fff7c55c843 std::terminate() + 51
9 libdispatch.dylib 0x00007fff7e560dcc _dispatch_client_callout + 28
10 libdispatch.dylib 0x00007fff7e56dcc5 _dispatch_queue_override_invoke + 880
11 libdispatch.dylib 0x00007fff7e5629a9 _dispatch_root_queue_drain + 515
12 libdispatch.dylib 0x00007fff7e562755 _dispatch_worker_thread3 + 101
13 libsystem_pthread.dylib 0x00007fff7e8b2169 _pthread_wqthread + 1387
14 libsystem_pthread.dylib 0x00007fff7e8b1be9 start_wqthread + 13

Thread 16:
0 libsystem_pthread.dylib 0x00007fff7e8b1bdc start_wqthread + 0
1 ??? 0x000000017ad70082 0 + 6355878018

Thread 17:: com.twitter.crashlytics.mac.MachExceptionServer
0 libsystem_kernel.dylib 0x00007fff7e6e120a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7e6e0724 mach_msg + 60
2 com.torusknot.SourceTreeNotMAS 0x000000010bfbd936 0x10bce7000 + 2976054
3 libsystem_pthread.dylib 0x00007fff7e8b2661 _pthread_body + 340
4 libsystem_pthread.dylib 0x00007fff7e8b250d _pthread_start + 377
5 libsystem_pthread.dylib 0x00007fff7e8b1bf9 thread_start + 13

Thread 18:: com.apple.NSEventThread
0 libsystem_kernel.dylib 0x00007fff7e6e120a mach_msg_trap + 10
1 libsystem_kernel.dylib 0x00007fff7e6e0724 mach_msg + 60
2 com.apple.CoreFoundation 0x00007fff5676a785 __CFRunLoopServiceMachPort + 341
3 com.apple.CoreFoundation 0x00007fff56769ad7 __CFRunLoopRun + 1783
4 com.apple.CoreFoundation 0x00007fff56769153 CFRunLoopRunSpecific + 483
5 com.apple.AppKit 0x00007fff53e41fc4 _NSEventThread + 184
6 libsystem_pthread.dylib 0x00007fff7e8b2661 _pthread_body + 340
7 libsystem_pthread.dylib 0x00007fff7e8b250d _pthread_start + 377
8 libsystem_pthread.dylib 0x00007fff7e8b1bf9 thread_start + 13

Thread 19:
0 libsystem_pthread.dylib 0x00007fff7e8b1bdc start_wqthread + 0

Thread 4 crashed with X86 Thread State (64-bit):
 rax: 0x0000000000000000 rbx: 0x0000700005f74000 rcx: 0x0000700005f73c98 rdx: 0x0000000000000000
 rdi: 0x0000000000003403 rsi: 0x0000000000000006 rbp: 0x0000700005f73cd0 rsp: 0x0000700005f73c98
 r8: 0x0000000000000000 r9: 0x0000000000989680 r10: 0x0000000000000000 r11: 0x0000000000000206
 r12: 0x0000000000003403 r13: 0x00007fff7d982e42 r14: 0x0000000000000006 r15: 0x000000000000002d
 rip: 0x00007fff7e6eab6e rfl: 0x0000000000000206 cr2: 0x000000013020c000
 
Logical CPU: 0
Error Code: 0x02000148
Trap Number: 133


```


Answers:
author: Manju
body: We are investigating the crash with <https://jira.atlassian.com/browse/SRCTREE-5762>. There seems to be an issue loading and reading repo avatars. We will soon have an update on this. In the meanwhile, feel free to remove the ImageCache folder under \~/Library/Application Support/SourceTree/

Thanks for your patience!

Manjunath  
Sourcetree Mac Developer


Tags: mac