System Information
macOS 10.13, 2x1080ti's, i9-7980XE
Blender Version
Build & Hash: (2.80.30 - a48bc157078)
This issue works only with: (Scenes with less objects - though the script ran perfectly fine in 2.79 with context.scene instead of context.depsgraph)
There appears to be a race condition when working with depsgraph to get mesh data and then removing the mesh to free up memory.
This issue occurs when rendering a scene with my custom add-on: Arnold Render engine.
Based on this script here:
@contextmanager
def _Mesh(ob):
pc = time.perf_counter()
mesh = ob.to_mesh(depsgraph, apply_modifiers=True, calc_undeformed=True)
if mesh is not None:
try:
mesh.calc_normals_split()
arnold.AiMsgDebug(b" mesh (%f)", ctypes.c_double(time.perf_counter() - pc))
yield mesh
finally:
data.meshes.remove(mesh)
else:
yield None