history panel initial load problem

Issue #253 resolved
dd1 created an issue

When I reload the history panel I often get an empty window saying “loading data” instead of correctly displayed history graphs. Maybe 1 out of 2-5-10 reloads. It is quite noticable when reloading the history code when I debug it.

It turns out there is a double call to draw(), one through onload → init() → db_copy(“/history/display”) → widowResize() → draw(), the other through onload → init() → mhistory_create() → initializePanel() → loadInitialData() → draw()

So the two branches of initialization race each other to draw().

I did not debug why draw() gets stuck if called twice.

K.O.

Comments (3)

  1. dd1 reporter

    I no longer see any problems after reloading the history plot page, so the problem must be fixed. K.O.

  2. Log in to comment