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

Found unreferenced, but undisposed Tensor data which might lead to GPU resource leak #3

Closed
ROBYER1 opened this issue Feb 7, 2021 · 0 comments

Comments

@ROBYER1
Copy link
Collaborator

ROBYER1 commented Feb 7, 2021

Running with Unity 2020.2.3f1 with Barracuda 1.0.4 or 1.3.0 preview in Editor, I get memory leaks and a load of yellow warnings for:

Found unreferenced, but undisposed Tensor data which might lead to GPU resource leak: (GPU:#-169063296 (1, 320, 320, 3) buffer: UnityEngine.ComputeBuffer created at: ) UnityEngine.Debug:LogWarning (object)

and also
''GarbageCollector disposing of ComputeBuffer allocated in D:\UnityProjects\BarracudaUNet2Test\Library\PackageCache\com.unity.barracuda@1.0.4\Barracuda\Runtime\Core\Backends\BarracudaReferenceCompute.cs at line 47. Please use ComputeBuffer.Release() or .Dispose() to manually release the buffer.''

Since this is in the update look, I tried adding m_worker.dispose(); at various points in the update loop and tried it in lateupdate but it didn't help

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

1 participant