alexzielenski / Mousecape

Cursor Manager for OSX
http://www.alexzielenski.com
Other
1.38k stars 166 forks source link

Mousecloak Helper Memory Leak #94

Closed ghost closed 4 years ago

ghost commented 5 years ago

It appears that the helper endlessly consumes memory without releasing it. The memory usage of com.alexzielenski.mousecloakhelper on my system has been slowly increasing, and is now at 408.8MB after 11 days of uptime.

image

NordJan commented 5 years ago

Hmm, your issue made me look, but with almost 8 days uptime, I find a very different picture: screen shot 2018-11-07 at 13 17 42 I will keep a close watch on this and report back in about 3 days.

ghost commented 5 years ago

After a reboot and 2 days uptime, now it is using 122.8mb.

I am on El Capitan. Maybe that has something to do with it?

NordJan commented 5 years ago

Four days later, now 11 days uptime: screen shot 2018-11-11 at 16 00 06 I am on MacOS Mojave 10.14.1, so I guess you could be right about the OS. Cheers.

ghost commented 5 years ago

Oh, another thing; I use two user accounts, so maybe the issue is caused by using a different user than the one mousecloakhelper is used in.

alexzielenski commented 4 years ago

Does this still happen for you? I've taken a look around and anywhere Mousecape does not use ARC in its helper tool its very strict about releasing allocated objects.

EDIT: I found a pretty big leak using instruments in the helper tool. I have patched it up and instruments reports no leaks and I'm seeing constant memory usage across applications. Update coming soon.

alexzielenski commented 4 years ago

I'm pretty confident 21626bfc19f95090f9dcf79fa01da242f8370e17 fixed this. New release build will be uploaded soon so re-open if it is not fixed.