Posts

Post not yet marked as solved
5 Replies
I am facing a similar issue.----> "precondition failure: imported node deleted before its value was read: 92" and sometimes I see 91(Does not crash on the simulator, but only on HW currently on iOS 13.1.3)struct ContentView: View { @State var storeId = "" @State var purchase = "" var body: some View { NavigationView { if self.purchase.isEmpty { if self.storeId.isEmpty { StoreSelectorView(storeId: $storeId) } else { FruitPurchaserView(purchase: $purchase) } } else { ReceiptView(purchase: purchase) } } }}struct StoreSelectorView: View { @Binding var storeId: String var body: some View { VStack { Button(action: finalizeSelection ) { Text("Select Nearest Store") } } } func finalizeSelection() { self.storeId = "CA999" }}struct FruitPurchaserView: View { @Binding var purchase: String @State var selection: String = "DURIAN" @State var fruits: Array<String> = ["APPLES", "BANANAS", "CAROTS", "DURIAN"] @State var weight = "" var body: some View { Form { Section(header: Text("What are you buying")) { Picker(selection: $selection, label: Text("Fruit") ) { ForEach(fruits, id: \.self) { fruit in Text(fruit) } } HStack { Text("How many lbs?") Spacer() TextField("000", text: $weight ) .keyboardType(.numberPad) } } Section { HStack { Spacer() Button(action: handlePurchase ) { VStack { Text("Buy fruit") Text("In-app purchase") } }.frame(width: 200) Spacer() } } } .navigationBarTitle("Fruit market") } func handlePurchase() { self.purchase = "\(self.selection) \(weight)lbs" }}andstruct ReceiptView: View { @State var purchase = "" var body: some View { Text("Subscription: \(self.purchase)") }}IMPORTANT NOTE: Also, it all works fine if I do any of the followingRemove the Picker from FruitPurchaseViewThread 1 Queue : com.apple.main-thread (serial)#0 0x0000000199ce4ebc in __pthread_kill ()#1 0x0000000199c04c1c in pthread_kill$VARIANT$armv81 ()#2 0x0000000199b54824 in abort ()#3 0x00000001c41393c0 in AG::precondition_failure(char const*, ...) ()#4 0x00000001c411568c in AG::Graph::EntryExit::update_entry() const ()#5 0x00000001c410aa60 in AG::Graph::UpdateStack::update() ()#6 0x00000001c410ad24 in AG::Graph::update_attribute(unsigned int, bool) ()#7 0x00000001c410e290 in AG::Graph::input_value_ref_slow(unsigned int, unsigned int, AGTypeID, bool*) ()#8 0x00000001cfe81cd0 in specialized AnimatableAttribute.update(context:) ()#9 0x00000001cfdcc310 in partial apply for specialized ()#10 0x00000001c410aa60 in AG::Graph::UpdateStack::update() ()#11 0x00000001c410ad24 in AG::Graph::update_attribute(unsigned int, bool) ()#12 0x00000001c410fa0c in AG::Subgraph::update(unsigned int) ()#13 0x00000001cfacd838 in ViewGraph.runTransaction(in:) ()#14 0x00000001cfacdb64 in closure #1 in ViewGraph.updateOutputs(at:) ()#15 0x00000001cfacd8ec in ViewGraph.updateOutputs(at:) ()#16 0x00000001cfe342bc in closure #1 in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) ()#17 0x00000001cfe33d24 in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) ()#18 0x00000001cfe2a600 in ViewRendererHost.render(interval:updateDisplayList:) ()#19 0x00000001cf9dcce8 in closure #1 in _UIHostingView.requestImmediateUpdate() ()#20 0x00000001cf9d91b8 in thunk for @escaping @callee_guaranteed () -> () ()#21 0x0000000102b65828 in _dispatch_call_block_and_release ()#22 0x0000000102b66c04 in _dispatch_client_callout ()#23 0x0000000102b74c64 in _dispatch_main_queue_callback_4CF ()#24 0x0000000199e6a3c4 in __CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ ()#25 0x0000000199e653b8 in __CFRunLoopRun ()#26 0x0000000199e648bc in CFRunLoopRunSpecific ()#27 0x00000001a3cd0328 in GSEventRunModal ()#28 0x000000019defa6d4 in UIApplicationMain ()#29 0x0000000102a78448 in main at /Users/starlord/github/CRASH_REPRODUCE/CRASH_REPRODUCE/AppDelegate.swift:12#30 0x0000000199cef460 in start ()Enqueued from com.apple.main-thread (Thread 1) Queue : com.apple.main-thread (serial)#0 0x0000000102b6b058 in dispatch_async ()#1 0x00000001ce84f624 in OS_dispatch_queue.async(group:qos:flags:execute:) ()#2 0x00000001cf9dcba8 in _UIHostingView.requestImmediateUpdate() ()#3 0x00000001cf9dc694 in _UIHostingView.requestUpdate(after:) ()#4 0x00000001cffacf34 in _UIHostingView.didMoveToWindow() ()#5 0x00000001cffad08c in @objc _UIHostingView.didMoveToWindow() ()#6 0x000000019e37c2b0 in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()#7 0x000000019e37be28 in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()#8 0x000000019e37be28 in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()#9 0x000000019e37be28 in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()#10 0x000000019e30227c in -[UIScrollView _didMoveFromWindow:toWindow:] ()#11 0x000000019e37be28 in -[UIView(Internal) _didMoveFromWindow:toWindow:] ()#12 0x000000019e3701d4 in __45-[UIView(Hierarchy) _postMovedFromSuperview:]_block_invoke ()#13 0x000000019e3700bc in -[UIView(Hierarchy) _postMovedFromSuperview:] ()#14 0x000000019e36e3a4 in __UIViewWasRemovedFromSuperview ()#15 0x000000019e36de84 in -[UIView(Hierarchy) removeFromSuperview] ()#16 0x00000001cfc12c40 in PlatformViewHost.removeFromSuperview() ()#17 0x00000001cfc12c74 in @objc PlatformViewHost.removeFromSuperview() ()#18 0x00000001cfc6d9f8 in DisplayList.ViewUpdater.Container.removeRemaining(viewCache:) ()#19 0x00000001cfc6d608 in DisplayList.ViewUpdater.update(rootView:from:version:) ()#20 0x00000001cf9dcd70 in _UIHostingView.renderDisplayList(_:version:) ()#21 0x00000001cfe33e44 in closure #1 in ViewRendererHost.render(interval:updateDisplayList:) ()#22 0x00000001cfe2a600 in ViewRendererHost.render(interval:updateDisplayList:) ()#23 0x00000001cffad22c in _UIHostingView.layoutSubviews() ()#24 0x00000001cffad258 in @objc _UIHostingView.layoutSubviews() ()#25 0x000000019e385270 in -[UIView(CALayerDelegate) layoutSublayersOfLayer:] ()#26 0x00000001a08715f8 in -[CALayer layoutSublayers] ()#27 0x00000001a0875e28 in CA::Layer::layout_if_needed(CA::Transaction*) ()#28 0x00000001a0881894 in CA::Layer::layout_and_display_if_needed(CA::Transaction*) ()#29 0x00000001a07ca9f0 in CA::Context::commit_transaction(CA::Transaction*, double) ()#30 0x00000001a07f4890 in CA::Transaction::commit() ()#31 0x00000001a07f5284 in CA::Transaction::observer_callback(__CFRunLoopObserver*, unsigned long, void*) ()#32 0x0000000199e69c48 in __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ ()#33 0x0000000199e64b34 in __CFRunLoopDoObservers ()#34 0x0000000199e65100 in __CFRunLoopRun ()#35 0x0000000199e648bc in CFRunLoopRunSpecific ()#36 0x00000001a3cd0328 in GSEventRunModal ()#37 0x000000019defa6d4 in UIApplicationMain ()#38 0x0000000102a78448 in main at /Users/starlord/github/CRASH_REPRODUCE/CRASH_REPRODUCE/AppDelegate.swift:12#39 0x0000000199cef460 in start ()
Post marked as solved
14 Replies
This is happening in XCode 11 as wellXCode 11 seems a lot buggier than 10 when it comes to maintaining device connectivity.