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

GPU memory leak when stop capturing #77

Open
ldever opened this issue Jul 25, 2024 · 6 comments
Open

GPU memory leak when stop capturing #77

ldever opened this issue Jul 25, 2024 · 6 comments

Comments

@ldever
Copy link

ldever commented Jul 25, 2024

Hello Rob,

It seems like the GPU memory is not released after clicking stop capturing.
I did a few test on this and it seems like winrt::Windows::Graphics::Capture::GraphicsCaptureSession close() method didn't release GPU memory correctly. It's pretty simple to reproduce, just keep doing select display and stop capturing, and look at the task manager GPU memory usage of Win32CaptureSample.exe, it keeps increasing. Could you please help look at this issue? Or give me some guidance if I made something wrong to cause this GPU memory leak. Thanks!

@robmikh
Copy link
Owner

robmikh commented Jul 29, 2024

Thanks for reporting this!

What build of Windows are you seeing this on?

@ldever
Copy link
Author

ldever commented Jul 31, 2024

I'm seeing this on Windows 11 Home 23H2 22631.3880. It also happens on Windows Server 2022 21H2 20348.1129. Thanks for your time!

@ldever
Copy link
Author

ldever commented Aug 28, 2024

Thanks for reporting this!

What build of Windows are you seeing this on?

Hello Rob, could you please confirm if this is a WGC issue or my fault to use it wrong? Thank you

@robmikh
Copy link
Owner

robmikh commented Sep 24, 2024

Sorry for the delay! I tried a couple machines and my results are inconsistent. I wonder if this depends on the driver...

I'll need more time to investigate.

@robmikh
Copy link
Owner

robmikh commented Sep 24, 2024

Could you share GPU and driver version for the machines you're seeing this on? If you could match that to the Windows builds you already provided that would be very helpful.

@ldever
Copy link
Author

ldever commented Oct 10, 2024

Yes, GPU is NVIDIA GeForce RTX 3050 Laptop, driver version is 551.61.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants