-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
java.lang.UnsatisfiedLinkError in ActionBroadcastReceiver #1750
Comments
Looks like this tends to pop up in other plugins that run background isolates as well, but I don't see a definitive fix/explanation anywhere... background_locator: rekabhq/background_locator#185 - apparently people are adding android_alarm_manager: flutter/plugins@de56da5 - changed to create FlutterEngine instance before callback lookup (?) |
@noinskit how quick/easy would it be for you to validate a solution? Asking as if it's quick/easy, are you able to pin the app to 12.0.0 to see if it solves the issue? In 12.0.1 I tried to validate the existence of the callback before the engine was initialised. Should also be easy to update the plugin code and should be a harmless change AFAIK since it would be similar to what the android_alarm_manager plugin is doing |
I can update or pin FLNP versions quite quickly, but it's hard to be sure, because I can't reproduce this locally and so far I have just one production user that triggered this (so even if it doesn't happen for a few days, it doesn't mean that it's fixed). |
If I'm understanding the fix for the android_alarm_manager correctly though, it's more to do with how it was unable to find a callback as opposed to crashing so suspect this is a different issue. Nevertheless, this change could be done ASAP in the plugin though oddly I didn't run into the issue when retesting to ensure actions worked |
It must be non-deterministic or depend on some factors like phone model. I just tried two scenarios with my app on my phone - clicking on an action with app in foreground and clicking on an action after reboot, without the app running... and everything worked correctly. |
Afraid I don't have ideas on this one and support for actions came via a PR that a number of others in the community seemed to had been using for a while. The plugin already calls Line 84 in f38183d
|
Right... although the call to |
Uploaded 12.0.2. Not sure if it'll fix the issue you're experiencing though |
Thanks. I understand. I'll upgrade to 12.0.2 and report back if it reoccurs (hopefully with more data if it does). |
I'm optimistic... I've got 4 crashes of this kind total (on 3 different phone models and 2 Android versions), all still on 12.0.1+1. |
@noinskit did you gety around to upgrading the plugin version used in your app and if so any updates on this? |
I think it's fixed! I upgraded around October 11th and I didn't have any crashes of this kind since then. |
Thanks for update. Will close this then 🙂 |
Describe the bug
I got a production crash report in ActionBroadcastReceiver with the following stack trace:
The function I'm passing to
onDidReceiveBackgroundNotificationResponse
is annotated with@pragma("vm:entry-point")
(but I think the problem is happening earlier).Plugin version 12.0.1+1, Flutter 3.3.4.
To Reproduce
I don't know how to reproduce it myself, in my tests and for most production users it's all good.
The text was updated successfully, but these errors were encountered: