-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Android crashed with OutOfMemoryError while select videos #2037
Comments
I will try with patch by chatgpt for a test
and add the code to AndroidManifest.xml
|
It worked! |
@krmao I tried and it worked now I'm able to select media greater than 1GB but as i exceed 1.5 Gb I'm getting negative media size and app is getting freeze (App not responding) |
Is there anyway in android where I can get the size of media without reading the whole file |
or use RNFS to read file size |
Thanks @krmao but to get the file path we have to use react-native-image-crop-picker and that's when the app is getting freeze how do I tackle that is there any native way of doing such things or any library I was using react-native-image-picker but it takes lot of time so I switched to RNICP |
Version
Tell us which versions you are using:
Platform
Tell us to which platform this issue is related
Expected behaviour
not crash
Actual behaviour
crash
Steps to reproduce
select big video
crash
Attachments
Sentry crash logs
the key is
The text was updated successfully, but these errors were encountered: