sourcetree 2.7 on macos crashes my repo. what can I do ?
Asked by olivier robin:

Hi,

on latest macos, sourcetree update with 2.7 version, last day, crahes my repo.

now I cannot open it anymore.

and I have some uncommited changes, so I cannot afford to erase the rpo, in order to clone it again.

what can I do ?

here is the crash log

thanks for any idea.

Olivier

Process: Sourcetree \[2946\]  
Path: /Applications/SourceTree.app/Contents/MacOS/Sourcetree  
Identifier: com.torusknot.SourceTreeNotMAS  
Version: 2.7 (150)  
Code Type: X86-64 (Native)  
Parent Process: ??? \[1\]  
Responsible: Sourcetree \[2946\]  
User ID: 501

Date/Time: 2018-01-15 14:28:46.548 +0100  
OS Version: Mac OS X 10.13.2 (17C205)  
Report Version: 12  
Anonymous UUID: 706155C5-DBD5-F784-8410-0EDA97C4B492

<br />

Time Awake Since Boot: 1700 seconds

System Integrity Protection: enabled

Crashed Thread: 0 Dispatch queue: com.apple.main-thread

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 Information:  
Crashing on exception: -\[NSAlert runModal\] may not be invoked inside of transaction begin/commit pair, or inside of transaction commit (usually this means it was invoked inside of a view's -drawRect: method.)

Application Specific Backtrace 1:  
0 CoreFoundation 0x00007fff2957300b __exceptionPreprocess + 171  
1 libobjc.A.dylib 0x00007fff50200c76 objc_exception_throw + 48  
2 CoreFoundation 0x00007fff29604c9d +\[NSException raise:format:\] + 205  
3 AppKit 0x00007fff273950fe _NSRunModal + 484  
4 AppKit 0x00007fff26d749bd -\[NSAlert runModal\] + 240  
5 Sourcetree 0x000000010d5be4bb Sourcetree + 500923  
6 Sourcetree 0x000000010d5be553 Sourcetree + 501075  
7 libdispatch.dylib 0x00007fff50dbe591 _dispatch_call_block_and_release + 12  
8 libdispatch.dylib 0x00007fff50db6d50 _dispatch_client_callout + 8  
9 libdispatch.dylib 0x00007fff50dc232d _dispatch_main_queue_callback_4CF + 1148  
10 CoreFoundation 0x00007fff2952b7a9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9  
11 CoreFoundation 0x00007fff294ed9ca __CFRunLoopRun + 2586  
12 CoreFoundation 0x00007fff294ecd23 CFRunLoopRunSpecific + 483  
13 Foundation 0x00007fff2b667630 -\[NSConcreteTask waitUntilExit\] + 220  
14 Sourcetree 0x000000010d588375 Sourcetree + 279413  
15 Sourcetree 0x000000010d696104 Sourcetree + 1384708  
16 Sourcetree 0x000000010d69992b Sourcetree + 1399083  
17 Sourcetree 0x000000010d77443d Sourcetree + 2294845  
18 Sourcetree 0x000000010d650ac9 Sourcetree + 1100489  
19 CoreFoundation 0x00007fff29502a3c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12  
20 CoreFoundation 0x00007fff2950292a _CFXRegistrationPost + 442  
21 CoreFoundation 0x00007fff29502672 ___CFXNotificationPost_block_invoke + 50  
22 CoreFoundation 0x00007fff294c0450 -\[_CFXNotificationRegistrar find:object:observer:enumerator:\] + 1664  
23 CoreFoundation 0x00007fff294bf583 _CFXNotificationPost + 595  
24 Foundation 0x00007fff2b5b23c7 -\[NSNotificationCenter postNotificationName:object:userInfo:\] + 66  
25 AppKit 0x00007fff26bf2d7f -\[NSWindow becomeKeyWindow\] + 1488  
26 AppKit 0x00007fff26bf1fd9 -\[NSWindow _changeKeyAndMainLimitedOK:\] + 878  
27 AppKit 0x00007fff26c9f676 -\[NSWindow _makeKeyRegardlessOfVisibility\] + 108  
28 AppKit 0x00007fff26bf5018 NSPerformVisuallyAtomicChange + 146  
29 AppKit 0x00007fff26c9f5ad -\[NSWindow makeKeyAndOrderFront:\] + 90  
30 QuickLookUI 0x00007fff3451fb31 -\[QLSeamlessDocumentOpener showWindow:contentFrame:withBlock:\] + 107  
31 AppKit 0x00007fff26c9e7d6 -\[NSWindowController showWindow:\] + 718  
32 Sourcetree 0x000000010d653210 Sourcetree + 1110544  
33 Sourcetree 0x000000010d684ada Sourcetree + 1313498  
34 Sourcetree 0x000000010d56e52d Sourcetree + 173357  
35 Sourcetree 0x000000010d56e6b2 Sourcetree + 173746  
36 Sourcetree 0x000000010d56e84b Sourcetree + 174155  
37 Sourcetree 0x000000010d56ea23 Sourcetree + 174627  
38 Sourcetree 0x000000010d741ad5 Sourcetree + 2087637  
39 Sourcetree 0x000000010d741b9f Sourcetree + 2087839  
40 AppKit 0x00007fff2726775a -\[NSApplication(NSResponder) sendAction:to:from:\] + 312  
41 AppKit 0x00007fff26d0d933 -\[NSControl sendAction:to:\] + 86  
42 AppKit 0x00007fff26d813a9 -\[NSTableView _sendAction:to:row:column:\] + 121  
43 AppKit 0x00007fff26d7f7e8 -\[NSTableView mouseDown:\] + 7186  
44 AppKit 0x00007fff26d7d9c0 -\[NSOutlineView mouseDown:\] + 73  
45 AppKit 0x00007fff27406959 -\[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:\] + 5891  
46 AppKit 0x00007fff274035b0 -\[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:\] + 2359  
47 AppKit 0x00007fff2740285c -\[NSWindow(NSEventRouting) sendEvent:\] + 497  
48 AppKit 0x00007fff27263617 -\[NSApplication(NSEvent) sendEvent:\] + 307  
49 AppKit 0x00007fff26ac4d9d -\[NSApplication run\] + 812  
50 AppKit 0x00007fff26a93f1a NSApplicationMain + 804  
51 libdyld.dylib 0x00007fff50df0115 start + 1  
52 ??? 0x0000000000000001 0x0 + 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread  
0 com.apple.AppKit 0x00007fff26dfa794 -\[NSApplication _crashOnException:\] + 109  
1 com.apple.AppKit 0x00007fff26dfa67c -\[NSApplication reportException:\] + 953  
2 com.torusknot.SourceTreeNotMAS 0x000000010d80da4d 0x10d544000 + 2923085  
3 com.apple.AppKit 0x00007fff26ee4de0 uncaughtErrorProc + 157  
4 com.apple.CoreFoundation 0x00007fff29605083 __handleUncaughtException + 771  
5 libobjc.A.dylib 0x00007fff50202e9d _objc_terminate() + 91  
6 com.torusknot.SourceTreeNotMAS 0x000000010d80d7a9 0x10d544000 + 2922409  
7 libc++abi.dylib 0x00007fff4ee937c9 std::__terminate(void (\*)()) + 8  
8 libc++abi.dylib 0x00007fff4ee93843 std::terminate() + 51  
9 libdispatch.dylib 0x00007fff50db6d64 _dispatch_client_callout + 28  
10 libdispatch.dylib 0x00007fff50dc232d _dispatch_main_queue_callback_4CF + 1148  
11 com.apple.CoreFoundation 0x00007fff2952b7a9 __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9  
12 com.apple.CoreFoundation 0x00007fff294ed9ca __CFRunLoopRun + 2586  
13 com.apple.CoreFoundation 0x00007fff294ecd23 CFRunLoopRunSpecific + 483  
14 com.apple.Foundation 0x00007fff2b667630 -\[NSConcreteTask waitUntilExit\] + 220  
15 com.torusknot.SourceTreeNotMAS 0x000000010d588375 0x10d544000 + 279413  
16 com.torusknot.SourceTreeNotMAS 0x000000010d696104 0x10d544000 + 1384708  
17 com.torusknot.SourceTreeNotMAS 0x000000010d69992b 0x10d544000 + 1399083  
18 com.torusknot.SourceTreeNotMAS 0x000000010d77443d 0x10d544000 + 2294845  
19 com.torusknot.SourceTreeNotMAS 0x000000010d650ac9 0x10d544000 + 1100489  
20 com.apple.CoreFoundation 0x00007fff29502a3c __CFNOTIFICATIONCENTER_IS_CALLING_OUT_TO_AN_OBSERVER__ + 12  
21 com.apple.CoreFoundation 0x00007fff2950292a _CFXRegistrationPost + 442  
22 com.apple.CoreFoundation 0x00007fff29502672 ___CFXNotificationPost_block_invoke + 50  
23 com.apple.CoreFoundation 0x00007fff294c0450 -\[_CFXNotificationRegistrar find:object:observer:enumerator:\] + 1664  
24 com.apple.CoreFoundation 0x00007fff294bf583 _CFXNotificationPost + 595  
25 com.apple.Foundation 0x00007fff2b5b23c7 -\[NSNotificationCenter postNotificationName:object:userInfo:\] + 66  
26 com.apple.AppKit 0x00007fff26bf2d7f -\[NSWindow becomeKeyWindow\] + 1488  
27 com.apple.AppKit 0x00007fff26bf1fd9 -\[NSWindow _changeKeyAndMainLimitedOK:\] + 878  
28 com.apple.AppKit 0x00007fff26c9f676 -\[NSWindow _makeKeyRegardlessOfVisibility\] + 108  
29 com.apple.AppKit 0x00007fff26bf5018 NSPerformVisuallyAtomicChange + 146  
30 com.apple.AppKit 0x00007fff26c9f5ad -\[NSWindow makeKeyAndOrderFront:\] + 90  
31 com.apple.QuickLookUIFramework 0x00007fff3451fb31 -\[QLSeamlessDocumentOpener showWindow:contentFrame:withBlock:\] + 107  
3.

...

<br />

0x7fff510a7000 - 0x7fff510acff7 libunwind.dylib (35.3) \<6D4FCD49-D2A9-3233-95C7-A7635CE265F2\> /usr/lib/system/libunwind.dylib  
0x7fff510ad000 - 0x7fff510d9ff7 libxpc.dylib (1205.30.29) \<F7E5F1BC-614B-39CB-B6CE-92A9C7B7EC0B\> /usr/lib/system/libxpc.dylib

External Modification Summary:  
Calls made by other processes targeting this process:  
task_for_pid: 0  
thread_create: 0  
thread_set_state: 0  
Calls made by this process:  
task_for_pid: 0  
thread_create: 0  
thread_set_state: 0  
Calls made by all processes on this machine:  
task_for_pid: 856  
thread_create: 0  
thread_set_state: 0

VM Region Summary:  
ReadOnly portion of Libraries: Total=436.7M resident=0K(0%) swapped_out_or_unallocated=436.7M(100%)  
Writable regions: Total=1.3G written=0K(0%) resident=0K(0%) swapped_out=0K(0%) unallocated=1.3G(100%)  

VIRTUAL REGION  
REGION TYPE SIZE COUNT (non-coalesced)  
=========== ======= =======  
Accelerate framework 384K 4  
Activity Tracing 256K 2  
CG backing stores 2888K 4  
CG image 2112K 31  
CoreAnimation 47.3M 80  
CoreGraphics 8K 2  
CoreImage 48K 9  
CoreUI image data 3060K 29  
CoreUI image file 304K 5  
Foundation 4K 2  
Image IO 3604K 19  
JS JIT generated code 8K 3  
JS JIT generated code (reserved) 1.0G 2 reserved VM address space (unallocated)  
Kernel Alloc Once 8K 2  
MALLOC 270.2M 68  
MALLOC guard page 112K 25  
Mach message 8K 2  
Memory Tag 242 12K 2  
Memory Tag 251 60K 3  
SQLite page cache 64K 2  
STACK GUARD 56.1M 21  
Stack 17.7M 25  
VM_ALLOCATE 700K 25  
WebKit Malloc 7200K 8  
__DATA 36.7M 312  
__FONT_DATA 4K 2  
__GLSLBUILTINS 2588K 2  
__LINKEDIT 190.6M 8  
__TEXT 246.1M 317  
__UNICODE 560K 2  
libnetwork 128K 2  
mapped file 63.2M 31  
shared memory 692K 14  
=========== ======= =======  
TOTAL 1.9G 1032  
TOTAL, minus reserved VM space 952.1M 1032

Model: MacBookPro11,4, BootROM MBP114.0177.B00, 4 processors, Intel Core i7, 2,2 GHz, 16 GB, SMC 2.29f24  
Graphics: Intel Iris Pro, Intel Iris Pro, Built-In  
Memory Module: BANK 0/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020  
Memory Module: BANK 1/DIMM0, 8 GB, DDR3, 1600 MHz, 0x80AD, 0x484D54343147533642465238412D50422020  
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0x152), Broadcom BCM43xx 1.0 (7.77.37.5.1a3)  
Bluetooth: Version 6.0.2f2, 3 services, 27 devices, 1 incoming serial ports  
Network Service: Wi-Fi, AirPort, en0  
Network Service: Apple USB Ethernet Adapter, Ethernet, en8  
Network Service: iPad 2, Ethernet, en6  
Network Service: iPad 5, Ethernet, en11  
Network Service: iPad 6, Ethernet, en4  
Serial ATA Device: APPLE SSD SM0256G, 251 GB  
USB Device: USB 3.0 Bus  
USB Device: USB3.0 Hub  
USB Device: USB3.0 Hub  
USB Device: Apple Internal Keyboard / Trackpad  
USB Device: Bluetooth USB Host Controller  
USB Device: USB2.0 Hub  
USB Device: iPad  
USB Device: iPad  
USB Device: iPad  
USB Device: USB2.0 Hub  
USB Device: Apple USB Ethernet Adapter  
Thunderbolt Bus: MacBook Pro, Apple Inc., 27.1


Answers:
author: bgannin
body: Please update to 2.7 (152) and let us know if the crash still occurs. If so, please file as a ticket at <https://jira.atlassian.com/browse/SRCTREE> and attach the actual crash log file from Console.app.

comments: author: olivier robin
body: sorry, I clone a new repo, and lose some code. I was able to redo my stuff almost quickly.

thanks for your feedback.

Olivier