alainm23 / planify

Task manager with Todoist & Nextcloud support designed for GNU/Linux 🚀
GNU General Public License v3.0
3.46k stars 205 forks source link

Very high memory usage #1391

Open janvlug opened 1 month ago

janvlug commented 1 month ago

Describe the bug Planify uses too much memory.

To Reproduce

  1. Start Planify
  2. Start using your computer while Planify is also running
  3. After a while Planify uses so much memory that the computer is mainly busy swapping

Expected behavior Limited memory usage

Desktop (please complete the following information):

I run Planify as a Flatpak. Planify version: 4.10.3 I use Planify with Nextcloud (CalDav - Nextcloud), with many task lists. It seems like Planify is nearly always synchronizing.

janvlug commented 1 month ago

Screenshot of top after running for a few hours: image

alainm23 commented 1 month ago

Hello and thank you for using Planify, this is a known issue and I am working to fix it.

qgjdev commented 1 month ago

Cheers @alainm23 , I was wondering the same, good to know you're working on a fix!

Katze-942 commented 2 weeks ago

I confirm that this happens every time the tasks are synchronized. In my case, automatic synchronization is enabled and the amount of memory consumed increases every 15 minutes.

alainm23 commented 2 weeks ago

@Katze-942 Apparently this feature not only affects Planify's performance, but also Todoist's servers, I have been notified that Planify is having a high load of requests and errors, and the only explanation I have is the automatic sync. I'm going to remove this feature for a while and look for a solution.

Katze-942 commented 2 weeks ago

@alainm23 removing the automatic synchronization function will not solve the problem, since memory increases both during manual synchronization and when switching between tabs (sometimes). For example, if you go to the tab with all tasks, memory consumption increases by gigabytes and does not decrease after a while.

P.S: This problem is also relevant for NextCloud, not only Todoist

janvlug commented 1 week ago

I checked my Nextcloud server logs, but did not see any logging related to this issue.

What I do see now in Planify is that a number, but not all of the task list keep a spinner behind them. Like they are never updated.

Currently using version: 4.11.0