App crashes, if you drag repo
Asked by Ankit:

OS: Mac OS Catalina

Sourcetree Version: 4.0 (229)

Here is the video of user interaction: [Video](https://drive.google.com/file/d/1RBo1QNnYO-fLXEcoo6IB6YCNLdX0yr3_/view?usp=sharing)

This happens 100% times.

Error Log snippets:

Application Specific Information:  
Crashing on exception: There are 2 items on the pasteboard, but 1 drag images. There must be 1 draggingItem per pasteboardItem.

Here is the complete error log:  

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

Date/Time: 2019-12-10 19:28:19.239 +0530  
OS Version: Mac OS X 10.15.1 (19B88)  
Report Version: 12  
Bridge OS Version: 3.0 (14Y906)  
Anonymous UUID: 70FB661D-35BE-ABCC-AF15-99B9B3A4EC60

Sleep/Wake UUID: 79269392-56D7-4163-94FE-2623D14E50ED

Time Awake Since Boot: 23000 seconds  
Time Since Wake: 1900 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 \[5059\]

Application Specific Information:  
Crashing on exception: There are 2 items on the pasteboard, but 1 drag images. There must be 1 draggingItem per pasteboardItem.

Application Specific Backtrace 1:  
0 CoreFoundation 0x00007fff2fc01f53 __exceptionPreprocess + 250  
1 libobjc.A.dylib 0x00007fff65b2e835 objc_exception_throw + 48  
2 CoreFoundation 0x00007fff2fc01da9 +\[NSException raise:format:\] + 189  
3 AppKit 0x00007fff2d0903bb -\[NSDraggingSession(NSInternal) _initWithPasteboard:image:offset:source:\] + 247  
4 AppKit 0x00007fff2d08fdee -\[NSCoreDragManager dragImage:fromWindow:at:offset:event:pasteboard:source:slideBack:\] + 1889  
5 AppKit 0x00007fff2d08f67d -\[NSWindow(NSDrag) dragImage:at:offset:event:pasteboard:source:slideBack:\] + 134  
6 AppKit 0x00007fff2d416ee1 -\[NSOutlineView dragImage:at:offset:event:pasteboard:source:slideBack:\] + 198  
7 AppKit 0x00007fff2d51748d -\[NSTableView _doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:startRow:\] + 656  
8 AppKit 0x00007fff2d517920 -\[NSTableView __doImageDragUsingRowsWithIndexes:event:pasteboard:source:slideBack:startRow:\] + 276  
9 AppKit 0x00007fff2d51862a -\[NSTableView _performClassicDragOfIndexes:hitRow:event:\] + 452  
10 AppKit 0x00007fff2d0ba7ae -\[NSTableView _performDragFromMouseDown:\] + 472  
11 AppKit 0x00007fff2d0b8c33 -\[NSTableView mouseDown:\] + 754  
12 AppKit 0x00007fff2d0b874e -\[NSOutlineView mouseDown:\] + 73  
13 AppKit 0x00007fff2cf5f5e9 -\[NSWindow(NSEventRouting) _handleMouseDownEvent:isDelayedEvent:\] + 4907  
14 AppKit 0x00007fff2cea2eb0 -\[NSWindow(NSEventRouting) _reallySendEvent:isDelayedEvent:\] + 2612  
15 AppKit 0x00007fff2cea223d -\[NSWindow(NSEventRouting) sendEvent:\] + 349  
16 AppKit 0x00007fff2cd6645c -\[NSApplication(NSEvent) sendEvent:\] + 352  
17 AppKit 0x00007fff2cd55da7 -\[NSApplication run\] + 707  
18 AppKit 0x00007fff2cd4795d NSApplicationMain + 777  
19 libdyld.dylib 0x00007fff66e912e5 start + 1  
20 ??? 0x0000000000000002 0x0 + 2

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread  
0 com.apple.AppKit 0x00007fff2d10a037 -\[NSApplication _crashOnException:\] + 106  
1 com.apple.AppKit 0x00007fff2d109f1d -\[NSApplication reportException:\] + 908  
2 com.apple.AppKit 0x00007fff2cd55e28 -\[NSApplication run\] + 836  
3 com.apple.AppKit 0x00007fff2cd4795d NSApplicationMain + 777  
4 libdyld.dylib 0x00007fff66e912e5 start + 1

Thread 1:: com.apple.NSEventThread  
0 libsystem_kernel.dylib 0x00007fff66fda166 mach_msg_trap + 10  
1 libsystem_kernel.dylib 0x00007fff66fda6cc mach_msg + 60  
2 com.apple.CoreFoundation 0x00007fff2fb5136b __CFRunLoopServiceMachPort + 322  
3 com.apple.CoreFoundation 0x00007fff2fb50907 __CFRunLoopRun + 1695  
4 com.apple.CoreFoundation 0x00007fff2fb4ffe3 CFRunLoopRunSpecific + 499  
5 com.apple.AppKit 0x00007fff2cd63dba _NSEventThread + 132  
6 libsystem_pthread.dylib 0x00007fff6709dd36 _pthread_start + 125  
7 libsystem_pthread.dylib 0x00007fff6709a58f thread_start + 15

Thread 2:  
0 libsystem_pthread.dylib 0x00007fff6709a56c start_wqthread + 0

Thread 3:  
0 libsystem_pthread.dylib 0x00007fff6709a56c start_wqthread + 0

Thread 0 crashed with X86 Thread State (64-bit):  
rax: 0x00007f97788a5800 rbx: 0x00006000037f61c0 rcx: 0x9b288df3dd040053 rdx: 0x0000000000000000  
rdi: 0x0000600003710120 rsi: 0x000000000000091c rbp: 0x00007ffee1bf0950 rsp: 0x00007ffee1bf0940  
r8: 0x000000000000011c r9: 0x00007f97788a611c r10: 0x000000000000011c r11: 0x0000000000000000  
r12: 0x00006000037f61c0 r13: 0x00007fff65b22040 r14: 0x00007fff65b22040 r15: 0x0000600000e9c000  
rip: 0x00007fff2d10a037 rfl: 0x0000000000010206 cr2: 0x0000700000eefd58  

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


Answers:
author: Gonchik Tsymzhitov
body: Hi!

That's damn so did you update and fix it?