Page 1 of 1

Please Help - CUDA error 2 on device 0: out of memory

Posted: Sun Nov 11, 2018 7:18 pm
by ktheorin1
So I was working on a scene that included several 8K tree textures. I brought in all the textures, and placed them on the objects without issue. Everything rendered great with no errors. However, when I tried to bring in a new object with 8K textures, Octane might work for a bit, but when I try to adjust something it crashes. Sometimes it might just fail to load to begin with. I've dealt with scenes with far more objects and textures before without issue, but it seems this scene has arbitrarily decided not to work when I try bring in another texture. To be clear, this is an issue with the textures, not the objects themselves. They are all 8K jpegs with displacement. The issue still pops up even with other textures that are smaller.

Error Log:

OctaneRender 3.08.5 (3080500)

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 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 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 700 on device 0: an illegal memory access was encountered
-> kernel execution failed(kernel25)
CUDA error 700 on device 0: an illegal memory access was encountered
-> failed to copy memory from device.
device 0: info channel kernel failed

Another error i get when its not the former:

OCT:device 0: failed to upload data texture 23 of context 1

I'm using Titan XP on Cinema 4D with an EGPU enclosure. And all drivers are up to date. Is there any way to fix this issue?

Re: Please Help - CUDA error 2 on device 0: out of memory

Posted: Sun Nov 11, 2018 7:43 pm
by haze
Are you using Windows 7?

Re: Please Help - CUDA error 2 on device 0: out of memory

Posted: Sun Nov 11, 2018 9:29 pm
by ktheorin1
No, I'm using Mac OS High Serria

Re: Please Help - CUDA error 2 on device 0: out of memory

Posted: Sun Nov 11, 2018 11:03 pm
by ktheorin1
Update: I've found the issue (certain textures in my scene are causing the crashes). I've made a second post: viewtopic.php?f=9&t=69441

Re: Please Help - CUDA error 2 on device 0: out of memory

Posted: Fri Aug 23, 2019 6:51 am
by thestudiogold
I'm having a similar error, but on multiple scenes in c4d using the c4d plugin.

Running windows 10
i7 6700k
3x 1080ti
1x 1080
32 gb

c4d r19

Started logging on 23.08.19 15:05:40

OctaneRender 4.05 (4050000)

CUDA error 2 on device 0: out of memory
-> failed to pin memory
device 0: failed to pin film buffer
CUDA error 2 on device 2: out of memory
-> failed to fetch device pointer from pinned memory
device 2: failed to pin film buffer
CUDA error 2 on device 3: out of memory
-> failed to fetch device pointer from pinned memory
device 3: failed to pin film buffer
CUDA error 2 on device 1: out of memory
-> failed to fetch device pointer from pinned memory
device 1: failed to pin film buffer