opencast / opencast-editor

Web-based video editor for Opencast
https://editor.opencast.org
Apache License 2.0
56 stars 42 forks source link

Editor crashes with some video inputs #1059

Open lkiesow opened 1 year ago

lkiesow commented 1 year ago

We have some instances where the editor completely crashes when trying to edit a video:

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
lkiesow commented 1 year ago

My guess would be that this is caused by duration bein null in edit.json.

lkiesow commented 1 year ago

Can confirm that the problem is the missing duration

Arnei commented 1 year ago

Potentially relevant: #253, #255, #329