-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Application crashes when uploading/downloading big files #4264
Comments
What is the output in the console? |
Edit: Slightly more information Steps I used:
|
This issue must be fixed |
@abugandar all issues must be fixed :) |
It might be simpler to whack a max filesize on the UX for starters, though this might be a relatively easy fix to stream upload the file rather than store the whole thing in memory first. |
I'm starting to see this happen on files as little as 100mb. Granted, my riot tab is also a few GB in size. |
Basically this is a huge no-no and we should be streaming the file but I guess it's easier to be lazy and do it this way. |
Did a little digging tonight when I couldn't upload a file. We would be better off not thumbnailing until after we have uploaded the file, because we block waiting for the video element to become ready before we upload. EDIT: Seems to crash way before the upload stage, at https://github.com/matrix-org/matrix-react-sdk/blob/master/src/ContentMessages.js#L166 EDIT 2: Okay so what I think is the problem, and I feel kinda dim for not spotting this sooner is that we create DataURLs for files when we thumbnail them. Now picture that with 100MB, and then a GB. Yeah? Oh dear. Right, so the easy solution is to do something like |
this also applies to download |
Just want to forward some of my findings and be explicit here that in impacts uploading profile pictures too. Tested on Ubuntu 18.04, Riot 1.5.3.
For large image files I would expect either a clear file size limit such as 1024 KB or 8 MB, and for the application to not stop responding during the uploading of the image. Later I can confirm the behavior with the latest version of Element, for now, I just ported the information from my previous bug report. |
bump as I still get problems uploading files >=1.6GB with the same symptoms as #21094. Tested with version 1.11.86 on Linux and Docker |
Description
When uploading video files above 500MB the application becomes white and freezes. After restart of the app it works but I am unable to upload a big video file. This happens only when dragging and dropping the video file.
Steps to reproduce
I upload smaller videos 130 MB in size, it uploads, shows a player and I can play my uploaded file. I expected the same with a big video file. But it crashes.
Log: not sent
Version information
For the desktop app:
The text was updated successfully, but these errors were encountered: