Page 1 of 1

Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Sun Nov 11, 2018 11:02 pm
by ktheorin1
I've been working on a scene, and whenever I bring in new objects with textures and try to render the scene in the live viewer, I get an error message. After looking around, it seems that the issue is tied to two objects in my scene that were textured in substance painter. When I delete them from the scene, it renders with no issue. I used to think it was because the textures were in PNG format, so I redid them in Jpg. This apparently didn't solve the issue. What is it about these textures and how they're set up that causes the error message?

Link to the textures and object scene: https://www.dropbox.com/s/gzh3hr82cnf2g ... t.zip?dl=0

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. On Mac OS High Serria.

Re: Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Mon Nov 12, 2018 4:51 am
by ktheorin1
Update: switching from 8k textures to 4k versions seems to fix the issue. But I have other 8K textures in this scene and others that work without issue.

Re: Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Mon Nov 12, 2018 6:13 am
by ktheorin1
It seems solely tied to the TV object. I applied an 8K texture to a random object in the scene, and the scene crashed. When I deleted the TV object and applied the 8K texture to the same object, it worked fine. I'm not sure why this object is crashing the scene like it is.

Re: Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Mon Nov 12, 2018 5:58 pm
by bepeg4d
Hi,
unfortunately you have not shared all the textures, so it is difficult to say:
Screen Shot 2018-11-12 at 18.47.47.png
Next time, please, save the project with assets, in order to collect all the textures before sharing.
At the moment the scene takes ~5.8GB of VRAM, and renders with no issues here, in both 3.08.5, and 4RC7:
Screen Shot 2018-11-12 at 18.56.23.png
ciao Beppe

Re: Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Mon Nov 12, 2018 8:45 pm
by ktheorin1
The textures that aren't connected are for objects that aren't in the scene. The two specific objects with 8K textures that seem to be causing the issue are "Screen" and "Brown"

Re: Texture Issue - CUDA error 2 on device 0: out of memory

Posted: Tue Nov 13, 2018 10:56 am
by bepeg4d
Hi,
I’m writing you a PM.
ciao Beppe