GPU error (Invalid graphics context in cuGraphicsUnregisterResource) #95651

Closed
opened 2022-02-09 16:38:50 +01:00 by Juan Gea · 13 comments

System Information
Operating system: Windows-10-10.0.19044-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.65

Blender Version
Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-08 11:12, hash: de71860555
Worked: 3.0

Short description of error
I'm getting this error using the downloaded daily build:

Invalid graphics context in cuGraphicsUnregisterResource(cu_graphics_resource_) (C:\Users\blender\git\blender-v310\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:36)

EDIT: I detected it with Optix, but others detected it also with CUDA

Exact steps for others to reproduce the error
I have a file that forces the problem, but I don't know the origin of the problem, just open the file and press F12, check the console and you will see the error.

bug_optix_test.blend

**System Information** Operating system: Windows-10-10.0.19044-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 511.65 **Blender Version** Broken: version: 3.1.0 Beta, branch: master, commit date: 2022-02-08 11:12, hash: `de71860555` Worked: 3.0 **Short description of error** I'm getting this error using the downloaded daily build: Invalid graphics context in cuGraphicsUnregisterResource(cu_graphics_resource_) (C:\Users\blender\git\blender-v310\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:36) EDIT: I detected it with Optix, but others detected it also with CUDA **Exact steps for others to reproduce the error** I have a file that forces the problem, but I don't know the origin of the problem, just open the file and press F12, check the console and you will see the error. [bug_optix_test.blend](https://archive.blender.org/developer/F12857665/bug_optix_test.blend)
Author

Added subscriber: @juang3d

Added subscriber: @juang3d
Author

OK, I can say that it happens also under Linux, with driver 510, with an RTX2080Ti, totally different system.

I'll try to have a test scene that gives the problem.

OK, I can say that it happens also under Linux, with driver 510, with an RTX2080Ti, totally different system. I'll try to have a test scene that gives the problem.
Author

OK, I have a scene that gives the error, the only thing needed to reproduce the error is to press F12 and check the console, the scene render result is black, so nothing special there.

bug_optix_test.blend

OK, I have a scene that gives the error, the only thing needed to reproduce the error is to press F12 and check the console, the scene render result is black, so nothing special there. [bug_optix_test.blend](https://archive.blender.org/developer/F12857665/bug_optix_test.blend)

Added subscriber: @zebus3dream

Added subscriber: @zebus3dream

Confirmed in Fedora 35 x86_64 Linux 5.16.5-200.fc35.x86_64 with:

  AMD Ryzen 9 5950X 16-Core @ 32x 3.4GHz
  NVIDIA Corporation GA104 [GeForce RTX 3070] (rev a1) Driver: nvidia-510.47.03-2.fc35.x86_64 
  Blender 3.1.0 Beta 2022-02-08 hash de718605558f

Error:

  Invalid graphics context in cuGraphicsUnregisterResource(cu_graphicsresource) (intern/cycles/device/cuda/graphics_interop.cpp:36)
Confirmed in Fedora 35 x86_64 Linux 5.16.5-200.fc35.x86_64 with: ``` AMD Ryzen 9 5950X 16-Core @ 32x 3.4GHz NVIDIA Corporation GA104 [GeForce RTX 3070] (rev a1) Driver: nvidia-510.47.03-2.fc35.x86_64 Blender 3.1.0 Beta 2022-02-08 hash de718605558f ``` Error: ``` Invalid graphics context in cuGraphicsUnregisterResource(cu_graphicsresource) (intern/cycles/device/cuda/graphics_interop.cpp:36)

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

Changed status from 'Needs Triage' to: 'Confirmed'
Philipp Oeser changed title from GPU error with Optix to GPU error (Invalid graphics context in cuGraphicsUnregisterResource) 2022-02-16 13:34:49 +01:00
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Member

We now have #95837 (Regression: GPU memory accumulation in Cycles render) with the same error message. Not sure if this is exactly the same, but I've made that one High priority (since it also shows that memory is not freed on the GPU)

We now have #95837 (Regression: GPU memory accumulation in Cycles render) with the same error message. Not sure if this is exactly the same, but I've made that one High priority (since it also shows that memory is not freed on the GPU)

This issue was referenced by e4b7d52fe4

This issue was referenced by e4b7d52fe4fe3076f5f68ff575c200f5cf16e416

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sergey Sharybin self-assigned this 2022-02-18 15:32:18 +01:00

Added subscriber: @SandraDauber

Added subscriber: @SandraDauber

I also have this error. It was rendering like normal (though slowly cause it is a heavy scene), and then at the end it went blank, had that little checkboard pattern for transparent renders adn had that error message. Using Blender 3.4.1 renderer: 'NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2'

I also have this error. It was rendering like normal (though slowly cause it is a heavy scene), and then at the end it went blank, had that little checkboard pattern for transparent renders adn had that error message. Using Blender 3.4.1 renderer: 'NVIDIA GeForce RTX 3070 Ti Laptop GPU/PCIe/SSE2'

@SandraDauber, please submit a new report following the guidelines. It will provide a crucial information for us to troubleshoot and understand the issue better.

@SandraDauber, please submit a new report following the guidelines. It will provide a crucial information for us to troubleshoot and understand the issue better.
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
7 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#95651
No description provided.