-
Notifications
You must be signed in to change notification settings - Fork 543
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
[macOS] Fullscreen, minimized and hidden (cmd+h) leaks memory and blocks. #2659
Comments
Just to provide another data point, I'm able to reproduce this with the quad example on my machine as well. Minimizing the window or switching to another workspace will cause the memory usage continuously climb up at a rapid pace. However, I can see the memory usage climb up (even though at a slower pace) even if I do nothing special, which seems to indicate that there's also another smaller memory leak (or several) in the Metal backend. GFX version: cd49595 |
There is frequent output in the console when running the quad example in these situations:
Which indicates the swapchain is being continuously recreated (the responsible The cause of the swapchain recreation appears to be recreating the swapchain in response to a present error that occurs sometimes when the window is offscreen. |
Could someone test if this is still an issue? It might be fixed by #2596 |
I remember testing this after #2835, and I could still see the memory usage climb while the window was minimized, but this time it recovered as soon as the window was unminimized. |
Could be addressed by #2863 |
I just got back from out of the country yesterday. Sadly it looks like the issues still persist. The first two times I tried to open it in full screen it crashed but the third time it did not crash but the memory usage continuously climbed up at a rapid pace. If you need any more information on the crash reports or more logs just let me know. Commit: 47d5b5c |
@termhn It is still there, but I am not sure if that patch you mentioned has been moved into |
I'm still seeing fullscreen windows leak memory when not visible, as in |
@aleksijuvani we are clearly not handling the case where a submitted command buffer doesn't get executed. If this is what happens on fullscreen, then it's clear how to investigate this. |
cmd+h and minimized is fixed with #2973 |
For the last problem, this choice makes it inefficient on Apple platforms. We should try to prefer "3" there. |
macOS 10.13.6
macOS 10.14.3
Intel HD Graphics 5000 1536 MB
Intel HD Graphics 6000 1536 MB
ATI Radeon HD 4850 with 512MB of VRAM
Radeon R9 M380 with 2GB of VRAM
Radeon Pro 570 with 4GB of VRAM
This issue is related to: gfx-rs/wgpu#78
The text was updated successfully, but these errors were encountered: