-
Notifications
You must be signed in to change notification settings - Fork 722
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
FilePicker reports NPE crashes in Google Play Console #397
Comments
@Arcturus5404 hi! Thank you for reporting. This is quite odd actually, it’s throwing a null pointer on an array method in a place where it can’t ever be null (a few lines before it’s instanciated). Could you please post full stack trace? Thank you! |
That's all I have in Google Play Console I'm afraid.. One other interesting detail: I have 12 crash reports Not sure of that is of any matter of that its just 1 user trying several times in case of Samsung EDIT Huawei was on an old version, hence the edit! |
I checked your file as well.. can never be null.. is there something weird with my code perhaps? I use one for images:
and one for PDFs:
No clue which ons causes the crashes though :/ |
Does those crashes happen with apps that are using file picker 2.0.0 as well? |
Yes! Those are with 2.0.0 file_picker |
@Arcturus5404 which version of Flutter are you at? |
Hello, I've been having these same reports since launch (2 months ago). |
@DEMndz5 what are the steps to reproduce the issue? After picking? |
Yes, the app crashes right after picking. |
@DEMndz5 and you get a null pointer just like the OP? |
Yes, this is what I'm getting on the console: |
@DEMndz5 your issue looks different (it might actually be a bug) as it relates to a different line. How are you picking the files? PS: strangely, it references line 111 which is a blank line on latest version (only 112 has an |
I haven't updated to 2.0.0. I can try that later and post the results. |
@DEMndz5 I suspect you are using 1.13.2. Could you please try with 2.0.0 (you'll have to refactor a bit of code, but it's worth it) and let me know if it still happens, and if so, which line (perhaps open an issue with that)? Thank you. |
@Arcturus5404 I don't see nothing wrong with your code. Are you able to replicate it with a sample app? |
No I am not I'm afraid.. I tried all different kinds of emulators. I do not have these model phones, as I only use Pixels at home. I am on the following flutter version btw:
|
Maybe the issues are related from @DEMndz5, as I build my apks in release / app bundles? Maybe stuff gets confiscated when reports are being sent to the play console? |
@Arcturus5404 any news on this? |
@Arcturus5404 probably some of those OEM Android ROMS that might be interfering somehow with the correct activity lifecycle. It's not the first time that this happens, specially if those errors happens all on the same devices. |
Probably yes! I will keep an eye out on the crash monitor! :) Thanks for your time! Much appreciated |
@Arcturus5404 this should be fixed with 2.0.5. It turns out that if some devices destroyed activity while picking files, it could indeed result in a NPE. This was fixed today regarding #402. |
Describe the bug
Google Play Console reports the following:
Issue details
I currently have no way to reproduce this issue. It works on all emulators I have tested, so I have no idea how serious this problem is.
Error Log
None
Screenshots and/or video
None
Flutter Version details
flutter --version
Flutter 1.20.4 • channel stable • https://github.com/flutter/flutter.git
Framework • revision fba99f6cf9 (3 days ago) • 2020-09-14 15:32:52 -0700
Engine • revision d1bc06f032
Tools • Dart 2.9.2
Additional context
Version
The text was updated successfully, but these errors were encountered: