-
Notifications
You must be signed in to change notification settings - Fork 434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GPU Memory leak on A12Z-based iPad Pro, ATV 4K 1st Gen #2341
Comments
I am having difficulty debugging a memory leak, and I'm not sure where to go from here. The leak was caused by this commit in moltenvk. If I revert that commit, the leak goes away. If I move the I've used I've tried creating static counters in the constructors/destructors of This leak does not happen on my iPhone 15 Pro, but does happen on my (relatively old now) A12Z-based iPad Pro, with the exact same IPA. I've also seen it on my 1st gen ATV4K (and confirmed the same commit causes it), but never on any of my Macs. |
I've tried to use the Metal System Trace instrument to compare the Metal Resource Events between builds with/without the image retain/release, and I believe this is the offending stack trace:
|
It's coming from this line; I believe |
Thanks for all your incredible detective work! I appreciate you digging into this so thoroughly! And great catch! And thanks for providing PR #2345 This was a significant per-frame leak. Out of curiosity, under what conditions was |
…ng image-memory unbinding (KhronosGroup#2341)
Fix leak where texel buffer is occasionally accidentally created during image-memory unbinding (#2341)
Starting with 188a21a, on these older devices, I'm seeing a GPU memory leak of about 22MB per second. I don't see it under the same usage scenarios on my M2 Mac or my iPhone 15 Pro.
ipad.log
The text was updated successfully, but these errors were encountered: