Post

Replies

Boosts

Views

Activity

Reply to Anyone have a pointer about a crash Exception Type: EXC_BAD_ACCESS (SIGSEGV) Exception Subtype: KERN_INVALID_ADDRESS at 0x0000000000000010
Looking at the disassembly, the code for the initialization of the PenaltyTimesView were significantly different than those for the other views, I suspect some issues here with timing of operations (as the optionals should always be populated before this code is called) Removed the optional from the penalty lengths (that was an artifact of a previous implementation strategy) and moved the initialization of the State variables to the .onAppear() and this significantly re-arranged the code in disassembly for the impacted class, avoiding what I think may have been a race condition... Compiled, tested and re-submitted the app, users who were reporting the problem now report proper behavior. Thank you [https://developer.apple.com/forums/profile/workingdogintokyo] for you input.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’21