System Information
System info file for Blender 3.0 Beta tests
System info file for Blender 3.1 alpha tests
Crash Dump
Minimal python script for reproducing the crash
Blender Version
Broken: See above sys info files
Worked: see
Short description of error
When attempting to render using the Crowdrender addon, pressing F12 or using the render still/animation menu options causes Blender to crash. Since I am a developer for Crowdrender, I investigated until I could create a minimum test case for causing the crash. That script is attached above.
The cause appears to be calling the bpy.ops.wm.savemainfile or bpy.ops.wm.save_as_mainfile operators whilst in a render_init handler. Further investigation showed that this seems to only occur if I modify a property in the scene or in the bpy.context.window_manager. This combination of modifying such a property, then calling a render, and whilst handling the render_init event, attempting to call bpy.ops.wm.savemainfile or bpy.ops.wm.save_as_mainfile appears to be what causes the crash.
I have done more tests and if no such property is modified, then there is no crash, so I am fairly confident this combination is causing the crash.
All of this works fine and has worked fine since Blender 2.83 up to 2.94.
Desired outcome
@Brecht Van Lommel (brecht) has mentioned that what we are doing is the best way to enable our addon to work well with Blender. So my hope is that this problem can be fixed in Blender.
Exact steps for others to reproduce the error
- open Blender 3.0 beta or 3.1 alpha
- With the default scene loaded, open the scripting workspace
- In the scripting workspace, in the text editor, open the script attached to this bug report and click the run script button. It will register a render engine and a handler for render_init events
- Press the F12 button, or use the render still menu option
- Blender will exit immediately
