Sourcetree crashing on startup (2.6.4c) - MAC
Asked by maicololiveira:

My Sourcetree is crashing on startup. I've tried to remove the app with all personal data and I did a fresh new install using the last version 2.7.4 for MAC.

After connect with my Bitbucket account, everything is fine.

So, after try to clone some repo, the sourcetree crases and don't open anymore. Open, but crashses on startup.

Below an example of the Crash report.

Process: Sourcetree \[10839\]  
Path: /Applications/Sourcetree.app/Contents/MacOS/Sourcetree  
Identifier: com.torusknot.SourceTreeNotMAS  
Version: 2.7.4 (175)  
Code Type: X86-64 (Native)  
Parent Process: ??? \[1\]  
Responsible: Sourcetree \[10839\]  
User ID: 1281070061

Date/Time: 2018-06-05 20:10:15.900 -0300  
OS Version: Mac OS X 10.12.6 (16G1408)  
Report Version: 12  
Anonymous UUID: B268055C-1F63-8C17-347A-F97D67271D66

<br />

Time Awake Since Boot: 2900 seconds

System Integrity Protection: enabled

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

Exception Type: EXC_BAD_INSTRUCTION (SIGILL)  
Exception Codes: 0x0000000000000001, 0x0000000000000000  
Exception Note: EXC_CORPSE_NOTIFY

Termination Signal: Illegal instruction: 4  
Termination Reason: Namespace SIGNAL, Code 0x4  
Terminating Process: exc handler \[0\]

Application Specific Backtrace 1:  
0 CoreFoundation 0x00007fffbbc462cb __exceptionPreprocess + 171  
1 libobjc.A.dylib 0x00007fffd0a6448d objc_exception_throw + 48  
2 CoreFoundation 0x00007fffbbcc4c3d +\[NSException raise:format:\] + 205  
3 Foundation 0x00007fffbd601800 -\[NSString(NSPathUtilities) stringByAppendingPathExtension:\] + 122  
4 Sourcetree 0x00000001083f98d9 Sourcetree + 641241  
5 Sourcetree 0x00000001083f95dc Sourcetree + 640476  
6 libdispatch.dylib 0x00007fffd131d524 _dispatch_call_block_and_release + 12  
7 libdispatch.dylib 0x00007fffd13148fc _dispatch_client_callout + 8  
8 libdispatch.dylib 0x00007fffd1323196 _dispatch_queue_override_invoke + 743  
9 libdispatch.dylib 0x00007fffd13166b5 _dispatch_root_queue_drain + 476  
10 libdispatch.dylib 0x00007fffd131648c _dispatch_worker_thread3 + 99  
11 libsystem_pthread.dylib 0x00007fffd15635a2 _pthread_wqthread + 1299  
12 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 0:: Dispatch queue: com.apple.main-thread  
0 libsystem_kernel.dylib 0x00007fffd147134a mach_msg_trap + 10  
1 libsystem_kernel.dylib 0x00007fffd1470797 mach_msg + 55  
2 com.apple.CoreFoundation 0x00007fffbbbbd434 __CFRunLoopServiceMachPort + 212  
3 com.apple.CoreFoundation 0x00007fffbbbbc8c1 __CFRunLoopRun + 1361  
4 com.apple.CoreFoundation 0x00007fffbbbbc114 CFRunLoopRunSpecific + 420  
5 com.apple.HIToolbox 0x00007fffbb11cebc RunCurrentEventLoopInMode + 240  
6 com.apple.HIToolbox 0x00007fffbb11ccf1 ReceiveNextEventCommon + 432  
7 com.apple.HIToolbox 0x00007fffbb11cb26 _BlockUntilNextEventMatchingListInModeWithFilter + 71  
8 com.apple.AppKit 0x00007fffb96b3a54 _DPSNextEvent + 1120  
9 com.apple.AppKit 0x00007fffb9e2f7ee -\[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:\] + 2796  
10 com.apple.AppKit 0x00007fffb96a83db -\[NSApplication run\] + 926  
11 com.apple.AppKit 0x00007fffb9672e0e NSApplicationMain + 1237  
12 libdyld.dylib 0x00007fffd134a235 start + 1

Thread 1:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 2:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 3:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 4:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 5:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 6:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 7:: com.twitter.crashlytics.mac.MachExceptionServer  
0 libsystem_kernel.dylib 0x00007fffd147a7e6 write + 10  
1 com.torusknot.SourceTreeNotMAS 0x000000010863cb7a 0x10835d000 + 3013498  
2 com.torusknot.SourceTreeNotMAS 0x00000001086345b4 0x10835d000 + 2979252  
3 libsystem_pthread.dylib 0x00007fffd156393b _pthread_body + 180  
4 libsystem_pthread.dylib 0x00007fffd1563887 _pthread_start + 286  
5 libsystem_pthread.dylib 0x00007fffd156308d thread_start + 13

Thread 8:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 9:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 10:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd156348e _pthread_wqthread + 1023  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 11:: com.apple.NSURLConnectionLoader  
0 libsystem_kernel.dylib 0x00007fffd147134a mach_msg_trap + 10  
1 libsystem_kernel.dylib 0x00007fffd1470797 mach_msg + 55  
2 com.apple.CoreFoundation 0x00007fffbbbbd434 __CFRunLoopServiceMachPort + 212  
3 com.apple.CoreFoundation 0x00007fffbbbbc8c1 __CFRunLoopRun + 1361  
4 com.apple.CoreFoundation 0x00007fffbbbbc114 CFRunLoopRunSpecific + 420  
5 com.apple.CFNetwork 0x00007fffbacf8214 +\[NSURLConnection(Loader) _resourceLoadLoop:\] + 313  
6 com.apple.Foundation 0x00007fffbd5df8ad __NSThread__start__ + 1243  
7 libsystem_pthread.dylib 0x00007fffd156393b _pthread_body + 180  
8 libsystem_pthread.dylib 0x00007fffd1563887 _pthread_start + 286  
9 libsystem_pthread.dylib 0x00007fffd156308d thread_start + 13

Thread 12:: com.apple.NSEventThread  
0 libsystem_kernel.dylib 0x00007fffd147134a mach_msg_trap + 10  
1 libsystem_kernel.dylib 0x00007fffd1470797 mach_msg + 55  
2 com.apple.CoreFoundation 0x00007fffbbbbd434 __CFRunLoopServiceMachPort + 212  
3 com.apple.CoreFoundation 0x00007fffbbbbc8c1 __CFRunLoopRun + 1361  
4 com.apple.CoreFoundation 0x00007fffbbbbc114 CFRunLoopRunSpecific + 420  
5 com.apple.AppKit 0x00007fffb9800f02 _NSEventThread + 205  
6 libsystem_pthread.dylib 0x00007fffd156393b _pthread_body + 180  
7 libsystem_pthread.dylib 0x00007fffd1563887 _pthread_start + 286  
8 libsystem_pthread.dylib 0x00007fffd156308d thread_start + 13

Thread 13:  
0 libsystem_kernel.dylib 0x00007fffd1478f46 __semwait_signal + 10  
1 libsystem_c.dylib 0x00007fffd13ffb72 nanosleep + 199  
2 libc++.1.dylib 0x00007fffcff2365b std::__1::this_thread::sleep_for(std::__1::chrono::duration\<long long, std::__1::ratio\<1l, 1000000000l\> \> const\&) + 80  
3 com.apple.JavaScriptCore 0x00007fffbebc8f43 bmalloc::Heap::scavenge(std::__1::unique_lock\<bmalloc::StaticMutex\>\&, std::__1::chrono::duration\<long long, std::__1::ratio\<1l, 1000l\> \>) + 275  
4 com.apple.JavaScriptCore 0x00007fffbebc8cf6 bmalloc::Heap::concurrentScavenge() + 102  
5 com.apple.JavaScriptCore 0x00007fffbebca381 bmalloc::AsyncTask\<bmalloc::Heap, void (bmalloc::Heap::\*)()\>::threadRunLoop() + 97  
6 com.apple.JavaScriptCore 0x00007fffbebca28d bmalloc::AsyncTask\<bmalloc::Heap, void (bmalloc::Heap::\*)()\>::threadEntryPoint(bmalloc::AsyncTask\<bmalloc::Heap, void (bmalloc::Heap::\*)()\>\*) + 29  
7 com.apple.JavaScriptCore 0x00007fffbebca53d void\* std::__1::__thread_proxy\<std::__1::tuple\<void (\*)(bmalloc::AsyncTask\<bmalloc::Heap, void (bmalloc::Heap::\*)()\>\*), bmalloc::AsyncTask\<bmalloc::Heap, void (bmalloc::Heap::\*)()\>\*\> \>(void\*) + 93  
8 libsystem_pthread.dylib 0x00007fffd156393b _pthread_body + 180  
9 libsystem_pthread.dylib 0x00007fffd1563887 _pthread_start + 286  
10 libsystem_pthread.dylib 0x00007fffd156308d thread_start + 13

Thread 14 Crashed:: Dispatch queue: com.apple.root.default-qos  
0 com.apple.AppKit 0x00007fffb9a1244e -\[NSApplication _crashOnException:\] + 109  
1 com.apple.AppKit 0x00007fffb9a12382 -\[NSApplication reportException:\] + 887  
2 com.torusknot.SourceTreeNotMAS 0x000000010864734d 0x10835d000 + 3056461  
3 com.apple.AppKit 0x00007fffb9ae8457 uncaughtErrorProc + 150  
4 com.apple.CoreFoundation 0x00007fffbbcc4ffa __handleUncaughtException + 746  
5 libobjc.A.dylib 0x00007fffd0a666f5 _objc_terminate() + 94  
6 com.torusknot.SourceTreeNotMAS 0x00000001086470a9 0x10835d000 + 3055785  
7 libc++abi.dylib 0x00007fffcff54d49 std::__terminate(void (\*)()) + 8  
8 libc++abi.dylib 0x00007fffcff54dc3 std::terminate() + 51  
9 libdispatch.dylib 0x00007fffd1314910 _dispatch_client_callout + 28  
10 libdispatch.dylib 0x00007fffd1323196 _dispatch_queue_override_invoke + 743  
11 libdispatch.dylib 0x00007fffd13166b5 _dispatch_root_queue_drain + 476  
12 libdispatch.dylib 0x00007fffd131648c _dispatch_worker_thread3 + 99  
13 libsystem_pthread.dylib 0x00007fffd15635a2 _pthread_wqthread + 1299  
14 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 15:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd156348e _pthread_wqthread + 1023  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 16:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 17:: Dispatch queue: com.apple.root.utility-qos  
0 libsystem_kernel.dylib 0x00007fffd147a246 read + 10  
1 com.apple.Foundation 0x00007fffbd5c3238 _NSReadFromFileDescriptorWithProgress + 267  
2 com.apple.Foundation 0x00007fffbd6716fc -\[NSConcreteFileHandle readDataOfLength:\] + 498  
3 com.torusknot.SourceTreeNotMAS 0x00000001083a7bd2 0x10835d000 + 306130  
4 com.torusknot.SourceTreeNotMAS 0x00000001083a95c5 0x10835d000 + 312773  
5 com.torusknot.SourceTreeNotMAS 0x00000001083a7a67 0x10835d000 + 305767  
6 com.torusknot.SourceTreeNotMAS 0x00000001084c6810 0x10835d000 + 1480720  
7 com.torusknot.SourceTreeNotMAS 0x000000010839cf93 0x10835d000 + 262035  
8 com.torusknot.SourceTreeNotMAS 0x000000010839d6a6 0x10835d000 + 263846  
9 libdispatch.dylib 0x00007fffd131d524 _dispatch_call_block_and_release + 12  
10 libdispatch.dylib 0x00007fffd13148fc _dispatch_client_callout + 8  
11 libdispatch.dylib 0x00007fffd131686e _dispatch_root_queue_drain + 917  
12 libdispatch.dylib 0x00007fffd131648c _dispatch_worker_thread3 + 99  
13 libsystem_pthread.dylib 0x00007fffd15635a2 _pthread_wqthread + 1299  
14 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 18:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 19:  
0 libsystem_kernel.dylib 0x00007fffd147944e __workq_kernreturn + 10  
1 libsystem_pthread.dylib 0x00007fffd1563621 _pthread_wqthread + 1426  
2 libsystem_pthread.dylib 0x00007fffd156307d start_wqthread + 13

Thread 14 crashed with X86 Thread State (64-bit):  
rax: 0x00007fb1088c6200 rbx: 0x000060000024c6f0 rcx: 0x0000000000000001 rdx: 0x0000000000000000  
rdi: 0x0000600000c6df00 rsi: 0x0000000000000497 rbp: 0x0000700003885b00 rsp: 0x0000700003885af0  
r8: 0x0000000008000100 r9: 0x0000000000000000 r10: 0x00007fffd6bed190 r11: 0x00000000000317ff  
r12: 0x0000608000112f30 r13: 0x0000608000112f30 r14: 0x00007fffd0a56040 r15: 0x0000700003885b10  
rip: 0x00007fffb9a1244e rfl: 0x0000000000010206 cr2: 0x0000000110417000  

Logical CPU: 2  
Error Code: 0x00000000  
Trap Number: 6


Answers:
author: Thomas Schlegel
body: [@maicololiveira](/t5/user/viewprofilepage/user-id/1474023),

have a look here:

<https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-crashes-on-start-after-adding-a-new-repository/qaq-p/814532>

The Atlassian Team is investigating.

comments: author: maicololiveira
body: Thank you Thomas. Version 2.7.5 launched today seems to have fixed it.

Best Regards.

Maicol


author: bioagbob
body: See <https://community.atlassian.com/t5/Sourcetree-questions/Sourcetree-crashes-on-startup-on-MAC/qaq-p/813621#U813696>