System Information
64bit Manjaro Linux, kernel 3.14.29
CPU: AMD Phenom II 970 Deneb quad-core
GPU: nVidia GTX 650 Ti, driver 343.36
Blender Version
Broken: Buildbot Build 2.73 4cbf2ebd
Worked: Not sure this ever worked
Short description of error
Each night when I go to bed, I put my computer into suspend mode, rather than just leaving it on or shutting down. Most applications I leave running during the night don't have any problems. Blender, however, does. Two main problems I have observed:
- Textures on models will often be garbled.
- Rendering in cycles with CUDA will fail until you close blender and reopen it.
Exact steps for others to reproduce the error
- Start blender from the command line, and open or create a scene with textured surfaces, set Cycles to GPU mode. Go to the Render->Performance tab, and make sure that Persistent Images is turned on.
- Render the scene. It should render normally.
- Exit rendered view, go back to 3D view.
- Put your computer into suspend for at least 30 seconds.
- Exit suspend mode. Textures on the model will be garbled.
- Attempt to render. The render will fail, and if you click or touch anything you will get error messages about illegal instructions on the command line.
- Reload the file. The model textures will be corrected.
- Attempt to render. It will still fail to render, with the same illegal instruction errors.
- Close and reopen blender, then go to the Render->Performance tab and turn the Persistent Images option off.
- Repeat steps 1-8 with Persistent Images disabled. The texture corruption still occurs, but the CUDA errors do not.
Fixing the issue should be simple (in theory). It could be done by detecting when the computer suspends or hibernates (most OS's should provide an interface to detect this, but I could be wrong) and then clear/reload the data stored on the GPU.
Error output I got: