Lots of Blender hard crashes when using or activating cycle. All relating to GPU Memory seemingly. #98828

Closed
opened 2022-06-12 19:32:33 +02:00 by michael campbell · 8 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12

Blender Version
Broken: version: 3.3.0 Alpha and 3.2 stable, branch: master, commit date: 2022-05-30 17:30, hash: ca59391704
Worked: (newest version of Blender that worked as expected)

Sorry I can't share the clients scene, but basically Cycles is crashing constantly with memory related error messages. Such as:

Failed to create CUDA context (Illegal address)
System is out of GPU and shared host memory
Invalid context in cuCtxPopCurrent(NULL) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:18)
Invalid value in cuCtxPushCurrent(device->cuContext) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:13)
Invalid context in cuCtxPopCurrent(NULL) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:18)
Invalid value in cuCtxDestroy_v2(cuContext) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\device_impl.cpp:125)

It's reporting out of memory, but both the device manager, and blender is showing plenty of memory available on both devices. The render fails to begin.

image.png
image.png

This was with persistent data disabled, and there are no denoisers enabled.

It's also been crashing constantly when switching the 3d viewport to rendered mode and then kicking up errors like:
Illegal address in CUDA queue copy_from_device (integrator_shade_surface integrator_sorted_paths_array prefix_sum)

I'm not sure if this is Cycles or my GPU on it's way out.

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce GTX 1070/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 472.12 **Blender Version** Broken: version: 3.3.0 Alpha and 3.2 stable, branch: master, commit date: 2022-05-30 17:30, hash: `ca59391704` Worked: (newest version of Blender that worked as expected) Sorry I can't share the clients scene, but basically Cycles is crashing constantly with memory related error messages. Such as: Failed to create CUDA context (Illegal address) System is out of GPU and shared host memory Invalid context in cuCtxPopCurrent(NULL) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:18) Invalid value in cuCtxPushCurrent(device->cuContext) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:13) Invalid context in cuCtxPopCurrent(NULL) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\util.cpp:18) Invalid value in cuCtxDestroy_v2(cuContext) (C:\Users\blender\git\blender-vdev\blender.git\intern\cycles\device\cuda\device_impl.cpp:125) It's reporting out of memory, but both the device manager, and blender is showing plenty of memory available on both devices. The render fails to begin. ![image.png](https://archive.blender.org/developer/F13151604/image.png) ![image.png](https://archive.blender.org/developer/F13151607/image.png) This was with persistent data disabled, and there are no denoisers enabled. It's also been crashing constantly when switching the 3d viewport to rendered mode and then kicking up errors like: ```Illegal address in CUDA queue copy_from_device (integrator_shade_surface integrator_sorted_paths_array prefix_sum)``` I'm not sure if this is Cycles or my GPU on it's way out.

Added subscriber: @3di

Added subscriber: @3di

Here are a few of the crash logs if it helps:

Marcom_Office_for_tutorial_05.crash.txt

Marcom_Office_Background_28_Matt_Edits_05.crash.txt

HighriseA-2308cityGeo-MIchael.crash.txt

I also got a few errors saying can't write to datablock in this context (rendering/draw) a few times when trying to change the render samples and noise threshold from python. Even though it wasn't rendering (not sure if that's related to https://developer.blender.org/T96829)

Here are a few of the crash logs if it helps: [Marcom_Office_for_tutorial_05.crash.txt](https://archive.blender.org/developer/F13151912/Marcom_Office_for_tutorial_05.crash.txt) [Marcom_Office_Background_28_Matt_Edits_05.crash.txt](https://archive.blender.org/developer/F13151923/Marcom_Office_Background_28_Matt_Edits_05.crash.txt) [HighriseA-2308cityGeo-MIchael.crash.txt](https://archive.blender.org/developer/F13151924/HighriseA-2308cityGeo-MIchael.crash.txt) I also got a few errors saying can't write to datablock in this context (rendering/draw) a few times when trying to change the render samples and noise threshold from python. Even though it wasn't rendering (not sure if that's related to https://developer.blender.org/T96829)
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

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

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

Hi @3di, thanks for the report.

NVIDIA 472.12

Could you try with newest GPU drivers?: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/windows/nvidia.html

It's also been crashing constantly when switching the 3d viewport to rendered mode and then kicking up errors like:
Illegal address in CUDA queue copy_from_device (integrator_shade_surface integrator_sorted_paths_array prefix_sum)

We also have a report on this error: #98348 (GPU rendering error: Illegal Address in CUDA queue copy_from_device)

Hi @3di, thanks for the report. > NVIDIA 472.12 Could you try with newest GPU drivers?: https://docs.blender.org/manual/en/dev/troubleshooting/gpu/windows/nvidia.html > It's also been crashing constantly when switching the 3d viewport to rendered mode and then kicking up errors like: > Illegal address in CUDA queue copy_from_device (integrator_shade_surface integrator_sorted_paths_array prefix_sum) We also have a report on this error: #98348 (GPU rendering error: Illegal Address in CUDA queue copy_from_device)

Thanks, I didn't consider changing the drivers as the problem only began recently and I was still using the same version of Blender. I've updated them now though and everything seems to be stable again. Weird one, must have become corrupt, unless perhaps a windows update had caused a driver incompatibility somewhere.

Thanks, I didn't consider changing the drivers as the problem only began recently and I was still using the same version of Blender. I've updated them now though and everything seems to be stable again. Weird one, must have become corrupt, unless perhaps a windows update had caused a driver incompatibility somewhere.
Member

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

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

Thanks for the update. I guess I can now close this report as problem no longer remains for you.
re Illegal address in CUDA queue copy_from_device, we have a separate report open for this (as said in the previous comment)

Weird one, must have become corrupt, unless perhaps a windows update had caused a driver incompatibility somewhere.

possibly, yes.

Thanks for the update. I guess I can now close this report as problem no longer remains for you. re `Illegal address in CUDA queue copy_from_device`, we have a separate report open for this (as said in the previous comment) > Weird one, must have become corrupt, unless perhaps a windows update had caused a driver incompatibility somewhere. possibly, yes.
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
2 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#98828
No description provided.