Operating system: Windows 10 Home
Graphics card: GTX 1070 8GB
Broken: 2.80, .3076544c8c52, 2019-05-16
Short description of error
This issue was encountered while updating the FLIP Fluids addon for the recent rBe693918d40741b0839cea84d2e0c386cc262e0c3 API changes. I have reduced the issue to a simple script that causes Blender to freeze when calling the evaluated_depsgraph_get method.
It seems that adding a modifier to an object and then removing the modifier via the Python API is related to the freezing issue. The first time evaluated_depsgraph_get is called, the method completes successfully. On the second time it is called on another object, the freeze will occur.
Here is a short script that reproduces the issue:
import bpy def test_mesh_evaluated(obj): modifier = obj.modifiers.new("test_mod", "TRIANGULATE") print("Retrieving evaluated depsgraph...") depsgraph = bpy.context.evaluated_depsgraph_get() print("Retrieved evaluated depsgraph:", depsgraph) obj_eval = obj.evaluated_get(depsgraph) new_mesh = obj_eval.to_mesh() bpy.data.meshes.remove(new_mesh) obj.modifiers.remove(modifier) cube_obj = bpy.data.objects.get("Cube") test_mesh_evaluated(cube_obj) cube_obj = bpy.data.objects.get("Cube.001") test_mesh_evaluated(cube_obj)
The console output after running this script is:
Retrieving evaluated depsgraph... Retrieved evaluated depsgraph: <bpy_struct, Depsgraph at 0x000002CF230DDD38> Retrieving evaluated depsgraph...
Exact steps for others to reproduce the error
I have attached a .blend file that includes the script to reproduce this issue.
- Open the .blend file
- Press 'Run Script', Blender freezes
To reproduce from a new .blend file:
- Duplicate the default cube so that there are two cubes in the scene (Cube, Cube.001)
- Run the script, Blender freezes