history panel initial load problem
Issue #253
resolved
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)
-
-
reporter I no longer see any problems after reloading the history plot page, so the problem must be fixed. K.O.
-
reporter - changed status to resolved
confirmed fixed. K.O.
- Log in to comment
Should be fixed by 02a7884