SwfitUI App sporadically crashes on launch: Thread 1: EXC_BAD_ACCESS

Does anyone know what could be causing this? App uses SwiftUI App lifecycle.

Xcode: 12.5.1 iPad: 14.8

Trace:


* thread #1, queue = 'com.apple.main-thread', stop reason = EXC_BAD_ACCESS (code=1, address=0x0)

    frame #0: 0x00000001beb39198 AttributeGraph`AG::Subgraph::cache_insert(AG::data::ptr<AG::Node>) + 120

    frame #1: 0x00000001beb331fc AttributeGraph`AG::Graph::remove_node(AG::data::ptr<AG::Node>) + 108

    frame #2: 0x00000001beb36b38 AttributeGraph`AG::Subgraph::invalidate_now(AG::Graph&, unsigned long) + 960

    frame #3: 0x00000001beb372ac AttributeGraph`AG::Subgraph::invalidate_and_delete_(bool) + 264

    frame #4: 0x000000019e5039f4 SwiftUI`closure #1 () -> () in SwiftUI.GraphHost.uninstantiate() -> () + 20

    frame #5: 0x000000019e074f40 SwiftUI`reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_guaranteed () -> (@out ()) + 20

    frame #6: 0x000000019e061234 SwiftUI`static SwiftUI.Update.end() -> () + 496

    frame #7: 0x000000019e502c0c SwiftUI`SwiftUI.GraphHost.uninstantiate() -> () + 396

  * frame #8: 0x000000019e04ee6c SwiftUI`SwiftUI.ViewGraph.didChangePreferenceBridge(from: Swift.Optional<SwiftUI.PreferenceBridge>) -> () + 100

    frame #9: 0x000000019e04e9e8 SwiftUI`SwiftUI.ViewGraph.preferenceBridge.setter : Swift.Optional<SwiftUI.PreferenceBridge> + 56

    frame #10: 0x000000019e5bebd0 SwiftUI`SwiftUI._UIHostingView.__deallocating_deinit + 216

    frame #11: 0x000000019e5bec08 SwiftUI`@objc SwiftUI._UIHostingView.__deallocating_deinit + 24

    frame #12: 0x00000001ab8e139c libobjc.A.dylib`AutoreleasePoolPage::releaseUntil(objc_object**) + 200

    frame #13: 0x00000001ab8e1278 libobjc.A.dylib`objc_autoreleasePoolPop + 208

    frame #14: 0x000000019acba600 QuartzCore`CA::Context::commit_transaction(CA::Transaction*, double, double*) + 636

    frame #15: 0x000000019ace52c8 QuartzCore`CA::Transaction::commit() + 668

    frame #16: 0x000000019ace6530 QuartzCore`CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) + 92

    frame #17: 0x0000000197ac3c40 CoreFoundation`__CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 32

    frame #18: 0x0000000197abe270 CoreFoundation`__CFRunLoopDoObservers + 588

    frame #19: 0x0000000197abe80c CoreFoundation`__CFRunLoopRun + 1012

    frame #20: 0x0000000197abded0 CoreFoundation`CFRunLoopRunSpecific + 572

    frame #21: 0x00000001ae207570 GraphicsServices`GSEventRunModal + 160

    frame #22: 0x000000019a3eb2d0 UIKitCore`-[UIApplication _run] + 1052

    frame #23: 0x000000019a3f084c UIKitCore`UIApplicationMain + 164

    frame #24: 0x000000019e499530 SwiftUI`closure #1 (Swift.UnsafeMutablePointer<Swift.Optional<Swift.UnsafeMutablePointer<Swift.Int8>>>) -> Swift.Never in SwiftUI.KitRendererCommon(Swift.AnyObject.Type) -> Swift.Never + 108

    frame #25: 0x000000019e4994c0 SwiftUI`SwiftUI.runApp<τ_0_0 where τ_0_0: SwiftUI.App>(τ_0_0) -> Swift.Never + 176

    frame #26: 0x000000019e04a870 SwiftUI`static SwiftUI.App.main() -> () + 96

    frame #27: 0x000000010244cb60 Pencil it in`static PIIApp.$main(self=Pencil_it_in.PIIApp) at PIIApp.swift:13:1

    frame #28: 0x000000010244cc18 Pencil it in`main at PIIApp.swift:0

    frame #29: 0x000000019779c140 libdyld.dylib`start + 4
SwfitUI App sporadically crashes on launch: Thread 1: EXC_BAD_ACCESS
 
 
Q