Toggldesktop: Small memory leak issue

Created on 16 Feb 2020  ยท  17Comments  ยท  Source: toggl-open-source/toggldesktop

๐Ÿ’ป Environment

Platform: macOS
OS Version: 10.14.6
Toggl Version: 7.5.42

๐Ÿž Actual behavior

A follow-up on #3766: Further monitoring of memory use indicate a small memory leak. Upon opening the Toggl application, the memory use is at ~60MB. Over time, it has been seen to rise gradually. Most recently, it's been seen at 280MB after the application has been opened for over 5 days. Others have reported memory usage of ~100MB at most. Certainly the patch in 7.5.42 fixed the high memory leak, but perhaps there is a secondary leak. For comparison, the memory usage level is comparable to Google Chrome.

๐Ÿ’ฏ Expected behavior

Lower memory usage

๐Ÿ”จ Steps to reproduce

  1. Start Toggl on macOS 10.14.6
  2. Monitor memory usage with time

๐Ÿ“ฆ Additional info

This does not appear to affect older Mac (e.g., Mac OSX 10.11.6)

Here's a screenshot of memory usage:
Screen Shot 2020-02-16 at 9 58 11 AM

bug lib macOS

Most helpful comment

Thank you for reporting @toszcze

Even though we fixed a bunch of leaking in our HTTPClient, but we believe that there is some leak in the Timeline feature when it records the Timeline Events

Reopen the ticket and I will investigate further ๐Ÿ‘

All 17 comments

Thank for the report. We also notice that there are still some small memory leaking too. Our team will keep investigating and completely fix it soon ๐Ÿ‘

I noticed that 7.5.49 is released but the changelog does not mention any memory leak issue fix. Could an update be provided? Thanks.

Sorry for that but the build 7.5.49 mainly focus on the Timeline v2 and we haven't investigated the memory leak further.

The memory usage after 6 hours. Version 7.5.85 on macOS 10.14.6. Please let me know if you need more details.

@NghiaTranUIT Has this fix been released yet? I'm using 7.5.113 and after few hours the memory usage went up to 1.82 GB. :/

@toszcze Memory leak fixes were done right after 7.5.113. Please try the latest beta, version 7.5.115, and let us know if you still experience high memory usage.

@skel35 Thanks! I just installed 7.5.115, let's see if it fixes the issue. Thanks for your hard work! ๐Ÿ‘

@skel35 Unfortunately the issue still exists. :/ I'm using 7.5.115, after ~16 hours the RAM usage went up to 1.88 GB.

Zrzut ekranu 2020-04-24 15 01 54

Thank you for reporting @toszcze

Even though we fixed a bunch of leaking in our HTTPClient, but we believe that there is some leak in the Timeline feature when it records the Timeline Events

Reopen the ticket and I will investigate further ๐Ÿ‘

Same here after about 12-hr of use with 7.5.115. Is there a way to disable/turn off Timeline? I don't use this feature generally.

Yes, you can turn off the Record Activity switch to avoid memory leak (see screenshot)

If you still encounter the memory leak, please report us ๐Ÿ‘

Preview-Timeline-v2

I actually have that "Record Activity" turn off.
Screen Shot 2020-04-24 at 6 36 23 AM

I also have the Record Activity turned off.

Also have same issue (Record activity off). After restart it use much less memory. My colegue have this issue with 2.94GB of memory use.
Screen Shot 2020-04-25 at 13 25 19
Screen Shot 2020-04-25 at 13 26 39

upd: version: 7.5.102

I like the Record Activity, but not long ago Toggl began to end up with 12โ€“14 GB of RAM to itself after a day of usage.
toggl v. 7.5.119
macOS 10.14.6

@here The memory leaking is finally fixed in the stable 7.5.123

Please download it and let us know the update ๐Ÿ‘ Thank you guys in advance ๐ŸŒฎ

I still have the issue in Mojave 10.14.6 and Toggle Desktop 7.5.123 with Record Activity set to off

Was this page helpful?
0 / 5 - 0 ratings

Related issues

IndrekV picture IndrekV  ยท  7Comments

jlaw9 picture jlaw9  ยท  4Comments

tanel picture tanel  ยท  4Comments

DustinJSilk picture DustinJSilk  ยท  7Comments

nidarasheed picture nidarasheed  ยท  5Comments