xibbon / LaTerminal

50 stars 2 forks source link

NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds... #39

Open instabug[bot] opened 1 year ago

instabug[bot] commented 1 year ago

Title: NSMutableRLEArray objectAtIndex:effectiveRange:: Out of bounds (TerminalView.updateSelectionAttributesIfNeeded(attributedLine:row:cols:) (AppleTerminalView.swift:415))

Number: 81

Type: Crash

Status: New

Reported At: 2022-10-17 02:56:41 UTC

Private URL: https://dashboard.instabug.com/applications/swiftterm/live/crashes/81?utm_source=github&utm_medium=integrations

Categories:

App Version: 1.0.8 (303)

Current View: LaTerminal.TerminalViewController

Device: iPad Pro 3rd Gen (11 inch, WiFi+Cellular)

Duration: 347

Screen Size: 1194x834

Density: @2x

User Steps:

02:49:54 Tap in _TtGC7SwiftUI15CellHostingViewGVS_15ModifiedContentVS_14_ViewList_ViewVS_21ListTableCellModifier__ in _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentGS1_VVS_22_VariadicView_Children7ElementVS_24NavigationColumnModifier_GVS_18StyleContextWriterVS_14NoStyleContext___
02:49:51 Application: DidReceiveMemoryWarning
02:49:48 Top View: _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentGS1_VVS_22_VariadicView_Children7ElementVS_24NavigationColumnModifier_GVS_18StyleContextWriterVS_14NoStyleContext___
02:49:48 Tap in _TtCOCV7SwiftUI11DisplayList11ViewUpdater8Platform13CGDrawingView in _TtGC7SwiftUI29PresentationHostingControllerVS_7AnyView_
02:49:20 Top View: _TtGC7SwiftUI29PresentationHostingControllerVS_7AnyView_
02:49:20 Application: DidBecomeActive
02:49:20 Application: SceneDidActivate
02:49:20 Top View: SessionsView
02:49:20 Top View: SessionsView
02:49:20 Top View: HomeView

Instabug Log:

Console Log:

migueldeicaza commented 1 year ago

This is another case of the selection being out of sync with the buffer, but I do not have data on what triggered this yet.

A simple fix is to cap the value in that line, but I would like to understand what state is getting out of sync