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
[media-library] RuntimeException "setDataSource failed" in MediaLibraryUtils.java #9839
Comments
Hi @lukmccall, |
It will try to get move size and orientation from the Android database. I don't know if it returns the correct value - they can be flipped see. But I don't think we can do anything better in this case. |
Ok, so it will return that video in assets array but size and orientation may not be right. It is not a problem for me since i am not using that props in my app. Thanks again! |
I did more investigation about this crash, because it's not the first time I see this happening - last time I caught it in |
Hi @barthap i am listing all devices that crashed. Since #9855 i am not seeing any crashes in crashlytics. Huawei P40 Lite Android 10 |
…taRetriever` failed (#9855) # Why Probably fixes #9839 - I can't reproduce it. Hovewer, with `setDataSource failed: status = 0x80000000` we can't do anything. # How Prevent from crashing when `MediaMetadaRetriver` throws a `RuntimeException`. # Test Plan - expo-client ✅ # Changelog - Fixed `RuntimeException: setDataSource failed: status = 0x80000000` caused by `MediaMetadataRetriever`.
…taRetriever` failed (#9855) # Why Probably fixes expo/expo#9839 - I can't reproduce it. Hovewer, with `setDataSource failed: status = 0x80000000` we can't do anything. # How Prevent from crashing when `MediaMetadaRetriver` throws a `RuntimeException`. # Test Plan - expo-client ✅ # Changelog - Fixed `RuntimeException: setDataSource failed: status = 0x80000000` caused by `MediaMetadataRetriever`.
🐛 Bug Report
Summary of Issue
I am seeing some crash reports from users regarding to expo-media-library. When setDataSource called from
MediaLibraryUtils.java
, it throws a RuntimeException.Environment - output of
expo diagnostics
& the platform(s) you're targetingBare react native project
"react-native": "0.63.2"
"expo-av": "^8.6.0",
"expo-media-library": "^9.2.0",
"react-native-unimodules": "^0.10.1",
buildToolsVersion = "29.0.0"
minSdkVersion = 21
compileSdkVersion = 29
targetSdkVersion = 29
Stack Trace
I have two different stack traces but i think it is related to each other.
There are some stack overflow questions with same error. You can see from this links. 1 2.
One of them says
and the other one says
So maybe we just need to handle this exception to solve this. Sorry, i don't have a reproducible demo since i am not experiencing this. I will update it if i can reproduce the issue.
Thanks!
The text was updated successfully, but these errors were encountered: