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

Crash in FlagsUnchangedObserver #226

Closed
NikolajMosbaek opened this issue Oct 6, 2020 · 8 comments
Closed

Crash in FlagsUnchangedObserver #226

NikolajMosbaek opened this issue Oct 6, 2020 · 8 comments
Labels

Comments

@NikolajMosbaek
Copy link

NikolajMosbaek commented Oct 6, 2020

A portion of the sessions crash in FlagsUnchangedObserver. I am unable to recreate the crash but it has happened on iOS 12, 13 & 14 for LaunchDarkly 5.1.0. The stack trace is as follows:

0 libdispatch.dylib     dispatch_group_leave$VARIANT$mp.cold.1
1 libdispatch.dylib     dispatch_group_leave$VARIANT$mp
2 LaunchDarkly          closure #2 () -> () in LaunchDarkly.LDClient.(go in _14C52C04C80D938C2FE76924F7908AD1)(online: Swift.Bool, reasonOnlineUnavailable: Swift.String, completion: () -> ()?) -> () LDClient.swift:143
3 LaunchDarkly          partial apply forwarder for closure #1 () -> () in closure #1 (LaunchDarkly.FlagsUnchangedObserver) -> () in closure #1 () -> () in LaunchDarkly.FlagChangeNotifier.notifyObservers(user: LaunchDarkly.LDUser, oldFlags: [Swift.String : LaunchDarkly.FeatureFlag]) -> () FlagChangeNotifier.swift:94
4 LaunchDarkly          reabstraction thunk helper from @escaping @callee_guaranteed () -> () to @escaping @callee_unowned @convention(block) () -> () <compiler-generated>:0
5 libdispatch.dylib     _dispatch_call_block_and_release
@torchhound
Copy link
Contributor

Hi @NikolajMosbaek thanks for reporting this issue.

Filed internally as 91704.

@torchhound torchhound added the bug label Oct 6, 2020
@torchhound
Copy link
Contributor

Hi @NikolajMosbaek would you please provide some additional context? Anything you can share (that isn't private or proprietary) about your SDK version, client configuration, or what code or part of your app's lifecycle is executing when the error happens. If additional context is private or proprietary information please reach out to our support staff to share it.

@NikolajMosbaek
Copy link
Author

NikolajMosbaek commented Oct 8, 2020

Hi @torchhound. I'm runnung version 5.1.0 on iOS. Since there's no reference to my app in the stack trace and the app has been running for various amounts of time it's hard for me to guess where in the app's lifecycle the crash occurs. I don't know which part of my LaunchDarkly setup that's relevant to be shared.
Before running version 5.1.0 I was running the same setup on version 4.7.0 without any problems.

@NikolajMosbaek
Copy link
Author

@torchhound Please let me know if there's anything in particular you need from me to get to the bottom of this. This issue is my most often occurring crash at the moment.

@torchhound
Copy link
Contributor

@NikolajMosbaek Are you rapidly calling identify? Or perhaps calling identify quickly after SDK initialization or before/after your app going into the foreground/background?

@NikolajMosbaek
Copy link
Author

@torchhound I cannot see any scenario in my code where identify would be rapidly called. I do, however, call it in the completion closure of LDClient.start. Do you believe that could be the issue? I will refactor my code so that is no longer the case and monitor whether it affect the crash.

@NikolajMosbaek
Copy link
Author

It seems that did the trick, so I'll close this issue. Thanks to @torchhound!

@torchhound
Copy link
Contributor

Thanks for bringing this to our attention @NikolajMosbaek! Glad you found a fix. We will try and patch this.

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

2 participants