Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Bug / Crash  Memory leak warning with GPU compute solver
#5
(02-05-2025, 04:36 PM)Softscale Wrote: Okay! Narrowed down the cause and it does seem to be a misconfiguration in one of my scenes but can be recreated fairly easily.

1. Create a new project, install Obi Fluid.
2. Open the "ComputeFluids" sample scene.
3. Create any 3d primitive object (cube, sphere, etc) and add Rigidbody and ObiRigidbody components to it (but not ObiCollider).
4. Enter play mode, exit play mode, and re-enter play mode again.

This causes a number of those "GarbageCollector disposing of GraphicsBuffer." warnings to appear in the console. If the rigidbody object has a proper ObiCollider component these warnings do not appear, nor do they appear with the Burst solver, only GPU compute.

Hi!

Tried these repro steps in a couple different computers (Mac and PC w/Windows11) and Unity versions (2021.3.4f1, 2023.2.20f1, 6000.0.27f1) but I wasn't able to get any warnings on the console.
Reply


Messages In This Thread
RE: Memory leak warning with GPU compute solver - by josemendez - 16-05-2025, 02:07 PM