Memory leak by design in the console and log #110
Labels
discussion needed
Need to wait until discussion is resolved
Priority: High
Needs to be addressed as soon as possible
Status: Available
Ready for pickup
Type: Bug
This is a confirmed or unconfirmed bug
Describe the bug
Both the Python console and the log have infinite scrollback. This causes high memory consumption of a few tens to hundreds additional MB when you leave HAL running for a long time (I like to have the tool in a VM and just hibernate that VM, i.e. HAL is never closed) or you print an insanely large amount of data from your Python script.
To Reproduce
top
and see the memory usage of the hal processExpected behavior
HAL should only keep the last few hundred lines of console and log loaded and visible. Older data should be removed from the widgets to save memory.
If you really, really want an infinite scrollback buffer you could put it on a disk and load it on demand / map it into memory.
The text was updated successfully, but these errors were encountered: