Open ucerxxx opened 5 months ago
investigated some more. looks like this is happening because in case of timeout continuation in not released. then it can be called second time on location update. this pr should fix an issue:
Got the same crash in my app
Same here
Platform Version
iOS 15 -> 17
SDK Version
6.0 (latest)
Xcode Version
Xcode 15.3
Steps To Reproduce
Crash in prod, never experienced in Xcode. About 5% of users. Stack trace:
0 libswiftCore.dylib assertionFailure(:_:file:line:flags:) + 264 1 libswiftConcurrency.dylib CheckedContinuation.resume(returning:) + 508 2 MyProject SingleUpdateLocation.swift - Line 77 Tasks.SingleUpdateLocation.receivedLocationManagerEvent(:) + 77 3 MyProject LocationAsyncBridge.swift - Line 94 LocationAsyncBridge.dispatchEvent(:) + 94 4 MyProject LocationDelegate.swift - Line 53 @objc LocationDelegate.locationManager(:didUpdateLocations:) + 53 5 CoreLocation CLClientStartVehicleHeadingUpdates + 119784 6 CoreLocation CLClientStartVehicleHeadingUpdates + 114960
Expected Behavior
no crash
Actual Incorrect Behavior
Crashed: com.apple.main-thread