Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Crash Tasks.SingleUpdateLocation.receivedLocationManagerEvent(_:) #386

Open
ucerxxx opened this issue Jun 1, 2024 · 3 comments
Open
Labels

Comments

@ucerxxx
Copy link

ucerxxx commented Jun 1, 2024

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🎏) + 264
1
libswift_Concurrency.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

@ucerxxx ucerxxx added the bug label Jun 1, 2024
@ucerxxx
Copy link
Author

ucerxxx commented Jun 2, 2024

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:

#381

@qizh
Copy link

qizh commented Jun 10, 2024

Got the same crash in my app

@Teglgaard
Copy link

Same here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants