Crash due to GPU memory leak when tweaking shader and light settings with Eevee #55695
Labels
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#55695
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Windows 10 Pro 64 bit (1803)
AMD Radeon RX480 4GB with Radeon Software 18.6.1
Intel i5 3550, 8GB DDR3-1600
Blender Version
Broken: 2.8 Alpha (
98d2055089
) local build with Visual Studio 2017Short description of error
When Eevee is the active render engine, tweaking any slider related to material shaders or light sources causes a GPU memory leak (visible with GPU monitoring applications, or even the new Windows 10 Task Manager), and eventually Blender crashes with the following error (on the console):
Exact steps for others to reproduce the error
Properties editor > Material tab
, adjust back and forth any shader slider (e.g.Roughness
) repeatedly until Blender crashes.Additional notes
It also happens with previous WHQL display drivers.
This does not happen if the render engine (from
Properties editor > Scene
) is set toCycles
.Attached system info:
system-info.txt
Added subscriber: @s12a
Added subscriber: @LazyDodo
Can't get it to crash on my nvidia card, but it's easy to see it completely fill up the gpu ram watching the counters in gpu-z. Looks like it's not freeing the various textures being created while making the preview, and next time it makes a preview all pointers are null again, so it re-creates them.
Added subscriber: @BlenderRookie
I am having the same issue when rendering on my GTX 1060 6GB. If I try to render an animation with Eevee it will keep adding more and more to the GPU ram with each additional frame that's rendered. Eventually the GPU ram tops out and it starts filling up my system ram. Within a few hundred frames my 16GB of system ram also fills up and then blender crashes. In order to render a large animation, I must render about 100 frames and then close blender and then reopen and render another 100 frames and then repeat. It looks like it's not dumping the previous data before getting the next frames texture data.
As of the latest commit I am not able to reproduce this problem anymore.
EDIT: note that what I wrote initially was incorrect due to me not understanding correctly how to properly revert Blender to earlier commits.
I can still see it happily gobble up memory in gpu-z
After some investigation, it appears that
680994643c
still makes GPU memory occupation increase when tweaking shaders on the default cube when EEVEE is the active rendering engine, but Blender doesn't crash right away.GPU memory occupation does not increase anymore when tweaking shaders on
09431033e9
, at least on my configuration.@fclem looked some more into it tonight looks like there's no texture-handles leaking (every texture created has a matching delete), however the reason the memory usage in gpu-z get so high is because once you call glDeleteTextures the texture handle gets freed, but the actual buffer in gpu memory the opengl implementation is free to do whatever it wants, including hanging on to it just in case some new texture needs it and save it self an allocation. I don't think there's an actual leak here (or at-least anymore)
Changed status from 'Open' to: 'Resolved'
I fixed the leak in
5037dd8abd
.If a crash still happen it's most likely because of something else.