Page 1 of 1

CUDA Error 2: out of memory

PostPosted: Mon Sep 09, 2019 6:13 pm
by ktheorin1
I've gotten this issue on a few random scenes recently. Where the scene will render all the way through, but won't denoise at the end, so the render is just stuck rendering till you stop it. It's happened both on scenes that have 35 different materials with denser scenes, but also on a scene that had relatively very little in it at all. I've posted the full log below, but can anyone tell me if there's some settings that will help fix this issue or something I'm doing wrong with the materials. I'm using three Titan XP cards on a Macbook Pro.

Started logging on 09.09.19 13:56:09

OctaneRender 4.05 (4050000)

CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
-> failed to allocate device array
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
CUDA error 2 on device 2: out of memory
CUDA error 2 on device 1: out of memory
CUDA error 2 on device 0: out of memory
-> failed to allocate device array
-> failed to allocate device array
-> failed to allocate device array
denoiserThread0: <:
. Restart required

Re: CUDA Error 2: out of memory

PostPosted: Mon Sep 09, 2019 7:51 pm
by ktheorin1
Occasionally, it will also say "not all the passes requested for tonemapping are enabled"

Re: CUDA Error 2: out of memory

PostPosted: Wed Sep 25, 2019 8:51 am
by DesiderioAB
I have the same problem. It works again when I restart C4d.

My configuration is:
Cinema 4d R21, OctaneRender 4.05 (4050000)
Windows 10 pro, 3 gtx 1080ti.
Nvidia driver version is 436.02

Re: CUDA Error 2: out of memory

PostPosted: Wed Sep 25, 2019 2:05 pm
by omardex
I have these errors and error 700 too when I fiddle with advanced 3d image settings in the nvidia control panel or overclocking and the msi afterburner software, when I leave these in the defaults except the fan curve the renders goes normal without errors.

that said these errors are most common in the newer version at least to me being 2019.1 super unstable for this reason (cant even use shadow catcher, infinite floor or an instance without the cuda error showing out).

I have a 980ti and game driver 436.30 so I don't know if this relates to other hardware/driver combination

note: I read in another post that these errors are related to faulty / soon to be faulty video hardware and psu, I hope in any case that that is not the reason.

Best.

Re: CUDA Error 2: out of memory

PostPosted: Wed Sep 25, 2019 3:09 pm
by aoktar
Why guys post here? Topic is from other guy with OSX, making confusing
Btw check images

a1.jpg

a2.jpg

Re: CUDA Error 2: out of memory

PostPosted: Thu Sep 26, 2019 6:27 am
by bepeg4d
Hi,
under Win 10, please make sure to update to 1903, then perform a clean install of Studio driver 431.86:
https://www.nvidia.com/download/driverR ... 1050/en-us

Under Mac, please make sure to have CUDA 387.178 with Sierra, or 410.130 with High Sierra:
https://www.nvidia.com/en-us/drivers/cu ... r-archive/
All the other versions are not good for OctaneRender.
ciao Beppe