-
Notifications
You must be signed in to change notification settings - Fork 28.6k
[image_picker] [Android] java.lang.SecurityException io.flutter.plugins.imagepicker.FileUtils.getPathFromUri #100025
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
Comments
Hi @knnkrt, how many devices are experiencing this ANR, and what are their os versions? What version of flutter was used to deploy the app and what version of |
Hi @danagbemava-nc , Only happened on [Samsung Galaxy E5] Android 5.1 (SDK 22) for 3 times. Flutter 2.10.3 (stable and last version) |
Hi @knnkrt, can you share the contents of your |
Hi @danagbemava-nc ,
|
Hi @knnkrt, can you please provide the full output of Thank you |
Hi @danagbemava-nc ,
|
Labeling for further investigation |
I've seen the same in my Google Play developer console. Affected device was Samsung Galaxy Note10 Lite with Android 12 (SDK 31).
|
By the looks of it the To come up with a solution I have tried to reproduce the issue, but I was unable to. I tested the current newest version of the image picker (0.8.7+4) on
|
Absent a way to repro, I think the best option would be to wrap the failing call in a try/catch for |
Issue flutter/flutter#100025 mentions crashing of the image picker plugin due to a `SecurityException`. As research into the issue did not yield reproduction steps, we decided to surround the breaking method call with a `try/catch` block for now (see discussion in the issue). This PR implements just that. Instead of crashing on a `SecurityException`, the plugin will now return an image path of `null`. This PR fixes flutter/flutter#100025.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
Issue flutter/flutter#100025 mentions crashing of the image picker plugin due to a `SecurityException`. As research into the issue did not yield reproduction steps, we decided to surround the breaking method call with a `try/catch` block for now (see discussion in the issue). This PR implements just that. Instead of crashing on a `SecurityException`, the plugin will now return an image path of `null`. This PR fixes flutter/flutter#100025.
I see an ANR on Google Play Store Console relating to
[Samsung Galaxy E5]
Android 5.1 (SDK 22)
The text was updated successfully, but these errors were encountered: