Page MenuHome

cycles GPU rendering in viewport crashes.
Needs Triage, NormalPublic

Description

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: rB211b6c29f771
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)]

Event Timeline

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.

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.

Thank you for replying.

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

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?

Germano Cavalcante (mano-wii) changed the task status from Needs Information from User to Needs Triage.Jun 22 2020, 2:25 AM

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

@Alexandru Marinat (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.

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.

@Alexandru Marinat (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)?