cycles GPU rendering in viewport crashes. #77802

Closed
opened 2020-06-12 16:09:14 +02:00 by Alexandru Marinat · 22 comments

System Information
Operating system: Windows-10-10.0.18362-SP0 64 Bits
Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14

Blender Version
Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: 211b6c29f7
Worked: (newest version of Blender that worked as expected)

Short description of error

when rendering in viewport with cycles GPU, the image freezes, there's a text saying "canceled" in the upper left corner. this is the error I copy pasted from the system console.
CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext)
CUDA error: Invalid context in mem_alloc_result, line 815
CUDA error: Invalid context in cuCtxPopCurrent(NULL)
CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext)
CUDA error: Invalid context in mem_alloc_result, line 815
CUDA error: Invalid context in cuCtxPopCurrent(NULL)
CUDA error: Invalid value in cuCtxDestroy(cuContext), line 268

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: Windows-10-10.0.18362-SP0 64 Bits Graphics card: GeForce GTX 1660 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 446.14 **Blender Version** Broken: version: 2.83.0, branch: master, commit date: 2020-06-03 14:38, hash: `211b6c29f7` Worked: (newest version of Blender that worked as expected) **Short description of error** when rendering in viewport with cycles GPU, the image freezes, there's a text saying "canceled" in the upper left corner. this is the error I copy pasted from the system console. CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext) CUDA error: Invalid context in mem_alloc_result, line 815 CUDA error: Invalid context in cuCtxPopCurrent(NULL) CUDA error: Invalid value in cuCtxPushCurrent(device->cuContext) CUDA error: Invalid context in mem_alloc_result, line 815 CUDA error: Invalid context in cuCtxPopCurrent(NULL) CUDA error: Invalid value in cuCtxDestroy(cuContext), line 268 **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]

Added subscriber: @al_marinetti

Added subscriber: @al_marinetti

untitled.blend

I have uploaded the file, sometimes it crashes in the viewport, I was in the rendered viewport view and was playing with the camera focal length and it crashed like this. Sometimes it crashes when rendering the image. It's really not something I could reproduce 100% following the same actions.

[untitled.blend](https://archive.blender.org/developer/F8611814/untitled.blend) I have uploaded the file, sometimes it crashes in the viewport, I was in the rendered viewport view and was playing with the camera focal length and it crashed like this. Sometimes it crashes when rendering the image. It's really not something I could reproduce 100% following the same actions.

Added subscriber: @amztc34283

Added subscriber: @amztc34283

I encounter the same problem that when I am using the GPU, everything will turn gray in the viewport mode and my terminal will show the same error messages as yours.
I am using GeForce RTX 2070 with NVIDIA-SMI 440.33.01 and CUDA Version: 10.2 along with AMD Ryzen 7 2700X Eight-Core Processor.

I encounter the same problem that when I am using the GPU, everything will turn gray in the viewport mode and my terminal will show the same error messages as yours. I am using GeForce RTX 2070 with NVIDIA-SMI 440.33.01 and CUDA Version: 10.2 along with AMD Ryzen 7 2700X Eight-Core Processor.

I had the same issue in 2.82 and changed the TDR values but it didn't help. I was hoping to see some changes with 2.83, but apparently this issue has been there for quite a while in Blender, and it is strange for me that it didn't got fixed yet.

I had the same issue in 2.82 and changed the TDR values but it didn't help. I was hoping to see some changes with 2.83, but apparently this issue has been there for quite a while in Blender, and it is strange for me that it didn't got fixed yet.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

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

Changed status from 'Needs Triage' to: 'Needs User Info'
Can you try any of these solutions to fix the problem? https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html#cuda-error-unknown-error-in-cuctxsynchronize

Thank you for replying.

Is the timed-out error only applicable to Windows OS? I am running Blender in Ubuntu 16.04.

Thank you for replying. Is the timed-out error only applicable to Windows OS? I am running Blender in Ubuntu 16.04.

In #77802#954889, @mano-wii wrote:
Can you try these solution to see if the problem is resolved?
https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html#cuda-error-unknown-error-in-cuctxsynchronize

This article basically tells me to either use smaller textures, set the tile size to smaller or change the TDR values which I have already done since I initially detected the issue in 2.82. So as I understand, there is no real fix for this?

> In #77802#954889, @mano-wii wrote: > Can you try these solution to see if the problem is resolved? > https://docs.blender.org/manual/en/dev/render/cycles/gpu_rendering.html#cuda-error-unknown-error-in-cuctxsynchronize This article basically tells me to either use smaller textures, set the tile size to smaller or change the TDR values which I have already done since I initially detected the issue in 2.82. So as I understand, there is no real fix for this?

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

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

Added subscriber: @iss

Added subscriber: @iss

@al_marinetti I am looking at older reports, is this still an issue? Or have anything changed?

@al_marinetti I am looking at older reports, is this still an issue? Or have anything changed?

In #77802#1062629, @iss wrote:
@al_marinetti I am looking at older reports, is this still an issue? Or have anything changed?

yeah it happens sometimes.

> In #77802#1062629, @iss wrote: > @al_marinetti I am looking at older reports, is this still an issue? Or have anything changed? yeah it happens sometimes.

Thanks for update. You can also check latest alpha builds from https://builder.blender.org/download/
But I think this is rather driver issue so there is better chance that updating drivers would help.

Thanks for update. You can also check latest alpha builds from https://builder.blender.org/download/ But I think this is rather driver issue so there is better chance that updating drivers would help.

In #77802#1064630, @iss wrote:
Thanks for update. You can also check latest alpha builds from https://builder.blender.org/download/
But I think this is rather driver issue so there is better chance that updating drivers would help.

Dude, my drivers are always up to date. This issue has been out there for more than a year. Are you actually suggesting that there are people who don't update their drivers for more than a year?

> In #77802#1064630, @iss wrote: > Thanks for update. You can also check latest alpha builds from https://builder.blender.org/download/ > But I think this is rather driver issue so there is better chance that updating drivers would help. Dude, my drivers are always up to date. This issue has been out there for more than a year. Are you actually suggesting that there are people who don't update their drivers for more than a year?

I am just stating this so it's clear. It may be obvious, but we get reports from wide range of users, of which some may be not aware of this.

I am just stating this so it's clear. It may be obvious, but we get reports from wide range of users, of which some may be not aware of this.
Member

Added subscriber: @PratikPB2123

Added subscriber: @PratikPB2123
Member

@al_marinetti , is this still an issue for you or it is resolved by now?

If problem continues can you check with recent blender builds (https://builder.blender.org/download/daily)?

@al_marinetti , is this still an issue for you or it is resolved by now? If problem continues can you check with recent blender builds (https://builder.blender.org/download/daily)?
Member

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

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

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

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

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.


A lot has changed in Cycles since 2.83.0, please check again with recent blender builds: https://builder.blender.org/download/daily

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. --- A lot has changed in Cycles since 2.83.0, please check again with recent blender builds: https://builder.blender.org/download/daily
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
5 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#77802
No description provided.