Thursday, October 29, 2026
HomeiOS Developmentios - How do I discover the road the place the app...

ios – How do I discover the road the place the app crashes on SIGABRT errors?

[ad_1]

I’m growing a SwiftUI primarily based app in Xcode and when in my LobbyView – my app crashes at totally different occasions. There’s a host of the foyer and common gamers.

The app is attached to a realm database and at any time when adjustments are made to the foyer and despatched to the database, I inconsistently get a SIGABRT error on the principle thread or I get a EXC_Bad_Access error. Right here is my crash report, the largest subject I’ve is that I can’t find the road that’s inflicting this crash.

Additionally, inconsistently crashing at totally different occasions makes it method tougher to search out. Right here is my crash report:

    body #0: 0x0000000199617488 libobjc.A.dylib`objc_retain + 8
    body #1: 0x000000010287f1a8 Hoops`initializeWithCopy for PlayerInLobby at <compiler-generated>:0
    body #2: 0x00000001889ba00c SwiftUI`SwiftUI.DynamicBody.updateValue() -> () + 476
    body #3: 0x0000000188a00d28 SwiftUI`partial apply forwarder for implicit closure #2 (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in implicit closure #1 (τ_1_0.Kind) -> (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in closure #1 () -> (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in closure #1 (Swift.UnsafePointer<τ_1_0>) -> AttributeGraph.Attribute<τ_0_0> in AttributeGraph.Attribute.init<τ_0_0 the place τ_0_0 == τ_1_0.Worth, τ_1_0: AttributeGraph.StatefulRule>(τ_1_0) -> AttributeGraph.Attribute<τ_0_0> + 32
    body #4: 0x00000001b27f29a4 AttributeGraph`AG::Graph::UpdateStack::replace() + 532
    body #5: 0x00000001b27f23ac AttributeGraph`AG::Graph::update_attribute(AG::information::ptr<AG::Node>, unsigned int) + 396
    body #6: 0x00000001b27f311c AttributeGraph`AG::Graph::input_value_ref_slow(AG::information::ptr<AG::Node>, AG::AttributeID, unsigned int, AGSwiftMetadata const*, unsigned char&, lengthy) + 376
    body #7: 0x00000001b27f0cd0 AttributeGraph`AGGraphGetValue + 236
    body #8: 0x0000000188a1d64c SwiftUI`SwiftUI.AnimatableFrameAttribute.updateValue() -> () + 56
    body #9: 0x0000000188a71ff8 SwiftUI`partial apply forwarder for generic specialization <SwiftUI.ViewFrame, SwiftUI.AnimatableFrameAttribute> of implicit closure #2 (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in implicit closure #1 (τ_1_0.Kind) -> (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in closure #1 () -> (Swift.UnsafeMutableRawPointer, __C.AGAttribute) -> () in closure #1 (Swift.UnsafePointer<τ_1_0>) -> AttributeGraph.Attribute<τ_0_0> in AttributeGraph.Attribute.init<τ_0_0 the place τ_0_0 == τ_1_0.Worth, τ_1_0: AttributeGraph.StatefulRule>(τ_1_0) -> AttributeGraph.Attribute<τ_0_0> + 24
    body #10: 0x00000001b27f29a4 AttributeGraph`AG::Graph::UpdateStack::replace() + 532
    body #11: 0x00000001b27f23ac AttributeGraph`AG::Graph::update_attribute(AG::information::ptr<AG::Node>, unsigned int) + 396
    body #12: 0x00000001b27f11f4 AttributeGraph`AG::Subgraph::replace(unsigned int) + 968
    body #13: 0x0000000188978bec SwiftUI`SwiftUI.GraphHost.flushTransactions() -> () + 412
    body #14: 0x00000001895ec5b8 SwiftUI`closure #1 (SwiftUI.GraphHost) -> () in closure #1 () -> () in closure #1 () -> () in SwiftUI.GraphHost.asyncTransaction<τ_0_0 the place τ_0_0: SwiftUI.GraphMutation>(_: SwiftUI.Transaction, mutation: τ_0_0, model: SwiftUI._GraphMutation_Style, mayDeferUpdate: Swift.Bool) -> () + 24
    body #15: 0x000000018896a830 SwiftUI`partial apply forwarder for closure #1 (SwiftUI.ViewGraph) -> τ_1_0 in SwiftUI.ViewGraphDelegate.updateGraph<τ_0_0>(physique: (SwiftUI.GraphHost) -> τ_1_0) -> τ_1_0 + 28
    body #16: 0x00000001889760ac SwiftUI`closure #1 () -> τ_1_0 in SwiftUI.ViewRendererHost.updateViewGraph<τ_0_0>(physique: (SwiftUI.ViewGraph) -> τ_1_0) -> τ_1_0 + 108
    body #17: 0x000000018896eed8 SwiftUI`SwiftUI.ViewRendererHost.updateViewGraph<τ_0_0>(physique: (SwiftUI.ViewGraph) -> τ_1_0) -> τ_1_0 + 96
    body #18: 0x0000000188968304 SwiftUI`SwiftUI.ViewGraphDelegate.updateGraph<τ_0_0>(physique: (SwiftUI.GraphHost) -> τ_1_0) -> τ_1_0 + 84
    body #19: 0x0000000188967390 SwiftUI`merged closure #1 () -> () in SwiftUI.GraphHost.init(information: SwiftUI.GraphHost.Information) -> SwiftUI.GraphHost + 156
    body #20: 0x0000000188a726d0 SwiftUI`reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> (@out ()) + 28
    body #21: 0x00000001889658dc SwiftUI`static __C.NSRunLoop.flushObservers() -> () + 152
    body #22: 0x0000000188965954 SwiftUI`closure #1 () -> () in closure #1 (Swift.Elective<__C.CFRunLoopObserverRef>, __C.CFRunLoopActivity, Swift.Elective<Swift.UnsafeMutableRawPointer>) -> () in static __C.NSRunLoop.addObserver(() -> ()) -> () + 16
    body #23: 0x0000000188a53a04 SwiftUI`perform signature specialization <Arg[1] = [Constant Propagated Function : closure #1 () -> () in closure #1 (Swift.Optional<__C.CFRunLoopObserverRef>, __C.CFRunLoopActivity, Swift.Optional<Swift.UnsafeMutableRawPointer>) -> () in static (extension in SwiftUI):__C.NSRunLoop.addObserver(() -> ()) -> ()]> of reabstraction thunk helper from @callee_guaranteed () -> (@error @owned Swift.Error) to @escaping @callee_guaranteed () -> (@out (), @error @owned Swift.Error) + 24
    body #24: 0x00000001aec24a20 libswiftObjectiveC.dylib`ObjectiveC.autoreleasepool<τ_0_0>(invoking: () throws -> τ_0_0) throws -> τ_0_0 + 64
    body #25: 0x00000001889657f4 SwiftUI`closure #1 (Swift.Elective<__C.CFRunLoopObserverRef>, __C.CFRunLoopActivity, Swift.Elective<Swift.UnsafeMutableRawPointer>) -> () in static __C.NSRunLoop.addObserver(() -> ()) -> () + 64
    body #26: 0x0000000188965ac4 SwiftUI`@objc closure #1 (Swift.Elective<__C.CFRunLoopObserverRef>, __C.CFRunLoopActivity, Swift.Elective<Swift.UnsafeMutableRawPointer>) -> () in static __C.NSRunLoop.addObserver(() -> ()) -> () + 56
    body #27: 0x0000000180f5d560 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 36
    body #28: 0x0000000180f2c844 CoreFoundation`__CFRunLoopDoObservers + 572
    body #29: 0x0000000180f278dc CoreFoundation`__CFRunLoopRun + 1052
    body #30: 0x0000000180f3b3b8 CoreFoundation`CFRunLoopRunSpecific + 600
    body #31: 0x000000019c8cb38c GraphicsServices`GSEventRunModal + 164
    body #32: 0x00000001838db6a8 UIKitCore`-[UIApplication _run] + 1100
    body #33: 0x000000018365a7f4 UIKitCore`UIApplicationMain + 2092
    body #34: 0x0000000188b9e258 SwiftUI`closure #1 (Swift.UnsafeMutablePointer<Swift.Elective<Swift.UnsafeMutablePointer<Swift.Int8>>>) -> Swift.By no means in SwiftUI.KitRendererCommon(Swift.AnyObject.Kind) -> Swift.By no means + 164
    body #35: 0x0000000188acc534 SwiftUI`SwiftUI.runApp<τ_0_0 the place τ_0_0: SwiftUI.App>(τ_0_0) -> Swift.By no means + 252
    body #36: 0x0000000188aadcb4 SwiftUI`static SwiftUI.App.fundamental() -> () + 128
  * body #37: 0x0000000102990600 Hoops`static HoopsSUIApp.$fundamental(self=Hoops.HoopsSUIApp) at HoopsApp.swift:13:1
    body #38: 0x00000001029906ac Hoops`fundamental at HoopsApp.swift:0
    body #39: 0x0000000106939a24 dyld`begin + 520

My largest subject with this isn’t with the ability to discover the road the place it crashes. I’ve set exception breakpoints and they don’t get triggered in the course of the crash. When the app crashes it takes me to the file that has the @fundamental image.

Anyone have any clues for me so far as why the app is crashing or how you can find the precise line of the purpose of crashing? Thanks.

[ad_2]

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments