Closed KyleMaas closed 8 months ago
Actually just ran into this again. Went into MediaCMS Administration, edited the media, disabled downloads, and it pulled up just fine. Encoding is still ongoing, but the video is showing up on the homepage so I'd rather it didn't just crash.
This is an issue I'm seeing on nearly a daily basis now.
Nice description, I've merged this, would be great if you can update and confirm that it is resolved
Same issue here:
Will fix and issue another pull request.
That seems to have fixed it.
Describe the issue I've experienced this problem multiple times on multiple video uploads. For best reproducibility, you have to upload a very long video with a huge file size so it takes a while to encode. Otherwise the time period in which this occurs is too short. But when this happens the problem persists for several minutes.
If a video is uploaded and during the encoding process one encoding fails (where, under MediaCMS Administration->Encodings->the relevant encoding, the Status is listed as Fail and there is no encoding file) but the others succeed, and the video has downloads enabled, and you try to view the video in the browser on the frontend before the transcoding process finishes cleaning up faulty encodings, it crashes the frontend. It quickly flashes most of the page up on the screen, starts playing the video, but then the entire screen goes blank. The audio from the video continues playing but the video is hidden along with the rest of the UI, which means you can't pause it or anything else. Relevant information from the media info response:
Digging into the exception on the console, it comes from here:
https://github.com/mediacms-io/mediacms/blob/15d217453bd0d08bb7e3250c6d4b1b5a44e92dcb/frontend/src/static/js/components/media-actions/VideoMediaDownloadLink.jsx#L25
Or, rather, from
formatInnerLink
's inability to format a first parameter which isnull
.To Reproduce Steps to reproduce the issue:
Expected behavior I would expect that the frontend could somehow cope with the URL of an encoding being
null
or that only encodings which have succeeded and have a file being passed to the frontend when it requests media information.Screenshots Can't submit screenshots for this. But when the error manifests, the entire screen is blank white. No UI elements are shown at all other than the browser's built-in interface (address bar, etc.).
Environment (please complete the following information):
Additional context This only really happens right after uploading a video that causes an encoding to fail. For videos which are several hours long, the period you can catch this error in can last several minutes before the faulty encodings are cleaned up.