--- Operating System, Graphics card ---
Ubuntu 13.04 amd64 + GeForce GTX 670
Windows 7 64bit + GeForce GT 650M
--- Blender version with error, and version that worked ---
r60518, r60966 (own builds)
2.68a, 2.69 RC3 (official builds)
--- Short description of error ---
Blender often crashes when using BI renderer and changing the 3D viewport to rendered mode (shift+Z).
It seems that changing the viewport from GLSL to Rendered after certain operation (e.g. undo) causes the crash.
Steps to reproduce:
1. Start Blender
2. Change the viewport to GLSL textured
3. Move the default cube
4. Undo previous step (ctrl+Z)
5. Change the viewport to rendered view
You should be able to crash Blender while repeating the steps 2-5 several times.
The step 3 above can be another operation such as changing the resolution in render settings.
Attached a backtrace that includes debug symbols (blender_rendered_view_crash.txt).
Description
Related Objects
Event Timeline
I tried doing a bunch of things, but 3D view render seems to be stable here. The backtrace seems to indicate some material got corrupted, but I don't know why that would happen. There's not much I can do without more information.
* Is this a new issue, or does it happen also in 2.68?
* What are the actions before it crashes? When editing or removing materials or objects? Or immediately when enabling it?
* Do you have a material or texture preview render open while starting the 3D view render?
* Does this happen on the default cube, or is it only in some particular scenes?
* I confirmed the same crash happens also in 2.68a. See blender.crash.txt.
* It happens immediately after typing shift+Z.
* I had the material preview, but I'm not sure if the crash can happen without the preview.
* I didn't experience the crash on the default cube scene yet, but it happened on very simple scene (e.g. icosphere + monkey).
Ok, it seems like I am going to need a .blend file and some steps to redo the problem, because I can't get it to crash. I spent a lot of time debugging this stuff for 2.68 and found no remaining crashes. So if it also happens in that version, it must be some particular setup or combination of steps that I can't guess well.
The similar crash happened:
# backtrace
/usr/lib/blender/blender() [0xbac4e0]
/lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7f80e8db3ff0]
/usr/lib/blender/blender(end_render_material+0x1a) [0x118c22a]
/usr/lib/blender/blender(end_render_materials+0x27) [0x118c277]
/usr/lib/blender/blender(RE_Database_Free+0xfc) [0xe94bbc]
/usr/lib/blender/blender() [0xe0c93c]
/usr/lib/blender/blender() [0xbb9faa]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e) [0x7f80ee666f6e]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f80e8e779cd]
However I still cannot find how to reproduce it. It unexpectedly happens every time...
r60982
One more similar case:
# backtrace
./blender() [0xf84687]
./blender() [0xf848c5]
/lib/x86_64-linux-gnu/libc.so.6(+0x36ff0) [0x7f7d03deeff0]
./blender(end_render_textures+0x28) [0x12d3fa8]
./blender(RE_Database_Free+0xf5) [0x12f0385]
./blender() [0x10df872]
./blender() [0xf911ca]
/lib/x86_64-linux-gnu/libpthread.so.0(+0x7f6e) [0x7f7d0478ff6e]
/lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) [0x7f7d03eb29cd]
This happened when I was using 2.69 RC3.
The crash happens again and again, about 5-20 times per day.
I found the steps to reproduce the crash:
1. Start Blender
2. Change the viewport to GLSL textured
3. Move the default cube
4. Undo previous step (ctrl+Z)
5. Change the viewport to rendered view
You should be able to crash Blender while repeating the steps 2-5 several times.
Note: The crash can happen even if the window has no material preview.
Additional info,
You can substitute another operation for the step 3 above. e.g. Change the resolution in render settings.
Confirmed the crash happens also on Windows 7, using 2.69 RC3.
Also updated the initial description.
The undo in the step 4 seems not essential. Changing viewport after some other operation sometimes causes the crash, too.
Update the initial description again...
I confirmed GLSL view is not essential. Switching the viewport from "Solid" to "Rendered" also can cause the crash.
Undo seems to corrupt something.