Closed res0nance closed 2 years ago
Hello @res0nance, based on your stack track and the open ANR issue that we are investigating, given the variable is synchronized, we suspect that this has to do with the SDK's background updating behavior (in which the app is waiting for a response but the Android OS thinks the app is not doing anything and report an ANR). While we are gathering more information about this, can you please try to turn off the background updating behavior and see does the issue goes away?
Please report back if the issue still persists after the change.
Hey @louis-launchdarkly , we unfortunately do not wish to disable the background updating, I've done some analysis and opened a PR which hopefully you can check out.
Your fix for this is in the 3.1.6 release. Thank you!
Is this a support request? This issue tracker is maintained by LaunchDarkly SDK developers and is intended for feedback on the SDK code. If you're not sure whether the problem you are having is specifically related to the SDK, or to the LaunchDarkly service overall, it may be more appropriate to contact the LaunchDarkly support team; they can help to investigate the problem and will consult the SDK team if necessary. You can submit a support request by going here or by emailing support@launchdarkly.com.
Note that issues filed on this issue tracker are publicly accessible. Do not provide any private account information on your issues. If your problem is specific to your account, you should submit a support request as described above.
Describe the bug There seems to be a deadlock in LaunchDarkly's SDK code
To reproduce Unable to provide direct steps to reproduce this issue but a stacktrace is provided below
Expected behavior LD should not cause ANRs
Logs
These two stack traces block each other.
SDK version 3.1.4
Language version, developer tools TargetSDK = 31 MinSDK = 21 KotlinVersion 1.6.10
OS/platform Android 12 also happens on Android 11 but given this issue it might be possible on any android version