The RAM used by the RodTracker application increases every time the plots in the 3D-Reconstruction tab are updated. It is expected that the used RAM increases the first time the plotting of the loaded dataset is performed but not, that it increases with every update of the plots.
It appears, that the Figure objects are not correctly destroyed after they are removed from display in the GUI.
In extreme cases this will lead to a crash of the application.
To Reproduce
Steps to reproduce the behavior:
Load a rod position dataset (from *.csv).
Update the plots using the Update Plots button in the 3D-Reconstruction tab
Change a setting in the 3D-Reconstruction tab that leads to a change in the plotted data, i.e. Start Frame, End Frame, or the ticked Particle Colors.
Update the plots using the Update Plots button.
Observe the currently used RAM increase (amount depends on the loaded dataset, for example ~30 MB per plot update).
Repeat steps 3.-5.
Expected behavior
The used RAM should only fluctuate a little and even decrease when one or multiple plots are removed, or when the plotted frame range is decreased significantly.
This has been addressed in 0a022a6f41dc98bfff82e9df427642624486e65f. Automatic plot updating has been disabled for now to avoid frequent application crashes.
Describe the bug
The RAM used by the RodTracker application increases every time the plots in the
3D-Reconstruction
tab are updated. It is expected that the used RAM increases the first time the plotting of the loaded dataset is performed but not, that it increases with every update of the plots. It appears, that theFigure
objects are not correctly destroyed after they are removed from display in the GUI. In extreme cases this will lead to a crash of the application.To Reproduce Steps to reproduce the behavior:
*.csv
).Update Plots
button in the3D-Reconstruction
tab3D-Reconstruction
tab that leads to a change in the plotted data, i.e.Start Frame
,End Frame
, or the tickedParticle Color
s.Update Plots
button.Expected behavior
The used RAM should only fluctuate a little and even decrease when one or multiple plots are removed, or when the plotted frame range is decreased significantly.
Desktop: