chucker / Mastonaut

Simple, elegant, and native Mastodon client for Mac.
GNU General Public License v3.0
121 stars 7 forks source link

Slow memory leak may become Fast memory leak when loading timeline images #180

Open dcwar opened 4 weeks ago

dcwar commented 4 weeks ago

Hi!

While Mastonaut normally has a slow memory leak, I discovered this afternoon that loading an image in my home feed (AFAICT) can blow out the slow memory leak, launching memory utilization into orbit around Jupiter…. quickly becoming unresponsive around the 35GB utilization level, and getting a system warning at 64GB utilization. (I was able to reproduce this several times, by scrolling my home feed down to what I can only guess is a problematic image.)

This incident occurred on a M2 MacBook Air, running Ventura 13.6. I don't have any available diagnostic information, and I'm not certain how I could get that to you given the circumstances in which it occurred. This is the first time that this particular problem has happened in over a year of more-or-less continuous use.

However, I am relaying this information as-is due to the seriousness of the issue (potentially malformed images can cause memory leak).

dcwar commented 4 weeks ago

Additional information:

After the user has Force Quit the program, the application will resume quickly consuming all memory on relaunch. Clearing the contents of ~/Library/Containers/me.chucker.mastonaut.mac/Data/Library/Saved\ Application\ State/me.chucker.mastonaut.mac.savedState will stop this behavior, however.