memory leak in 'reload all'

Bug #375015 reported by Selene ToyKeeper
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
TKDO
Confirmed
Medium
Unassigned

Bug Description

The 'reload all' function causes TKDO's process to grow noticably. Also, any function which modifies a task seems to leak a bit too. So, to keep memory use low, it's currently necessary to quit and restart TKDO periodically.

Specifically, the Taskfile.load() function seems to leak. When reloading, it seems as if the old data never gets garbage collected, so memory grows by the size of the task file every time it reloads.

I've tried a bit to fix this, and haven't had much success. I've tried explicitly removing links between parent/child tasks before reloading and destroying the task's text lines, but that only reduced the problem slightly.

While this doesn't generally cause problems, I want to get it fixed because every editing operation in TKDO causes at least one task file to reload after each edit. The general concept is edit, save, then reload... this makes sure all changes get saved to disk immediately, and makes sure the view stays in sync with the actual files. But it also makes memory leak.

Changed in tkdo:
importance: Undecided → Medium
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.