kolinkrewinkel / Multiplex

Simultaneous editing for Xcode, inspired by Sublime Text.
MIT License
283 stars 10 forks source link

Crash while pasting #26

Closed kolinkrewinkel closed 8 years ago

kolinkrewinkel commented 8 years ago

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

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

Application Specific Information: ProductBuildVersion: 7B91b UNCAUGHT EXCEPTION (NSRangeException): *\ -[NSCFString rangeOfString:options:range:locale:]: Range {3118, 18446744073709551583} out of bounds; string length 3085 UserInfo: (null) Hints: None Backtrace: 0 0x00007fff935f0e1a exceptionPreprocess (in CoreFoundation) 1 0x0000000102146c7e DVTFailureHintExceptionPreprocessor (in DVTFoundation) 2 0x00007fff8c036dd4 objc_exception_throw (in libobjc.A.dylib) 3 0x00007fff9365765d +[NSException raise:format:](in CoreFoundation) 4 0x00007fff855d712a -[NSString rangeOfString:options:range:locale:](in Foundation) 5 0x00007fff855dc010 -[NSString rangeOfString:options:range:](in Foundation) 6 0x000000010e9aedc3 __53-[DVTSourceTextView(MPXEditorExtensions) insertText:]_block_invoke_2 (in Multiplex) 7 0x00007fff856bd37e -[NSString enumerateSubstringsInRange:options:usingBlock:](in Foundation) 8 0x00007fff857b8bb0 -[NSString enumerateLinesUsingBlock:](in Foundation) 9 0x000000010e9ae4d7 53-[DVTSourceTextView(MPXEditorExtensions) insertText:]_block_invoke129 (in Multiplex) 10 0x000000010e9a57f7 -[MPXSelectionManager mapSelectionsWithMovementDirection:modifyingSelections:usingBlock:] at /Users/kolin/Multiplex/Multiplex/Classes/MPXSelectionManager.m:228 (in Multiplex) 11 0x000000010e9ad6e1 -[DVTSourceTextView(MPXEditorExtensions) insertText:](in Multiplex) 12 0x000000010e9a0c72 -[DVTSourceTextView(MPXClipboard) paste:](in Multiplex) 13 0x00007fff9aeed082 _os_activity_initiate (in libsystem_trace.dylib) 14 0x00007fff9559f811 -[NSApplication sendAction:to:from:](in AppKit) 15 0x0000000102721001 37-[DVTApplication sendAction:to:from:]_block_invoke (in DVTKit) 16 0x00000001025f28f1 -[DVTApplication sendAction:to:from:](in DVTKit) 17 0x00007fff9559f5ab -[NSMenuItem _corePerformAction](in AppKit) 18 0x00007fff9559f30b -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:](in AppKit) 19 0x00007fff9aeed082 _os_activity_initiate (in libsystem_trace.dylib) 20 0x00007fff9559e1f9 -[NSMenu performKeyEquivalent:](in AppKit) 21 0x00007fff9559d3a0 -[NSApplication _handleKeyEquivalent:](in AppKit) 22 0x00007fff954c31ed -[NSApplication sendEvent:](in AppKit) 23 0x000000010338ebe5 -[IDEApplication sendEvent:](in IDEKit) 24 0x00007fff95329d9a -[NSApplication run](in AppKit) 25 0x00007fff952f2fbe NSApplicationMain (in AppKit) 26 0x00007fff944c15ad start (in libdyld.dylib)

Performing @selector(paste:) from sender NSMenuItem 0x7fd1be061ac0 abort() called

Application Specific Signatures: NSRangeException

Application Specific Backtrace 1: 0 CoreFoundation 0x00007fff935f0e32 exceptionPreprocess + 178 1 DVTFoundation 0x0000000102146c7e DVTFailureHintExceptionPreprocessor + 194 2 libobjc.A.dylib 0x00007fff8c036dd4 objc_exception_throw + 48 3 CoreFoundation 0x00007fff9365765d +[NSException raise:format:] + 205 4 Foundation 0x00007fff855d712a -[NSString rangeOfString:options:range:locale:] + 198 5 Foundation 0x00007fff855dc010 -[NSString rangeOfString:options:range:] + 29 6 Multiplex 0x000000010e9aedc3 53-[DVTSourceTextView(MPXEditorExtensions) insertText:]_block_invoke_2 + 499 7 Foundation 0x00007fff856bd37e -[NSString enumerateSubstringsInRange:options:usingBlock:] + 2121 8 Foundation 0x00007fff857b8bb0 -[NSString enumerateLinesUsingBlock:] + 125 9 Multiplex 0x000000010e9ae4d7 53-[DVTSourceTextView(MPXEditorExtensions) insertText:]_block_invoke129 + 2871 10 Multiplex 0x000000010e9a57f7 -[MPXSelectionManager mapSelectionsWithMovementDirection:modifyingSelections:usingBlock:] + 935 11 Multiplex 0x000000010e9ad6e1 -[DVTSourceTextView(MPXEditorExtensions) insertText:] + 1105 12 Multiplex 0x000000010e9a0c72 -[DVTSourceTextView(MPXClipboard) paste:] + 498 13 libsystem_trace.dylib 0x00007fff9aeed082 _os_activity_initiate + 75 14 AppKit 0x00007fff9559f811 -[NSApplication sendAction:to:from:] + 460 15 DVTKit 0x0000000102721001 37-[DVTApplication sendAction:to:from:]_block_invoke + 379 16 DVTKit 0x00000001025f28f1 -[DVTApplication sendAction:to:from:] + 377 17 AppKit 0x00007fff9559f5ab -[NSMenuItem _corePerformAction] + 336 18 AppKit 0x00007fff9559f30b -[NSCarbonMenuImpl performActionWithHighlightingForItemAtIndex:] + 114 19 libsystem_trace.dylib 0x00007fff9aeed082 _os_activity_initiate + 75 20 AppKit 0x00007fff9559e1f9 -[NSMenu performKeyEquivalent:] + 357 21 AppKit 0x00007fff9559d3a0 -[NSApplication _handleKeyEquivalent:] + 920 22 AppKit 0x00007fff954c31ed -[NSApplication sendEvent:] + 4274 23 IDEKit 0x000000010338ebe5 -[IDEApplication sendEvent:] + 739 24 AppKit 0x00007fff95329d9a -[NSApplication run] + 796 25 AppKit 0x00007fff952f2fbe NSApplicationMain + 1176 26 libdyld.dylib 0x00007fff944c15ad start + 1 27 ??? 0x0000000000000001 0x0 + 1

Thread 0 Crashed:: Dispatch queue: com.apple.main-thread 0 libsystem_kernel.dylib 0x00007fff8c58a0ae __pthread_kill + 10 1 libsystem_pthread.dylib 0x00007fff8dd53500 pthread_kill + 90 2 libsystem_c.dylib 0x00007fff87ea237b abort + 129 3 com.apple.dt.IDEKit 0x00000001035b194d +[IDEAssertionHandler _handleAssertionWithLogString:assertionSignature:assertionReason:extraBacktrace:] + 1481 4 com.apple.dt.IDEKit 0x00000001035b2be6 -[IDEAssertionHandler handleUncaughtException:] + 1077 5 com.apple.dt.IDEKit 0x00000001035b2cb2 IDEHandleUncaughtException + 94 6 com.apple.AppKit 0x00007fff95329e3e -[NSApplication run] + 960 7 com.apple.AppKit 0x00007fff952f2fbe NSApplicationMain + 1176 8 libdyld.dylib 0x00007fff944c15ad start + 1

Thread 1:: Dispatch queue: com.apple.libdispatch-manager 0 libsystem_kernel.dylib 0x00007fff8c58b0a2 kevent_qos + 10 1 libdispatch.dylib 0x00007fff9770d11d _dispatch_mgr_invoke + 216 2 libdispatch.dylib 0x00007fff9770cd85 _dispatch_mgr_thread + 52

Thread 2: 0 libsystem_kernel.dylib 0x00007fff8c584c96 mach_msg_trap + 10 1 libsystem_kernel.dylib 0x00007fff8c5840d7 mach_msg + 55 2 com.apple.CoreFoundation 0x00007fff935662b4 CFRunLoopServiceMachPort + 212 3 com.apple.CoreFoundation 0x00007fff9356577c CFRunLoopRun + 1356 4 com.apple.CoreFoundation 0x00007fff93564fc8 CFRunLoopRunSpecific + 296 5 com.apple.Foundation 0x00007fff855f6f59 -[NSRunLoop(NSRunLoop) runMode:beforeDate:] + 270 6 com.apple.DTDeviceKitBase 0x000000010aef3670 -[DTDKRemoteDeviceDataListener listenerThreadImplementation] + 1103 7 com.apple.Foundation 0x00007fff85607ee4 NSThread__start + 1351 8 libsystem_pthread.dylib 0x00007fff8dd509b1 _pthread_body + 131 9 libsystem_pthread.dylib 0x00007fff8dd5092e _pthread_start + 168 10 libsystem_pthread.dylib 0x00007fff8dd4e385 thread_start + 13