Page MenuHome

Illegal address in CUDA queue copy_from_device (integrator_init_from_camera integrator_compact_states)
Closed, ArchivedPublic

Description

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

Blender Version
Broken: version: 3.0.0, branch: master, commit date: 2021-12-02 18:35, hash: rBf1cca3055776
Broken: version: 3.0.1
Broken: version: 3.1.0

Short description of error
Keep getting CUDA errors almost as soon as I try using CUDA or OptiX.

I tried many different solutions to no avail.

Exact steps for others to reproduce the error
Open Blender, select File > Defaults > Load Factory Settings.
In Preferences select CUDA or OptiX with the NVIDIA card.
In Render menu select Cycles, use GPU compute and remove Denoise option.
Press F12 to render, gets the following error:
Illegal address in CUDA queue copy_from_device (integrator_init_from_camera integrator_compact_states)

Some more infos
The exact message can vary slightly from time to time.
After that I have to restart Blender or even reboot. I had it working one or twice in a row but no more than that.

The issue is not limited to the default cube, it affects every scenes.

I updated windows, just did a clean reinstall of NVIDIA's driver and rebooted right before experiencing the bug again.
I also tried with the latest Studio driver, same result.

My GPU is not overclocked, I even tried underclocking it as much as I possibly could using MSI Afterburner, it might have improved it a little bit but I can't really tell if it's really the case.

I tried removing each of my RAM stick to check for any hardware corruption but it didn't change the result.

I also uninstalled and reinstalled Blender multiple times (also different versions sometimes).

My GPU is working fine with other game, I'm not excluding a hardware issue but if it is it's not an obvious one.

I know that this is not the first occurence of this issue and there might not be any solution, but I'm kinda pissed (not toward anyone, just the situation itself) to have a good machine and be forced to work on a (much slower) laptop to be able to render anything with Cycles.

I have development experience so I'm open to try stuff and get my hands dirty to find that little sneaky issue which seems to be plaguing many people!

Event Timeline

In Blender 2.83.19 I get a different error: CUDA error: Illegal address in cuCtxSynchronize(), line 1876

Richard Antalik (ISS) changed the task status from Needs Triage to Needs Information from User.Jan 18 2022, 8:16 PM

Can you run file blender_debug_log.cmd in Blender 3.1 folder, reproduce this problem, close Blender and upload created files? Also does this happen every time you render or only sometimes?

As far as debugging this, first step would be to build Blender, which is very easy, see https://wiki.blender.org/wiki/Building_Blender. Personally I don't have good knowledge of cycles code and never had issues like this, but perhaps you can seek for pointers on blender.chat if you get stuck.

From what I have seen, this error seems to happen mostly when hardware is not working as it should. I would recommend to monitor GPU temperature, memory usage but perhaps also system voltages as dying or underpowered PSU's can cause all sort of weird issues.

Richard Antalik (ISS) closed this task as Archived.Feb 1 2022, 3:16 AM

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.