MacBook Air memory leaks following the Sonoma Update

Any updates on when Apple will address the MAJOR issue of memory leaks ( AGAIN, this happened in Montery also ) on MacOS Sonoma, I have had nothing but crashes caused by memory leaks since upgrading and have several clients with BRAND NEW iMAC's and MACBook Air units with the same issues. This is CRAZY and Apple should have nevre released an OS with this BUG, especially since this is NOT the first time this has been an issue. Is anyone at Apple testing thigns anymore ?


[Re-Titled By Moderator]

MacBook Air (M1, 2020)

Posted on Oct 17, 2023 11:41 AM

Reply
Question marked as Top-ranking reply

Posted on May 23, 2024 4:23 PM

I've found a reliable way to reproduce this issue. I was working with Metal 3 to port my game engine to macOS, and noticed major memory leaks while resizing the application window. After hours of debugging I figured I might just revisit the "Hello Triangle" example directly from Apple. That leaked memory too.


So, for anyone with the will to reproduce this issue:

  • Obtain the official "Hello Triangle" Metal example from using_a_render_pipeline_to_render_primitives
  • Use a MacBook (maybe a Mac Studio is also affected?) with external monitors.
  • Resize the "Hello Triangle" window on an external monitor.


A few notes:

It does not happen when resizing the application on the built-in monitor.

My monitors are both 4K@240Hz (32GS95UE-B), which may be another factor important for this?

I am using HDMI 2.1 on one and DP 1.4 on the other, and both suffer from this issue.

The issue disappears if I comment out the `presentDrawable` call in the "Hello Triangle" example.


I would also like to make clear that I have resized the official "Hello Triangle" example application so much, that it ended up locking up my system (making my cursor stutter, music choppy, and inevitably freezing forcing me to do a full restart).


Hopefully this information allows for a prompt fix. I also own a Mac Studio with an M2 Ultra, which I will be testing this on shortly, so I might edit or follow up to specify if this is a laptop-specific issue.

33 replies

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

MacBook Air memory leaks following the Sonoma Update

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.