GPU only renders first frame, then memory problem (Iray)

Hi!
I have a 980 Ti and I'm trying to render an image series.
Following advice on a different thread, I made sure that my fans were running at 100% and that my gpu temp wasn't too high (45 C during render). First image of the series rendered in 5 minutes with my gpu only. Then this error message:
IRAY rend error: Unable to allocate 134217728 bytes from 351354880 bytes of available device memory.
The thing is 134 217 728 is less than 351 354 880, so it should be possible to allocate, shouldn't it? And should I not have way more than this available, since my 6 GB of ram on the card should give me more than 15 times this amount of available memory? Is it that my GPU tries to allocate the seccond frame without dumping the first?
Every time I render an image series, it's the same: first image renders fast with GPU; the others fail tu use it and fall back on CPU...
Thanks for any help!
Comments
After rendering there is still 60% of my 3GB Vram in use (others said it's normal). Not sure what's the problem with your crash, but I think it isn't unwise to close daz after every render.
It doesn't crash per say, it just stops using the GPU. It can then go on rendering the next frames with the CPU, it's just obviously not what I want. The GPU memory usage reads at 4 GB during the rendering of the first frame (then 0, obviously).
Is there an option that I'm missing that will let me use the GPU more efficiently, so that it can render a second image without me having to render all frames manually one by one?
Does anyone have an idea of what the issue is? Why would it have largely enough memory to render the first frame, but not the seccond?
If your GPU temp is 45 during a render, the GPU isn't being used at all.
You don't need to close Studio after every render, you just need to close all of the render windows.
The GPU memory doesn't clear when a render window is open. If the seecond frame is significantly different than the first, additional memory will need to be allocated in addition to the memory that is already allocated.
I know that my gpu is being used on the first frame. The log file says so, gpuz shows it, the render is fast, there is no doubt.
Seccond frame is always very close to the first frame.
I don't render to a window, but directly to file. I don't close DAZ after a render. But If I want to use only my GPU, I need to stop the process as the seccond frame starts (with the cpu) and start again manually.