EEVEE memory leak #62356

Closed
opened 2019-03-08 13:02:55 +01:00 by Nikolaij · 9 comments

System Information
Operating system: Windows 10 64 bit
Graphics card: Nvidia GeForce GTX 950 OC

Blender Version
blender-2.80-a280867ac2ed-win64
(03.07.2019)

Short description of error
I rendered an animation now for the 2nd time and memory usage increased over time until my PC crashed, at the beginning it used about 4GB RAM and it increased over time to 14GB then more, black screen...
Then I forced my PC to reboot rendered again and the memory leak apeared again, but this time it didnt crash my system.

Im not sure if its a problem of blender or windows because the taskmanager says blender is using only 3-4GB. But the overall usage increases with blender running.
(when terminating blender the memory becomes avalible again)

I dont exactly know if this is important for this bug, or if has something to do with it or if one should start an other thread for this, but i noticed some frames beeing either full black or white. These are only a view but they apear in "blocks", a 2dn render of these frames fixed it. (about 10 of 250 frames)

Exact steps for others to reproduce the error
Just open the file and pres Ctrl F12.
(It's a smoke simulation so i suggest to bake it, for test reasons a lower resolution might work out)
skull.blend

**System Information** Operating system: Windows 10 64 bit Graphics card: Nvidia GeForce GTX 950 OC **Blender Version** blender-2.80-a280867ac2ed-win64 (03.07.2019) **Short description of error** I rendered an animation now for the 2nd time and memory usage increased over time until my PC crashed, at the beginning it used about 4GB RAM and it increased over time to 14GB then more, black screen... Then I forced my PC to reboot rendered again and the memory leak apeared again, but this time it didnt crash my system. Im not sure if its a problem of blender or windows because the taskmanager says blender is using only 3-4GB. But the overall usage increases with blender running. (when terminating blender the memory becomes avalible again) I dont exactly know if this is important for this bug, or if has something to do with it or if one should start an other thread for this, but i noticed some frames beeing either full black or white. These are only a view but they apear in "blocks", a 2dn render of these frames fixed it. (about 10 of 250 frames) **Exact steps for others to reproduce the error** Just open the file and pres Ctrl F12. (It's a smoke simulation so i suggest to bake it, for test reasons a lower resolution might work out) [skull.blend](https://archive.blender.org/developer/F6784320/skull.blend)
Author

Added subscriber: @FATTOMCAT

Added subscriber: @FATTOMCAT

Added subscribers: @fclem, @ZedDB

Added subscribers: @fclem, @ZedDB
Clément Foucault was assigned by Sebastian Parborg 2019-03-08 15:36:58 +01:00

I can confirm this on my end too.
During baking there seems to be no problems, but during rendering the memory usage grows until it starts swapping for me. When I then stop rendering, the memory is not freed and stays there and continues to grow after I start the rendering from scratch.

I do get this warning when I quit:
Error: Not freed memory blocks: 1011, total unfreed memory 0.280533 MB

But the amount of unfreed memory from animation rendering to the next one is around 5GB for me.

@fclem any idea what could be going on?

I can confirm this on my end too. During baking there seems to be no problems, but during rendering the memory usage grows until it starts swapping for me. When I then stop rendering, the memory is not freed and stays there and continues to grow after I start the rendering from scratch. I do get this warning when I quit: Error: Not freed memory blocks: 1011, total unfreed memory 0.280533 MB But the amount of unfreed memory from animation rendering to the next one is around 5GB for me. @fclem any idea what could be going on?
Member

Added subscriber: @JacquesLucke

Added subscriber: @JacquesLucke
Member

@FATTOMCAT, are you able to reproduce the issue in a new file that has as few objects in it as possible?

@FATTOMCAT, are you able to reproduce the issue in a new file that has as few objects in it as possible?
Author

Im currently rendering on my only machine so it may take a while until I can awnser your question.

Im currently rendering on my only machine so it may take a while until I can awnser your question.
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Clément Foucault was unassigned by Jeroen Bakker 2019-03-22 12:42:32 +01:00
Jeroen Bakker self-assigned this 2019-03-22 12:42:32 +01:00
Member
GPUShaderInterface: Warning: Uniform 'attr' not found!
GPUShaderInterface: Warning: Uniform 'colorBuffer' not found!
GPUShaderInterface: Warning: Uniform 'depthBuffer' not found!
GPUShaderInterface: Warning: Uniform 'maxzBuffer' not found!
GPUShaderInterface: Warning: Uniform 'minzBuffer' not found!
GPUShaderInterface: Warning: Uniform 'planarDepth' not found!
GPUShaderInterface: Warning: Uniform 'utilTex' not found!
GPUShaderInterface: Warning: Uniform 'horizonBuffer' not found!
GPUShaderInterface: Warning: Uniform 'irradianceGrid' not found!
GPUShaderInterface: Warning: Uniform 'probePlanars' not found!
GPUShaderInterface: Warning: Uniform 'probeCubes' not found!
GPUShaderInterface: Warning: Uniform 'shadowCubeTexture' not found!
GPUShaderInterface: Warning: Uniform 'shadowCascadeTexture' not found!
GPUShaderInterface: Warning: Uniform 'sssTexProfile' not found!
GPUShaderInterface: Warning: Uniform 'inScattering' not found!
GPUShaderInterface: Warning: Uniform 'inTransmittance' not found!
GPUTexture: create : [0x7f9e59adb338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9e59adb538], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUShaderInterface: Warning: Uniform 'attr' not found!
GPUShaderInterface: Warning: Uniform 'hairPointBuffer' not found!
GPUShaderInterface: Warning: Uniform 'hairUVBuffer' not found!
GPUShaderInterface: Warning: Uniform 'hairColBuffer' not found!
GPUShaderInterface: Warning: Uniform 'colorBuffer' not found!
GPUShaderInterface: Warning: Uniform 'depthBuffer' not found!
GPUShaderInterface: Warning: Uniform 'minzBuffer' not found!
GPUShaderInterface: Warning: Uniform 'planarDepth' not found!
GPUShaderInterface: Warning: Uniform 'texHammersley' not found!
GPUShaderInterface: Warning: Uniform 'texJitter' not found!
GPUShaderInterface: Warning: Uniform 'sssTexProfile' not found!
GPUShaderInterface: Warning: Uniform 'inScattering' not found!
GPUShaderInterface: Warning: Uniform 'inTransmittance' not found!
GPUTexture: create : TEXTURE_CUBE_MAP, DEPTH_COMPONENT24, w : 512, h : 512, d : 0, comp : 1, size : 4.50 MiB
GPUTexture: create : TEXTURE_CUBE_MAP, R32F, w : 512, h : 512, d : 0, comp : 1, size : 6.00 MiB
GPUTexture: create : [0x7f9e3764cb38], TEXTURE_2D_ARRAY, R32F, w : 1255, h : 1255, d : 1, comp : 1, size : 6.01 MiB
GPUTexture: create : [0x7f9e3764c938], TEXTURE_2D_ARRAY, DEPTH_COMPONENT24, w : 1024, h : 1024, d : 4, comp : 1, size : 12.00 MiB
GPUTexture: create : [0x7f9e3764c738], TEXTURE_2D_ARRAY, R32F, w : 1024, h : 1024, d : 4, comp : 1, size : 16.00 MiB
GPUTexture: create : [0x7f9e3764c538], TEXTURE_2D_ARRAY, R32F, w : 1024, h : 1024, d : 4, comp : 1, size : 16.00 MiB
GPUTexture: create : [0x7f9e3764c338], TEXTURE_2D_ARRAY, RGBA8, w : 1, h : 1, d : 1, comp : 4, size : 0.00 MiB
GPUTexture: create : [0x7f9e3764c138], TEXTURE_2D_ARRAY, DEPTH_COMPONENT24, w : 1, h : 1, d : 1, comp : 1, size : 0.00 MiB
GPUShaderInterface: Warning: Uniform 'unftemperature' not found!
GPUShaderInterface: Warning: Uniform 'volumeColor' not found!
GPUTexture: create : [0x7f9ed0733e38], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9ed0733d38], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9ef552ca38], TEXTURE_2D, RGBA8, w : 1918, h : 26, d : 0, comp : 4, size : 0.19 MiB
GPUTexture: create : [0x7f9ef552c638], TEXTURE_2D_MULTISAMPLE, RGBA8, w : 1918, h : 1140, d : 0, comp : 4, size : 33.36 MiB
GPUTexture: create : [0x7f9ef552c738], TEXTURE_2D_MULTISAMPLE, DEPTH24_STENCIL8, w : 1918, h : 1140, d : 0, comp : 1, size : 33.36 MiB
GPUTexture: create : [0x7f9ef552c438], TEXTURE_2D, RGBA8, w : 1918, h : 1140, d : 0, comp : 4, size : 8.34 MiB
GPUTexture: create : [0x7f9ef552c538], TEXTURE_2D, DEPTH24_STENCIL8, w : 1918, h : 1140, d : 0, comp : 1, size : 8.34 MiB
GL API deprecated behavior: glLineWidth uses wide lines (parameter <width> with value '0xdfed5b35') which are deprecated and do not work outside of the compatibility context
GPUTexture: create : [0x7f9ef552cc38], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2db38], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB
GPUTexture: create : [0x7f9edda2e338], TEXTURE_2D, RGBA8, w : 525, h : 108, d : 0, comp : 4, size : 0.22 MiB
Saved session recovery to '/tmp/quit.blend'
Error: Not freed memory blocks: 3, total unfreed memory 0.000717 MB
GPUTexture len: 176 0x7f9e59adb338
GPUTexture len: 176 0x7f9e59adb538
BLI_genericNodeN len: 24 0x7f9e59bf1138

Seems to be related to the first 3d textures that are created. (between the inTransmittance and attr warnings.)

When using eevee in the viewport the volumetrics textures are freed during drawing (eevee_draw_background). When rendering (eevee_render_to_image) this cleanup does not take place.
Will work on a patch

``` GPUShaderInterface: Warning: Uniform 'attr' not found! GPUShaderInterface: Warning: Uniform 'colorBuffer' not found! GPUShaderInterface: Warning: Uniform 'depthBuffer' not found! GPUShaderInterface: Warning: Uniform 'maxzBuffer' not found! GPUShaderInterface: Warning: Uniform 'minzBuffer' not found! GPUShaderInterface: Warning: Uniform 'planarDepth' not found! GPUShaderInterface: Warning: Uniform 'utilTex' not found! GPUShaderInterface: Warning: Uniform 'horizonBuffer' not found! GPUShaderInterface: Warning: Uniform 'irradianceGrid' not found! GPUShaderInterface: Warning: Uniform 'probePlanars' not found! GPUShaderInterface: Warning: Uniform 'probeCubes' not found! GPUShaderInterface: Warning: Uniform 'shadowCubeTexture' not found! GPUShaderInterface: Warning: Uniform 'shadowCascadeTexture' not found! GPUShaderInterface: Warning: Uniform 'sssTexProfile' not found! GPUShaderInterface: Warning: Uniform 'inScattering' not found! GPUShaderInterface: Warning: Uniform 'inTransmittance' not found! GPUTexture: create : [0x7f9e59adb338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9e59adb538], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUShaderInterface: Warning: Uniform 'attr' not found! GPUShaderInterface: Warning: Uniform 'hairPointBuffer' not found! GPUShaderInterface: Warning: Uniform 'hairUVBuffer' not found! GPUShaderInterface: Warning: Uniform 'hairColBuffer' not found! GPUShaderInterface: Warning: Uniform 'colorBuffer' not found! GPUShaderInterface: Warning: Uniform 'depthBuffer' not found! GPUShaderInterface: Warning: Uniform 'minzBuffer' not found! GPUShaderInterface: Warning: Uniform 'planarDepth' not found! GPUShaderInterface: Warning: Uniform 'texHammersley' not found! GPUShaderInterface: Warning: Uniform 'texJitter' not found! GPUShaderInterface: Warning: Uniform 'sssTexProfile' not found! GPUShaderInterface: Warning: Uniform 'inScattering' not found! GPUShaderInterface: Warning: Uniform 'inTransmittance' not found! GPUTexture: create : TEXTURE_CUBE_MAP, DEPTH_COMPONENT24, w : 512, h : 512, d : 0, comp : 1, size : 4.50 MiB GPUTexture: create : TEXTURE_CUBE_MAP, R32F, w : 512, h : 512, d : 0, comp : 1, size : 6.00 MiB GPUTexture: create : [0x7f9e3764cb38], TEXTURE_2D_ARRAY, R32F, w : 1255, h : 1255, d : 1, comp : 1, size : 6.01 MiB GPUTexture: create : [0x7f9e3764c938], TEXTURE_2D_ARRAY, DEPTH_COMPONENT24, w : 1024, h : 1024, d : 4, comp : 1, size : 12.00 MiB GPUTexture: create : [0x7f9e3764c738], TEXTURE_2D_ARRAY, R32F, w : 1024, h : 1024, d : 4, comp : 1, size : 16.00 MiB GPUTexture: create : [0x7f9e3764c538], TEXTURE_2D_ARRAY, R32F, w : 1024, h : 1024, d : 4, comp : 1, size : 16.00 MiB GPUTexture: create : [0x7f9e3764c338], TEXTURE_2D_ARRAY, RGBA8, w : 1, h : 1, d : 1, comp : 4, size : 0.00 MiB GPUTexture: create : [0x7f9e3764c138], TEXTURE_2D_ARRAY, DEPTH_COMPONENT24, w : 1, h : 1, d : 1, comp : 1, size : 0.00 MiB GPUShaderInterface: Warning: Uniform 'unftemperature' not found! GPUShaderInterface: Warning: Uniform 'volumeColor' not found! GPUTexture: create : [0x7f9ed0733e38], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9ed0733d38], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9ef552ca38], TEXTURE_2D, RGBA8, w : 1918, h : 26, d : 0, comp : 4, size : 0.19 MiB GPUTexture: create : [0x7f9ef552c638], TEXTURE_2D_MULTISAMPLE, RGBA8, w : 1918, h : 1140, d : 0, comp : 4, size : 33.36 MiB GPUTexture: create : [0x7f9ef552c738], TEXTURE_2D_MULTISAMPLE, DEPTH24_STENCIL8, w : 1918, h : 1140, d : 0, comp : 1, size : 33.36 MiB GPUTexture: create : [0x7f9ef552c438], TEXTURE_2D, RGBA8, w : 1918, h : 1140, d : 0, comp : 4, size : 8.34 MiB GPUTexture: create : [0x7f9ef552c538], TEXTURE_2D, DEPTH24_STENCIL8, w : 1918, h : 1140, d : 0, comp : 1, size : 8.34 MiB GL API deprecated behavior: glLineWidth uses wide lines (parameter <width> with value '0xdfed5b35') which are deprecated and do not work outside of the compatibility context GPUTexture: create : [0x7f9ef552cc38], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2db38], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e238], TEXTURE_3D, R8, w : 384, h : 384, d : 384, comp : 1, size : 54.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_3D, R8, w : 128, h : 128, d : 128, comp : 1, size : 2.00 MiB GPUTexture: create : [0x7f9edda2e338], TEXTURE_2D, RGBA8, w : 525, h : 108, d : 0, comp : 4, size : 0.22 MiB Saved session recovery to '/tmp/quit.blend' Error: Not freed memory blocks: 3, total unfreed memory 0.000717 MB GPUTexture len: 176 0x7f9e59adb338 GPUTexture len: 176 0x7f9e59adb538 BLI_genericNodeN len: 24 0x7f9e59bf1138 ``` Seems to be related to the first 3d textures that are created. (between the inTransmittance and attr warnings.) When using eevee in the viewport the volumetrics textures are freed during drawing (`eevee_draw_background`). When rendering (`eevee_render_to_image`) this cleanup does not take place. Will work on a patch
Member

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
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
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
4 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#62356
No description provided.