Bug workaround thread

Had a problem with blender not working as expected and found a solution? Post them here!

Here’s one.
Blender version
2.69 official release (r61078)

Problem:
Rendering animation in Cycles will work OK for about the first few frames then will start rendering black frames.
Incredibly inconvenient if you start something rendering overnight.
Errors in console along the lines of:

CUDA error: Unknown CUDA error value in cuModuleGetTexRef<&texref, cuModule, name>

CUDA error: Unknown CUDA error value in cuModuleGetGlobal<&mem, &bytes, cuModule, name>

CUDA error: Unknown CUDA error value in cuMemcpyHtoD<mem, host, size>

Solution:

Go to Render Settings
Go to “performance”
Make sure “Cache BVH” and “Persistent Images” are unticked
No more black frames and on my computer about a 15% speedup in rendertime…

Yeah, I’ve never had good luck with those options. They seem like they would be helpful optimizations, but in reality, it just seems like it makes it more prone to crashing. Caching BVH just adds another step to write the bvh, but it never seems to actually read it back. it tries, but then it still takes just as long to rebuild the BVH. kinda dissapointing.