archiver-appliance / epicsarchiverap

This is an implementation of an archiver for EPICS control systems that aims to archive millions of PVs.
Other
39 stars 39 forks source link

Interacting with the X-axis during live data freezes the viewer #121

Open AbdallaDalleh opened 3 years ago

AbdallaDalleh commented 3 years ago

If you choose live data and then move the X-axis to align the plots, the time slots bar freezes and does not respond but the toolbar seems to still work.

Steps to reproduce:

  1. Plot any PV.
  2. Press live.
  3. Move the horizontal axis during live plot.
  4. Press any time frame button, the viewer does not respond.

This error appears on the browser's console:

Uncaught (in promise) undefined Uncaught TypeError: Cannot read property 'length' of undefined at r.drawData (plotly-1.41.2.min.js:7) at Object.l.syncOrAsync (plotly-1.41.2.min.js:7) at t (plotly-1.41.2.min.js:7) at Object.r.call (plotly-1.41.2.min.js:7) at plotly-1.41.2.min.js:7 at Object.l.syncOrAsync (plotly-1.41.2.min.js:7) at Object.Nt [as doneFn] (plotly-1.41.2.min.js:7) at HTMLDocument.A (plotly-1.41.2.min.js:7)

It seems this was a known issue in plotly library. I think upgrading it should solve the issue, so I tried loading plotly-2.0.0.min.js in archViewer.html and everytime I load the viewer the newer version does not load.