Crash due to signal: SIGTRAP(TRAP_BRKPT) at 1021ddd30 ($specialized Array.replaceSubrangeA(_:with:)...
Closed this issue · 1 comments
instabug commented
Title: Crash due to signal: SIGTRAP(TRAP_BRKPT) at 1021ddd30 ($specialized Array.replaceSubrange(_:with:) + 184)
Number: 6
Reported At: 2022-04-16 23:25:03 UTC
Private URL: https://dashboard.instabug.com/applications/swiftterm/beta/crashes/6?utm_source=github&utm_medium=integrations
App Version: 1.3 (197)
Current View: SwiftTermApp.TerminalViewController
Device: iPhone SE 2nd Gen
0 SwiftTermApp $specialized Array.replaceSubrange<A>(_:with:) + 184
1 SwiftTermApp TerminalView.deleteBackward() (iOSTerminalView.swift:866)
2 SwiftTermApp @objc TerminalView.deleteBackward() (<compiler-generated>:0)
3 UIKitCore -[UITextInteractionSelectableInputDelegate _deleteBackwardAndNotify:] + 43
4 UIKitCore -[UIKBInputDelegateManager _deleteBackwardAndNotify:] + 383
5 UIKitCore -[UIKeyboardImpl performKeyboardOutput:checkingDelegate:forwardToRemoteInputSource:] + 859
6 UIKitCore -[UIKeyboardImpl performKeyboardOutput:] + 35
7 UIKitCore _55-[UIKeyboardImpl handleKeyboardInput:executionContext:]_block_invoke_2 + 431
8 UIKitCore -[UIKeyboardTaskEntry execute:] + 187
9 UIKitCore -[UIKeyboardTaskQueue continueExecutionOnMainThread] + 335
10 Foundation _NSThreadPerformPerform + 211
11 CoreFoundation _CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 27
12 CoreFoundation _CFRunLoopDoSource0 + 207
13 CoreFoundation _CFRunLoopDoSources0 + 267
14 CoreFoundation _CFRunLoopRun + 819
15 CoreFoundation CFRunLoopRunSpecific + 599
16 GraphicsServices GSEventRunModal + 163
17 UIKitCore -[UIApplication _run] + 1099
18 UIKitCore UIApplicationMain + 363
19 SwiftUI closure #1 in KitRendererCommon(_:) + 163
20 SwiftUI runApp<A>(_:) + 251
21 SwiftUI $static App.main() + 127
22 SwiftTermApp main (DefaultHomeView.swift:0)
Source at the time:
It is this line of code:
textInputStorage.removeSubrange(rangeToDelete._start..<rangeToDelete._end)
migueldeicaza commented
Not sure how to reproduce, but I suspect some input method - will try again, in the meantime, I added a band-aid