Skip to content
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

Examples leak memory when minimized / hided by another window on macOS #206

Open
teenjuna opened this issue Sep 21, 2021 · 5 comments
Open
Labels
bug Something isn't working help wanted Extra attention is needed question Usability question upstream bug Bug appears to originate in an upstream dependency

Comments

@teenjuna
Copy link

I think it's related to #174. Here is a demo for minimal-winit:

Untitled.mov
@teenjuna
Copy link
Author

I think there's an issue with video displaying. Here is the direct link: https://user-images.githubusercontent.com/53595243/134104056-caa2d953-0302-4e55-a9d6-e40a09cc2c36.mov

@parasyte
Copy link
Owner

Is this test being run on an M1 Mac? It is possible that the leak is caused by gfx-rs/wgpu#1783

#174 is responsible for creating thousands of frames that never get displayed (so the uptick in memory usage is expected) but it shouldn't cause any "permanent" leaks.

@parasyte parasyte added bug Something isn't working help wanted Extra attention is needed question Usability question upstream bug Bug appears to originate in an upstream dependency labels Sep 21, 2021
@teenjuna
Copy link
Author

Yeah, this is indeed being run on M1 Mac.

@parasyte
Copy link
Owner

parasyte commented Sep 21, 2021

Thanks for the confirmation. The leak is definitely caused by the upstream wgpu issue linked above. We'll need to use whatever they implement to fix that one.

I'll keep the bug label on this one though, since the lack of rate limiting when windows are occluded on examples is definitely our bug. :)

@teenjuna
Copy link
Author

Okay :)
Thank you for the response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed question Usability question upstream bug Bug appears to originate in an upstream dependency
Projects
None yet
Development

No branches or pull requests

2 participants