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

get_current_texture memory leak on OSX #2126

Closed
FredrikNoren opened this issue Oct 29, 2021 · 2 comments
Closed

get_current_texture memory leak on OSX #2126

FredrikNoren opened this issue Oct 29, 2021 · 2 comments
Labels
type: bug Something isn't working

Comments

@FredrikNoren
Copy link

Description
get_current_texture seems to be leaking memory on OSX when the application is not visible on the screen.

Repro steps
Start a wgpu application, move it behind something or to another desktop so that it's not visible, check memory usage.

Extra materials
I'm using this method to run it with tokio: https://gist.github.com/FredrikNoren/7c3535b11e99e8fcd8dd3d55f9a934a2
I used cargo-instruments to profile the application.
Screenshot 2021-10-29 at 11 14 04

Platform
OSX, M1 Air 2020, Big Sur, wgpu 0.11.0

@FredrikNoren
Copy link
Author

Here's the stack trace as well:
Screenshot 2021-10-29 at 11 35 10

@cwfitzgerald
Copy link
Member

Duplicate of #1783.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants