migueldeicaza / SwiftTermApp

MIT License
309 stars 29 forks source link

Crash due to signal: SIGTRAP(TRAP_BRKPT) at 1043facec (closure #1 in SessionView.body.getter (SessionsView.swift:69)) #148

Closed instabug[bot] closed 2 years ago

instabug[bot] commented 2 years ago

Title: Crash due to signal: SIGTRAP(TRAP_BRKPT) at 1043facec (closure #1 in SessionView.body.getter (SessionsView.swift:69))

Number: 2

Type: Crash

Status: New

Reported At: 2022-04-06 17:02:59 UTC

Email:

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

Categories:

App Version: 1.0 (135)

Current View: SwiftTermApp.TerminalViewController

Device: iPhone 12

Duration: 602

Screen Size: 390x844

Density: @3x

User Data:

User Steps:

15:14:40 Tap in SwiftUI._UIGraphicsView in _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_24NavigationColumnModifier__
15:14:35 Top View: _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVS_7AnyViewVS_24NavigationColumnModifier__
15:14:35 Tap in _TtGC7SwiftUI15CellHostingViewGVS_15ModifiedContentVS_14_ViewList_ViewVS_21ListTableCellModifier__ in _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVVS_22_VariadicView_Children7ElementVS_24NavigationColumnModifier__
15:14:24 Top View: _TtGC7SwiftUI19UIHostingControllerGVS_15ModifiedContentVVS_22_VariadicView_Children7ElementVS_24NavigationColumnModifier__
15:14:23 Tap in _TtCOCV7SwiftUI11DisplayList11ViewUpdater8Platform13CGDrawingView in _TtGC7SwiftUI29PresentationHostingControllerVS_7AnyView_
15:14:14 Application: DidBecomeActive
15:14:14 Application: SceneDidActivate
15:14:14 Top View: _TtGC7SwiftUI29PresentationHostingControllerVS_7AnyView_
15:14:13 Application: WillEnterForeground
15:14:13 Application: SceneWillConnect

Instabug Log:

Console Log:

Locale: fr-CA

migueldeicaza commented 2 years ago

It is this piece of code:

var body: some View {
        NavigationLink (destination:
                            ConfigurableUITerminal (host: nil, terminalView: terminalView, createNew: false, interactive: false)
                .navigationTitle (Text (terminalView.host.alias))
                .navigationBarTitleDisplayMode(.inline)

                .onDisappear { self.immediateController.rehost () })

The last line, so immediateController is returning nil?