calcurse icon indicating copy to clipboard operation
calcurse copied to clipboard

Calcurse leaks memory over time

Open bartenbach opened this issue 3 years ago • 4 comments

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 image

bartenbach avatar Dec 11 '21 01:12 bartenbach

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.

bartenbach avatar Dec 27 '21 14:12 bartenbach

Thanks for the report. I think we'll need to run with a memory profiler to gather more information.

lfos avatar Mar 11 '22 17:03 lfos

@bartenbach Would you mind running with a tool like Valgrind to collect more information on the memory leak?

lfos avatar Mar 11 '22 19:03 lfos

@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

dymn avatar Mar 04 '24 10:03 dymn