calcurse
calcurse copied to clipboard
Calcurse leaks memory over time
Version information. calcurse 4.7.1 -- text-based organizer
Bug description. If left running in the background for several days, calcurse slowly eats memory. Eventually, it begins to use more memory than anything else on my system.
If calcurse is stopped, the memory is eventually freed and it can be started again.
Reproduce. Step 1. Start calcurse. Step 2. Wait.
Expected Behavior. I would expect that calcurse would not require more memory than a web browser to function.
Screenshots.
top output sorted by memory usage
Update: I think this may be dependent on the daemon being set to true. It doesn't look like this is happening with the daemon shut off.
Thanks for the report. I think we'll need to run with a memory profiler to gather more information.
@bartenbach Would you mind running with a tool like Valgrind to collect more information on the memory leak?
@lfos, i have the same problem with 4.8.1 version. With a total memory capacity of 32 GB (Gentoo), after about 24 hours, Calcurse consumes about 360 MB of memory. After exiting Calcurse, but the daemon is in memory, the consumption does not change.
Every 5 minutes, the following command is run with cron to update the Calcurse:
calcurse-caldav; kill -USR1 $(pidof calcurse)
Below is the command log
valgrind --leak-check=full --leak-resolution=med --log-file=/home/dymn/calcurse-leak.log calcurse
calcurse-leak.log