ispras / lingvodoc-react

Apache License 2.0
7 stars 11 forks source link

Clicking on zoom-slider in dialog that appeared after clicking a four-cell table: Uncaught TypeError: this.buffer is undefined #354

Open nadezhday opened 4 years ago

nadezhday commented 4 years ago

Open http://83.149.198.62/dictionary/2684/5/perspective/2718/123/view Click four-cell table icon. image

Result: Unnamed dialog appears. image

Click on zoom-slider image

Problem: console reports error:

image

TypeError: this.buffer is undefined getPeaks wavesurfer.min.js:4 drawBuffer wavesurfer.min.js:4 zoom wavesurfer.min.js:4 value react-wavesurfer.min.js:1 React 7 unstable_runWithPriority scheduler.production.min.js:19 React 9 unstable_runWithPriority scheduler.production.min.js:19 React 3 d raven.js:393 raven.js:55:31

jandrew44 commented 2 years ago

Exception occurs inside of "wavesurfer.js" library. It is either that library bug or the corresponding eaf file is corrupted.

nadezhday commented 2 years ago

@myrix can we do anything in this case?

myrix commented 2 years ago

@myrix can we do anything in this case?

See also https://github.com/ispras/lingvodoc-react/issues/260, looks like we should either fix wavesurfer.js library or replace it with another viewer, or even implement our own viewer.