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
[image_picker] Recording video on Android 13 API 33 fails with java.lang.NullPointerException: Attempt to invoke virtual method 'void android.content.ContentValues.put(java.lang.String, java.lang.Long)' on a null object reference #118443
Comments
Hello @tomekit. Can you provide a complete and minimal, reproducible code sample? |
Sure, please find this repository which uses default Flutter project with: After clicking the + button, the If you try to this on e.g. Pixel 5 Android 30 emulator you should get Snackbar showing file location. Please let me know if this helps. Thanks ! |
@tomekit I cannot see any stack traces but I do see the video file null. How are you getting the error traces? |
I am not exactly sure. I wasn't getting it when checked after receiving your comment, but after playing around few times I am getting it consistently.
|
So I do reproduce the crash, so to speak but I do not get any logs in the console which is weird. I'll label the issue for further insights from the team |
Thanks for the info. By the way, recording video seem to be working fine on a real device, so it seems it is an emulator related issue. It seems similar bug can be found in a different cross-platform framework: react-native-image-picker/react-native-image-picker#2026 (comment) |
This comment was marked as off-topic.
This comment was marked as off-topic.
I also have this error when selecting now:
|
Is there any fix to this issue? I am too getting the error: I get this when I try to record a video, the camera opens but when i click on stop recording I get this error in the console. |
I am getting the same error with the example app as well. |
The |
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 |
I am using Android Pixel 5 API 33 emulator. When I try to record a video and get the file, just after clicking "stop record" button I get this error:
Flutter version
puspec.yaml
pubspec.lock
I can reproduce issue locally.
The text was updated successfully, but these errors were encountered: