react-native-image-crop-picker icon indicating copy to clipboard operation
react-native-image-crop-picker copied to clipboard

App getting crashed while uploading large size file (Video).

Open Nishad013 opened this issue 8 months ago • 3 comments

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): 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):

Image

However, when I try uploading this video:

Image → 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!

Nishad013 avatar Apr 11 '25 12:04 Nishad013

Facing the same issue.

jagatjeeban avatar Apr 14 '25 13:04 jagatjeeban

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.

HituChhimpa7 avatar Apr 23 '25 01:04 HituChhimpa7

@Nishad013 here it is resolved https://github.com/ivpusic/react-native-image-crop-picker/issues/2037#issuecomment-2116853708

HaroonLiaqat avatar May 23 '25 13:05 HaroonLiaqat