Memory leak: Play animation for world material with lot of muted node groups #101486

Open
opened 2022-09-29 22:59:46 +02:00 by Gaonirico · 12 comments

System Information
Operating system: Linux-5.15.0-48-generic-x86_64-with-glibc2.31 64 Bits
Graphics card: NVIDIA GeForce GT 1030/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01

Blender Version
Broken: version: 3.4
Broken: version: 3.3
Broken: version: 2.93
Broken: version: 2.83
Broken: version: 2.80

This sample file does not open on version 2.93 and below (have to save uncompressed to be able to open it in 2.93 nd below)

Short description of error

Blender quit
Error: Not freed memory blocks: 18736245, total unfreed memory 5428.092384 MB

Steps to reproduce
Open file
Click play animation.
Wait.
memory leak.blend

**System Information** Operating system: Linux-5.15.0-48-generic-x86_64-with-glibc2.31 64 Bits Graphics card: NVIDIA GeForce GT 1030/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.65.01 **Blender Version** Broken: version: 3.4 Broken: version: 3.3 Broken: version: 2.93 Broken: version: 2.83 Broken: version: 2.80 This sample file does not open on version 2.93 and below (have to save uncompressed to be able to open it in 2.93 nd below) **Short description of error** ``` Blender quit Error: Not freed memory blocks: 18736245, total unfreed memory 5428.092384 MB ``` **Steps to reproduce** Open file Click play animation. Wait. [memory leak.blend](https://archive.blender.org/developer/F13593974/memory_leak.blend)
Author

Added subscriber: @gaonirico

Added subscriber: @gaonirico

Added subscriber: @mod_moder

Added subscriber: @mod_moder

image.png
Hi, thanks for report.
I can't reproduce RAM issues. Maybe your system is just using RAM as a replacement for video memory. As you can see, the load on the 3D core has increased for me. This happens because every frame you need to perform a bunch of operations. The bandwidth of RAM is much lower than that of video memory. I do not know if there is a real increase in memory costs, but I suspect that it is under heavy load.

![image.png](https://archive.blender.org/developer/F13593837/image.png) Hi, thanks for report. I can't reproduce RAM issues. Maybe your system is just using RAM as a replacement for video memory. As you can see, the load on the 3D core has increased for me. This happens because every frame you need to perform a bunch of operations. The bandwidth of RAM is much lower than that of video memory. I do not know if there is a real increase in memory costs, but I suspect that it is under heavy load.
Author

But it's strange, ram consumption never increases when all nodegroups are enabled. Consumption only starts to creep up when you disable/mute a group of nodes which doesn't make sense. Here I recorded my PC showing how this happens when playing the animation, first by muting the nodes (which makes the ram increase every few seconds) and then by enabling the nodes (which makes the ram consumption freeze). What I pointed out in the video is the ram usage that starts at 2.5 gigs and continues to increase beyond 4.7 gigs if you let the Blender animation play longer.

memory ram saturation video.mp4

But it's strange, ram consumption never increases when all nodegroups are enabled. Consumption only starts to creep up when you disable/mute a group of nodes which doesn't make sense. Here I recorded my PC showing how this happens when playing the animation, first by muting the nodes (which makes the ram increase every few seconds) and then by enabling the nodes (which makes the ram consumption freeze). What I pointed out in the video is the ram usage that starts at 2.5 gigs and continues to increase beyond 4.7 gigs if you let the Blender animation play longer. [memory ram saturation video.mp4](https://archive.blender.org/developer/F13593925/memory_ram_saturation_video.mp4)
Iliya Katushenock changed title from ram memory saturation to Memory leak: Play animation for world material with lot of muted node groups 2022-09-29 23:53:24 +02:00

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Thanks, now I can reproduce the error.

Thanks, now I can reproduce the error.
Author

Thank you for taking the report. Incidentally, I was testing with previous versions of Blender and the problem also occurs in Blender 3.3, 3.2 and 3.1 (I don't have the other versions installed). Either way, hopefully it can be fixed. Thanks to all the people of Blender for the great work they do with the program.

Thank you for taking the report. Incidentally, I was testing with previous versions of Blender and the problem also occurs in Blender 3.3, 3.2 and 3.1 (I don't have the other versions installed). Either way, hopefully it can be fixed. Thanks to all the people of Blender for the great work they do with the program.
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

This sample file does not open on version 2.93

That is because the file is saved compressed (if you save it with the Compress option disabled it opens in 2.93 and below)

The leak can be observed all the way back to 2.80

> This sample file does not open on version 2.93 That is because the file is saved compressed (if you save it with the Compress option disabled it opens in 2.93 and below) The leak can be observed all the way back to 2.80

Added subscriber: @m.studer

Added subscriber: @m.studer

I can also reproduce the error. After three hours of "deleting out" a project file i found out, how to reproduce:

  • Create a new file
  • Set shading mode to preview mode (i also activate Scnene lightnings)
  • Add a mix shader Node between BSDF and Output
  • Make it as a Group
  • Leave group
  • Mute The Node Group
  • Save .blend file
  • Goto terminal and open it again with "blender --open-last" (tested on ubuntu)

After the sahder is loaded, exit and the following message will appear:

Side note: You do not need to connect the group anywhere, just mute it, and the mem leak just happened.

markus@Host300:~$ blender --open-last
Read prefs: /home/markus/.config/blender/3.4/config/userpref.blend
Read blend: /home/markus/Desktop/untitled.blend
Saved session recovery to '/tmp/quit.blend'

Blender quit
Error: Not freed memory blocks: 88, total unfreed memory 0.031082 MB

Here is the file i created: leaking.blend

I can also reproduce the error. After three hours of "deleting out" a project file i found out, how to reproduce: - Create a new file - Set shading mode to preview mode (i also activate Scnene lightnings) - Add a mix shader Node between BSDF and Output - Make it as a Group - Leave group - Mute The Node Group - Save .blend file - Goto terminal and open it again with "blender --open-last" (tested on ubuntu) # After the sahder is loaded, exit and the following message will appear: Side note: You do not need to connect the group anywhere, just mute it, and the mem leak just happened. > markus@Host300:~$ blender --open-last > Read prefs: /home/markus/.config/blender/3.4/config/userpref.blend > Read blend: /home/markus/Desktop/untitled.blend > Saved session recovery to '/tmp/quit.blend' > > Blender quit > **Error: Not freed memory blocks: 88, total unfreed memory 0.031082 MB** Here is the file i created: [leaking.blend](https://archive.blender.org/developer/F14071218/leaking.blend)

Added subscriber: @vignette

Added subscriber: @vignette
Philipp Oeser removed the
Interest
Nodes & Physics
label 2023-02-10 08:43:36 +01:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
5 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#101486
No description provided.