CUDA fails to reinitialize #63287

Closed
opened 2019-04-04 23:21:33 +02:00 by Acrivec Cevirca · 5 comments

System Information
Operating system:W10
Graphics card:980Ti

Blender Version
Broken: 2.80 19-04-02
Worked: 2.79

Short description of error
When CUDA worker crashes for any reason (for example you keep modding an object with rendered view enabled the memory is not being freed until the computing is correctly done once, so memory stacks and boom out of memory with a 100mb scene) it cannot be reinitialized correctly.
In 2.79 if your CUDA crashed you only needed to go out of rendered view to solid view, come back to rendered and it was working correctly.
Now once it crashed - it can't render at all. Not even with F12.
You have to restart blender.
Here's console:


CUDA error: Invalid value in cuCtxDestroy(cuContext), line 318
CUDA error at cuCtxCreate: Launch failed

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

CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext)
CUDA error: Invalid context in mem_alloc_result, line 850
CUDA error: Invalid context in cuCtxPopCurrent(NULL)
CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext)
CUDA error: Invalid context in mem_alloc_result, line 850
CUDA error: Invalid context in cuCtxPopCurrent(NULL)

Exact steps for others to reproduce the error
Just get CUDA to crash in any way. Most times when it happens I just move the view with rendered view enabled and go too close to mesh, or I keep modifying an object on rendered view and memory is not correctly flushed after each modification.

**System Information** Operating system:W10 Graphics card:980Ti **Blender Version** Broken: 2.80 19-04-02 Worked: 2.79 **Short description of error** When CUDA worker crashes for any reason (for example you keep modding an object with rendered view enabled the memory is not being freed until the computing is correctly done once, so memory stacks and boom out of memory with a 100mb scene) it cannot be reinitialized correctly. In 2.79 if your CUDA crashed you only needed to go out of rendered view to solid view, come back to rendered and it was working correctly. Now once it crashed - it can't render at all. Not even with F12. You have to restart blender. Here's console: ``` CUDA error: Invalid value in cuCtxDestroy(cuContext), line 318 CUDA error at cuCtxCreate: Launch failed Refer to the Cycles GPU rendering documentation for possible solutions: https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext) CUDA error: Invalid context in mem_alloc_result, line 850 CUDA error: Invalid context in cuCtxPopCurrent(NULL) CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext) CUDA error: Invalid context in mem_alloc_result, line 850 CUDA error: Invalid context in cuCtxPopCurrent(NULL) ``` **Exact steps for others to reproduce the error** Just get CUDA to crash in any way. Most times when it happens I just move the view with rendered view enabled and go too close to mesh, or I keep modifying an object on rendered view and memory is not correctly flushed after each modification.

Added subscriber: @Acrivec

Added subscriber: @Acrivec
Brecht Van Lommel was assigned by Sebastian Parborg 2019-04-05 12:10:49 +02:00
Brecht Van Lommel was unassigned by Dalai Felinto 2019-12-23 16:34:44 +01:00

Added subscriber: @brecht

Added subscriber: @brecht
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Aaron Carlisle self-assigned this 2019-12-28 05:02:40 +01:00
Member

I am closing this bug report if the bug is still reproducible with blender 2.81, please open a new bug report.

I am closing this bug report if the bug is still reproducible with blender 2.81, please open a new bug report.
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#63287
No description provided.