App getting crashed while uploading large size file (Video).
Hi,
My app crashes whenever I try to upload a large video file. After debugging, here's what I found:
When I upload a video with these conditions:
Duration below 30 seconds
File size below 90MB
→ It works fine (e.g., the media shown in this image):
When I upload a video with:
Duration more than 30 seconds
File size above 90MB → It throws an error, but the app does not crash (example below):
However, when I try uploading this video:
→ The app crashes completely, and I can’t retrieve any logs.
After reviewing all these media files, I noticed one possible cause: The video that causes the crash is in 8K resolution, while the others are only HD or UHD.
My questions are:
Could the 8K resolution be the reason for the crash?
Is there any way to retrieve crash logs when the app fails so severely?
How can I prevent the app from crashing when handling such large or high-resolution media?
Please help me resolve this as soon as possible. It's blocking a key part of my app’s functionality.
Thanks!
Facing the same issue.
Yes its a bug in this package but you can manage this in this using on andriod side you have to apply a filesize check before pickup the media that can be done in native files of this package.
@Nishad013 here it is resolved https://github.com/ivpusic/react-native-image-crop-picker/issues/2037#issuecomment-2116853708