Error: System is out of GPU and shared host memory #90440

Closed
opened 2021-08-04 22:08:51 +02:00 by Alston Jones · 10 comments

System Information
Operating system: Windows 10
Graphics card: RTX 3070

Blender Version
Broken: (2.93.2)
Worked: (2.93.2, 3.0, K-Cycles 2.93, 3.0)

Short description of error
I have a scene using the addons Physical Starlight and Atmosphere (1.4 beta version), Graswald and a couple of botaniq trees. I have been having this issue for a while and I have tested it in various versions. I go to render a frame in cycles and it gets stuck on "Updating Lights, Computing distribution" and then gives me the error message in the title. It seems that the clouds from the Physical Starlight addon might be causing the problem but I'm surprised that my gpu can't handle this. I have an intel i7,7000 4.2 ghz and 64 gb of ram. I watched my GPU utlization and it never came above 2%. My preferen{F10265908}ces have CPU turned off for rendering but it seems to be taxing my CPU 100% when it renders. I've also sent an error report to the folks at Physical Starlight and they have a ticket open.
Exact steps for others to reproduce the error
Open file, Render>Render Image
Based on the default startup or an attached .blend file (as simple as possible).

**System Information** Operating system: Windows 10 Graphics card: RTX 3070 **Blender Version** Broken: (2.93.2) Worked: (2.93.2, 3.0, K-Cycles 2.93, 3.0) **Short description of error** I have a scene using the addons Physical Starlight and Atmosphere (1.4 beta version), Graswald and a couple of botaniq trees. I have been having this issue for a while and I have tested it in various versions. I go to render a frame in cycles and it gets stuck on "Updating Lights, Computing distribution" and then gives me the error message in the title. It seems that the clouds from the Physical Starlight addon might be causing the problem but I'm surprised that my gpu can't handle this. I have an intel i7,7000 4.2 ghz and 64 gb of ram. I watched my GPU utlization and it never came above 2%. My preferen{[F10265908](https://archive.blender.org/developer/F10265908/snailwarrior18.blend)}ces have CPU turned off for rendering but it seems to be taxing my CPU 100% when it renders. I've also sent an error report to the folks at Physical Starlight and they have a ticket open. **Exact steps for others to reproduce the error** Open file, Render>Render Image Based on the default startup or an attached .blend file (as simple as possible).
Author

Added subscriber: @Alston

Added subscriber: @Alston

Added subscriber: @iss

Added subscriber: @iss

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'

I watched my GPU utlization and it never came above 2%.

Is this GPU core or memory utilization? Please check GPU memory utilization specifically.

Please upload as simple as possible .blend file so we can reproduce the issue.

>I watched my GPU utlization and it never came above 2%. Is this GPU core or memory utilization? Please check GPU memory utilization specifically. Please upload as simple as possible .blend file so we can reproduce the issue.
Member

Added subscriber: @Alaska

Added subscriber: @Alaska
Member

Error: System is out of GPU and shared host memory

As the error message implies, you are out of memory. When trying to render this scene on my computer, also with 64GB of RAM, it fills it all up plus an extra 30GB of SWAP (Pagefile) before I decided to close Blender. That means your scene takes up 90GB or more when trying to render, this easily exceeds the 8GB of VRAM + 64GB of RAM and probably the pagefile you have, and that's why you get that error.

As for what's causing it, I did some testing and this is what I observed:
The cause for this issue is the materials used by objects. Specifically the StarlightAtmosphere node group from the Physical Starlight and Atmosphere add-on. The node group is rather complex, and as such it takes up a bit of RAM. However, this isn't the issue, the amount of RAM is probably measured in tens of megabytes at the most. The issue is that you've re-used the node group a lot. You've given the node group to every material in the scene meaning that it now has to be stored for every material, which means more RAM is taken up. But once again, this probably isn't the issue, it's probably only going to take up hundreds of megabytes at the most. The issue is that you gave this node group to the "Grasswald" objects, the ones scattered using a particle system onto your landscape. The node group takes information about object position and distance from the camera and such that needs to be re-computed every time the Grasswald objects are scattered. Which is 472,024 times. And these calculations have to be stored in RAM. So although the node group only takes up a couple megabytes at most, it has to be duplicated 472,024 times, which means it takes up lots of RAM and results in the issue you're experiencing.

Removing the StarlightAtmosphere node group from the Grasswald objects resolves the issue with running out of memory. As such, I do not believe this is a bug and this report can probably be closed? I will wait for a developer to decide on this.

In theory Cycles or parts of Blender could be optimized to reduce the RAM usage, but I believe that falls under the catagory of "accidental features request" which we usually respond to with this message:

Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

>Error: System is out of GPU and shared host memory As the error message implies, you are out of memory. When trying to render this scene on my computer, also with 64GB of RAM, it fills it all up plus an extra 30GB of SWAP (Pagefile) before I decided to close Blender. That means your scene takes up 90GB or more when trying to render, this easily exceeds the 8GB of VRAM + 64GB of RAM and probably the pagefile you have, and that's why you get that error. As for what's causing it, I did some testing and this is what I observed: The cause for this issue is the materials used by objects. Specifically the `StarlightAtmosphere` node group from the `Physical Starlight and Atmosphere` add-on. The node group is rather complex, and as such it takes up a bit of RAM. However, this isn't the issue, the amount of RAM is probably measured in tens of megabytes at the most. The issue is that you've re-used the node group a lot. You've given the node group to every material in the scene meaning that it now has to be stored for every material, which means more RAM is taken up. But once again, this probably isn't the issue, it's probably only going to take up hundreds of megabytes at the most. The issue is that you gave this node group to the "Grasswald" objects, the ones scattered using a particle system onto your landscape. The node group takes information about object position and distance from the camera and such that needs to be re-computed every time the Grasswald objects are scattered. Which is 472,024 times. And these calculations have to be stored in RAM. So although the node group only takes up a couple megabytes at most, it has to be duplicated 472,024 times, which means it takes up lots of RAM and results in the issue you're experiencing. Removing the `StarlightAtmosphere` node group from the Grasswald objects resolves the issue with running out of memory. As such, I do not believe this is a bug and this report can probably be closed? I will wait for a developer to decide on this. In theory Cycles or parts of Blender could be optimized to reduce the RAM usage, but I believe that falls under the catagory of "accidental features request" which we usually respond to with this message: > Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. > > For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests > > For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

Changed status from 'Needs User Info' to: 'Archived'

Changed status from 'Needs User Info' to: 'Archived'

Sorry, missed that file is included here. I can confirm that this file uses huge amount of memory, so I will close this report. @Alaska provided good analysis here.

Sorry, missed that file is included here. I can confirm that this file uses huge amount of memory, so I will close this report. @Alaska provided good analysis here.
Author

Thank you @Alaska for your clear analysis. I can see how this would end up creating a unique problem that's not exactly a bug. However, I also really appreciate you going through the process of figuring this out so I can try to clean it up.

In #90440#1201991, @Alaska wrote:

Error: System is out of GPU and shared host memory

As the error message implies, you are out of memory. When trying yo render these scene on my computer, also with 64GB of RAM, it fills it all up plus an extra 30GB of SWAP (Pagefile) before I decided to close Blender. That means your scene takes up 90GB or more when trying to render, this easily exceeds the 8GB of VRAM + 64GB of RAM and probably the pagefile you have, and that's why you get that error.

As for what's causing it, I did some testing and this is what I observed:
The cause for this issue is the materials used by objects. Specifically the StarlightAtmosphere node group from the Physical Starlight and Atmosphere add-on. The node group is rather complex, and as such it takes up a bit of RAM. However, this isn't the issue, the amount of RAM is probably measured in tens of megabytes at the most. The issue is that you've re-used the node group a lot. You've given the node group to every material in the scene meaning that it now has to be stored for every material, which means more RAM is taken up. But once again, this probably isn't the issue, it's probably only going to take up hundreds of megabytes at the most. The issue is that you gave this node group to the "Grasswald" objects, the ones scattered using a particle system onto your landscape. The node group takes information about object position and distance from the camera and such that needs to be re-computed every time the Grasswald objects are scattered. Which is 472,024 times. And these calculations have to be stored in RAM. So although the node group only takes up a couple megabytes at most, it has to be duplicated 472,024 times, which means it takes up lots of RAM and results in the issue you're experiencing.

Removing the StarlightAtmosphere node group from the Grasswald objects resolves the issue with running out of memory. As such, I do not believe this is a bug and this report can probably be closed? I will wait for a developer to decide on this.

In theory Cycles or parts of Blender could be optimized to reduce the RAM usage, but I believe that falls under the catagory of "accidental features request" which we usually respond to with this message:

Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors.

For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests

For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug

Thank you @Alaska for your clear analysis. I can see how this would end up creating a unique problem that's not exactly a bug. However, I also really appreciate you going through the process of figuring this out so I can try to clean it up. > In #90440#1201991, @Alaska wrote: >>Error: System is out of GPU and shared host memory > As the error message implies, you are out of memory. When trying yo render these scene on my computer, also with 64GB of RAM, it fills it all up plus an extra 30GB of SWAP (Pagefile) before I decided to close Blender. That means your scene takes up 90GB or more when trying to render, this easily exceeds the 8GB of VRAM + 64GB of RAM and probably the pagefile you have, and that's why you get that error. > > As for what's causing it, I did some testing and this is what I observed: > The cause for this issue is the materials used by objects. Specifically the `StarlightAtmosphere` node group from the `Physical Starlight and Atmosphere` add-on. The node group is rather complex, and as such it takes up a bit of RAM. However, this isn't the issue, the amount of RAM is probably measured in tens of megabytes at the most. The issue is that you've re-used the node group a lot. You've given the node group to every material in the scene meaning that it now has to be stored for every material, which means more RAM is taken up. But once again, this probably isn't the issue, it's probably only going to take up hundreds of megabytes at the most. The issue is that you gave this node group to the "Grasswald" objects, the ones scattered using a particle system onto your landscape. The node group takes information about object position and distance from the camera and such that needs to be re-computed every time the Grasswald objects are scattered. Which is 472,024 times. And these calculations have to be stored in RAM. So although the node group only takes up a couple megabytes at most, it has to be duplicated 472,024 times, which means it takes up lots of RAM and results in the issue you're experiencing. > > Removing the `StarlightAtmosphere` node group from the Grasswald objects resolves the issue with running out of memory. As such, I do not believe this is a bug and this report can probably be closed? I will wait for a developer to decide on this. > > In theory Cycles or parts of Blender could be optimized to reduce the RAM usage, but I believe that falls under the catagory of "accidental features request" which we usually respond to with this message: > >> Thanks for the report, but the issue reported here is a request for modified/improved behavior and not a bug in current behavior. Closing as this bug tracker is only for bugs and errors. >> >> For user requests and feedback, please use other channels: https://wiki.blender.org/wiki/Communication/Contact#User_Feedback_and_Requests >> >> For more information on why this isn't considered a bug, visit: https://wiki.blender.org/wiki/Reference/Not_a_bug
Author

This comment was removed by @Alston

*This comment was removed by @Alston*
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
3 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#90440
No description provided.