System Information:
Operating system: Linux-5.4.0-7634-generic-x86_64-with-debian-bullseye
CPU: Ryzen 9 3900X
RAM: 32GB
Blender Version:
Broken: 2.90.0 rBfdfe85c616d2 (2020-06-22 15:41)
Worked: 2.83.0, 2.90.0 rBe079bf6996fc (2020-06-17 20:49)
Short description of error:
When I render an animation in Blender 2.90.0, Blender's memory usage continues to climb as each frame is rendered. Even when the animation is finished or canceled, the increased memory consumption is still there almost as if information from previous frames isn't being freed (It seems like it's probably BVH information). This issue does not occur in Blender 2.83.0 and older versions of 2.90.0.
Memory consumption when rendering a single frame when comparing 2.90.0 and 2.83.0 are very similar. This only really seems to affect animations.
For example, after rendering 20 frames from the animation file listed below, this is the memory usage of Blender:
| Blender 2.83.0 | 1.8GB |
| Blender 2.90.0 | 14.7GB |
Exact steps for others to reproduce the error
- Create a scene with lots of geometry (You can download a scene below)
- Set the render engine to Cycles with CPU rendering. (CUDA doesn't show this issue from my tests)
- Render an animation and monitor the memory (RAM) usage of Blender 2.90.0 compared to 2.83.0 using an external program like system monitor or top in the command line. Blender 2.90 should see the memory just continue to increase while 2.83 does not exhibit this behavior.
Bisecting points to a commit between rB99436acde8fb and rBf9d138be51e6 but I can't pin point it.
Testing with BVH2 (to avoid Embree) still shows the increased memory consumption.