Can not start GPU rendering after waking up the laptop #102471

Closed
opened 2022-11-13 06:53:30 +01:00 by J · 13 comments

System Information
Operating system: Linux-6.0.0-3-amd64-x86_64-with-glibc2.36 64 Bits - Debian testing.
Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.76

Blender Version
Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: b292cfe5a9
Worked: (newest version of Blender that worked as expected)
Snap version

Short description
Hi, When I open Blender and go to sleep, waking up again won't let me use my gpu because the context cannot be recreated.
I don't have the issue when I close Blender beforehand.

Steps to reproduce

  1. render with Cycles, GPU cuda enabled
  2. Put the laptop on sleep mode.
  3. Wake up and try to render again
**System Information** Operating system: Linux-6.0.0-3-amd64-x86_64-with-glibc2.36 64 Bits - Debian testing. Graphics card: NVIDIA GeForce RTX 2060/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 515.76 **Blender Version** Broken: version: 3.3.1, branch: master, commit date: 2022-10-04 18:35, hash: `b292cfe5a9` Worked: (newest version of Blender that worked as expected) Snap version **Short description** Hi, When I open Blender and go to sleep, waking up again won't let me use my gpu because the context cannot be recreated. I don't have the issue when I close Blender beforehand. **Steps to reproduce** 1. render with Cycles, GPU cuda enabled 2. Put the laptop on sleep mode. 3. Wake up and try to render again
Author

Added subscriber: @Girole

Added subscriber: @Girole
Author

Strange, I think it only appears when the computer stays in sleep mode for a while, I had no issue now.

But the issue happened to me 3 times and the only cure is the reboot (log out not enough).

Strange, I think it only appears when the computer stays in sleep mode for a while, I had no issue now. But the issue happened to me 3 times and the only cure is the reboot (log out not enough).
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, thanks for the report. This could be related to #102123 (Crash on forcing laptop to sleep when rendering animation)
Could you share exact steps for redoing the issue.

Hi, thanks for the report. This could be related to #102123 (Crash on forcing laptop to sleep when rendering animation) Could you share exact steps for redoing the issue.
Member

Hi, any news?

Hi, any news?
Author

@Patrik,
I just tried again, same issue :(

@Patrik, I just tried again, same issue :(
Author

Steps:

  1. render with Cycles, GPU cuda enabled
  2. Put the laptop on sleep mode.
  3. Wake up and try to render again
Steps: 1. render with Cycles, GPU cuda enabled 2. Put the laptop on sleep mode. 3. Wake up and try to render again
Member

Hi, thanks for the update. Got error in console once I wake up the laptop. But after that I'm able to restart the render.

Invalid graphics context in cuGraphicsMapResources(1, &cu_graphics_resource_, queue_->stream()) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:68)

Refer to the Cycles GPU rendering documentation for possible solutions:
https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html

Not mapped in cuGraphicsResourceGetMappedPointer(&cu_buffer, &bytes, cu_graphics_resource_) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:70)
E1126 11:40:33.969807  8924 display_driver.cpp:744] Error mapping BlenderDisplayDriver pixel buffer object.
Win32 Error# (6): The handle is invalid.
Error: Invalid graphics context in cuGraphicsMapResources(1, &cu_graphics_resource_, queue_->stream()) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:68)```
- - -
> 1. render with Cycles, GPU cuda enabled

Are you doing viewport rendering or final image/animation render?
> 3. Wake up and try to render again

If you've got any error printed in console, please share it
- - -
```**System Information**
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78```
Hi, thanks for the update. Got error in console once I wake up the laptop. But after that I'm able to restart the render. ```Win32 Error# (0): The operation completed successfully. Invalid graphics context in cuGraphicsMapResources(1, &cu_graphics_resource_, queue_->stream()) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:68) Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/latest/render/cycles/gpu_rendering.html Not mapped in cuGraphicsResourceGetMappedPointer(&cu_buffer, &bytes, cu_graphics_resource_) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:70) E1126 11:40:33.969807 8924 display_driver.cpp:744] Error mapping BlenderDisplayDriver pixel buffer object. Win32 Error# (6): The handle is invalid. Error: Invalid graphics context in cuGraphicsMapResources(1, &cu_graphics_resource_, queue_->stream()) (C:\Users\blender\git\blender-v330\blender.git\intern\cycles\device\cuda\graphics_interop.cpp:68)``` - - - > 1. render with Cycles, GPU cuda enabled Are you doing viewport rendering or final image/animation render? > 3. Wake up and try to render again If you've got any error printed in console, please share it - - - ```**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3050 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 512.78```
Pratik Borhade changed title from Cuda context not recreated if.. to Can not start GPU rendering after waking up the laptop 2022-11-26 07:19:16 +01:00
Author

This comment was removed by @Girole

*This comment was removed by @Girole*

Added subscriber: @ThomasDinges

Added subscriber: @ThomasDinges

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

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

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed.

Thanks again for the report. If the problem persists please open a new report with the required information.

No activity for more than a week. As per the tracker policy we assume the issue is gone and can be closed. Thanks again for the report. If the problem persists please open a new report with the required information.
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#102471
No description provided.