Dimillian / IceCubesApp

A SwiftUI Mastodon client
https://apps.apple.com/us/app/ice-cubes-for-mastodon/id6444915884
GNU Affero General Public License v3.0
4.95k stars 466 forks source link

Bug: Probable memory leak with animations #1925

Closed bradheintz closed 6 months ago

bradheintz commented 6 months ago

Environment:

Description

Repro:

Other apps, including a re-launched IceCubesApp, will be similarly affected. Power-cycling the phone is necessary to restore normal functionality.

I haven't gone at it with debugging tools, but this has all the hallmarks of a major memory issue.

Related Issues

bradheintz commented 6 months ago

The issue appears to repro on IceCubesApp 1.10.26 running on macOS Sonoma 14.1.1 on a 2019 MacBook Air with 16GB RAM and no other apps running. Activity monitor shows Memory and Real Memory usage increasing monotonically, with scrolling becoming unusably jerky and new animations unusably slow to load before either of those reaches 1GB.

I haven't gone as far as inducing a crash on macOS.

I also checked the official Mastodon iOS client (same iPhone mentioned in the initial issue report) and Mastodon on the web (Firefox 121.0.1, same MacBook Air as above), and experienced no problems scrolling and no skyrocketing memory usage.

Dimillian commented 6 months ago

Amazing! Just found a huge leak!