image_picker_web icon indicating copy to clipboard operation
image_picker_web copied to clipboard

Target crashed

Open MauroGentile opened this issue 2 years ago • 5 comments

As part of a Flutter web application, I allow authenticated users to pick multiple large (~4Gb) mp4 files and upload them to Google storage.

I first picked the file:

List<html.File>? picked =
                      await ImagePickerWeb.getMultiVideosAsFile();

And then upload them though via putFile. In some cases, the upload crashed with the message "Debugger: Target crashed!!!"

I opened a issue to Firebase/Flutterfire https://github.com/firebase/flutterfire/issues/11341 initially believing it was their problem.

But following their instructions, we made some tests which seems to point image_web_picker as responsible for the issue. Please refer to the link provided above for the details.

I would be thankful if you could assist to solve this problem

MauroGentile avatar Dec 15 '23 08:12 MauroGentile

This looks similar to this issue https://github.com/Ahmadre/image_picker_web/issues/35 Have you checked the big_video_upload example and tried to use FileReader to see if it helped?

TesteurManiak avatar Dec 15 '23 09:12 TesteurManiak

Hello @TesteurManiak First of all thank you for your prompt answer. I tried the snippet. On the problematic file I get the exact same problem: Debugger: Target crashed!

MauroGentile avatar Dec 15 '23 10:12 MauroGentile

From what I understand this bug happens with specific files, do you think you'd be able to share one of those files so I'll be able to reproduce this behavior?

TesteurManiak avatar Dec 15 '23 10:12 TesteurManiak

hello, yes, that's correct: the problem happens with specific mp4 files that apparently have no problem.

Reporting what I wrote in the flutterfire ticket: The problem occurs only for some files. Most of the time it does not pop up. The problematic MP4 file is not corrupted (we can watch the content). The file is less than half the size of the files I usually load successfully (1.6 vs. 4 GB). The error is persistent, which means that a problematic file ALWAYS throws an error, so it cannot be a network problem. The error occurs both on different computers also in different networks) and on different browsers. The problematic file can be loaded to GCP without problems either from the shell using normal gsutils or using the python API.

Yes, I can share the file with you, but not publicly: it is a video a customer shared with us, authorizing us to share only to debug the issue. May I send you the link by email?

MauroGentile avatar Dec 16 '23 07:12 MauroGentile

You can share it to me at the email address in my profile

TesteurManiak avatar Dec 18 '23 08:12 TesteurManiak

This issue was closed because it has been stalled for 5 days with no activity.

github-actions[bot] avatar Jun 11 '24 01:06 github-actions[bot]