You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you look at Activity Monitor, you'll see its memory grows indefinitely. I've also tried iterating over menu keys() and deleting them but didn't fix the leak.
Am I doing something wrong or is it the rumps which leaks memory under the hood?
The text was updated successfully, but these errors were encountered:
Not sure exactly where the leak occurs (whether in rumps or in the underlying pyobjc bridge), but to get around it you can modify menu items in-place rather than remake the whole menu each time, like so:
Hello,
I've spotted my app which updates its menu regularly reaches multiple GB's of memory over time.
Here is an example code similar to my code's logic, which uses exaggerated values for quick demonstration purposes:
If you look at Activity Monitor, you'll see its memory grows indefinitely. I've also tried iterating over menu
keys()
anddel
eting them but didn't fix the leak.Am I doing something wrong or is it the rumps which leaks memory under the hood?
The text was updated successfully, but these errors were encountered: