opencast-editor
opencast-editor copied to clipboard
Editor crashes with some video inputs
We have some instances where the editor completely crashes when trying to edit a video:
- Pausing the video playback in the editor will jump back to the beginning
- There is no background for the timeline
- Seeking (after playback) will crash the whole editor
https://github.com/opencast/opencast-editor/assets/1008395/d6762a59-89d2-4e85-b892-cc08f41c0dc4
Stack trace from the browser console:
TypeError: HTMLMediaElement.currentTime setter: Value being assigned is not a finite floating-point value.
value FilePlayer.js:431
value Player.js:387
n ReactPlayer.js:155
Og Video.tsx:254
Fs React
unstable_runWithPriority scheduler.production.min.js:18
React 4
unstable_runWithPriority scheduler.production.min.js:18
React 6
T Draggable.js:160
_ DraggableCore.js:242
addEvent domFns.js:104
_ DraggableCore.js:213
_ DraggableCore.js:323
React 11
unstable_runWithPriority scheduler.production.min.js:18
React 11
<anonymous> index.tsx:31
promise callback* index.tsx:28
<anonymous> index.tsx:24
<anonymous> index.tsx:24
react-dom.production.min.js:216:199
Uncaught TypeError: HTMLMediaElement.currentTime setter: Value being assigned is not a finite floating-point value.
value FilePlayer.js:431
value Player.js:387
n ReactPlayer.js:155
Og Video.tsx:254
Fs React
unstable_runWithPriority scheduler.production.min.js:18
React 4
unstable_runWithPriority scheduler.production.min.js:18
React 6
T Draggable.js:160
_ DraggableCore.js:242
addEvent domFns.js:104
_ DraggableCore.js:213
_ DraggableCore.js:323
React 11
unstable_runWithPriority scheduler.production.min.js:18
React 11
<anonymous> index.tsx:31
promise callback* index.tsx:28
<anonymous> index.tsx:24
<anonymous> index.tsx:24
FilePlayer.js:431:6
My guess would be that this is caused by duration
bein null
in edit.json
.
Can confirm that the problem is the missing duration
Potentially relevant: #253, #255, #329