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

Deadlock on iPhone 5c #201

Closed
lm2s opened this issue Mar 23, 2018 · 2 comments
Closed

Deadlock on iPhone 5c #201

lm2s opened this issue Mar 23, 2018 · 2 comments

Comments

@lm2s
Copy link
Contributor

lm2s commented Mar 23, 2018

* thread #1, queue = 'com.apple.main-thread'
  * frame #0: 0x1d2d5878 libsystem_kernel.dylib`__psynch_mutexwait + 24
    frame #1: 0x1d38f4ac libsystem_pthread.dylib`_pthread_mutex_lock_wait + 74
    frame #2: 0x1d38a9a2 libsystem_pthread.dylib`pthread_mutex_lock + 142
    frame #3: 0x06205180 SwiftLocation`Mutex.lock(self=0x1894f2c0) at Mutex.swift:52
    frame #4: 0x06205584 SwiftLocation`Mutex.sync<A>(job=0x06206980 SwiftLocation`partial apply forwarder for reabstraction thunk helper <A where A: Swift.Equatable> from @callee_owned () -> (@owned Swift.Array<A>, @error @owned Swift.Error) to @callee_owned () -> (@out Swift.Array<A>, @error @owned Swift.Error) at Shared.swift, self=0x1894f2c0) at Mutex.swift:68
    frame #5: 0x062067c4 SwiftLocation`SafeList.list.getter(self=0x1894f5e0) at Shared.swift:50
    frame #6: 0x061ff98c SwiftLocation`LocatorManager.activeLocationRequest(mode=significant, self=0x1894f4f0) at Locator.swift:533
    frame #7: 0x061ff698 SwiftLocation`LocatorManager.startUpdatingLocationIfNeeded(self=0x1894f4f0) at Locator.swift:507
    frame #8: 0x061fedb4 SwiftLocation`LocatorManager.addLocation(request=0x188c3ff0, self=0x1894f4f0) at Locator.swift:475
    frame #9: 0x061fd484 SwiftLocation`LocatorManager.subscribePosition(accuracy=house, onUpdate=0x00743b94 MyApp`closure #2 (__ObjC.CLLocation) -> () in MyApp.AppDelegate.application(__ObjC.UIApplication, didFinishLaunchingWithOptions: Swift.Optional<Swift.Dictionary<__C.UIApplicationLaunchOptionsKey, Any>>) -> Swift.Bool at AppDelegate.swift:213, onFail=0x00743c18 MyApp`closure #3 (SwiftLocation.LocationError, Swift.Optional<__ObjC.CLLocation>) -> () in MyApp.AppDelegate.application(__ObjC.UIApplication, didFinishLaunchingWithOptions: Swift.Optional<Swift.Dictionary<__C.UIApplicationLaunchOptionsKey, Any>>) -> Swift.Bool at AppDelegate.swift:215, self=0x1894f4f0) at Locator.swift:259
    frame #10: 0x007437e4 MyApp`AppDelegate.application(application=0x1756cc40, launchOptions=nil, self=0x17572670) at AppDelegate.swift:217
    frame #11: 0x00743e38 MyApp`@objc AppDelegate.application(_:didFinishLaunchingWithOptions:) at AppDelegate.swift:0

This deadlock only seems to happen on iPhone 5c (32bit). Any idea of what can be going on?

@lm2s
Copy link
Contributor Author

lm2s commented Mar 23, 2018

I've just submitted a PR with a possible fix for this issue (#202)

@MiMo42
Copy link
Contributor

MiMo42 commented Mar 28, 2018

Same on iPhone 5 here.
PR fixed it.

@lm2s lm2s closed this as completed Mar 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants