System Information
Operating system: Linux-4.14.105-1-MANJARO-x86_64-with-arch-Manjaro-Linux 64 Bits
Graphics card: GeForce GTX 1080 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 418.43
Blender Version
Broken: version: 2.80 (sub 49), branch: master, commit date: 2019-03-15 18:31, hash: rBfb4bb611559b
Worked: 2.79
Intro
I've been having some real issues with the Python API and Vertex Colors. These issues initially started showing up while using Animation Nodes in 2.8. But I didn't want to occupy developer time for a 3rd party addon. However, I've been able to narrow down the issue using the Python API, purely in Blender.
Short description of error
Cylinder object with an animated armature and a subdiv modifier.
A python handler is responsible for randomizing vertex colors on every frame_change_pre.
Upon rendering the animation, blender crashes on the second frame, in both Eevee and Cycles.
def my_handler(scene):
vc = bpy.data.meshes['Cylinder'].vertex_colors["Col"].data
for i in range(0, len(vc)):
rc = [random.random() for i in range(3)]
vc[i].color = (rc[0], rc[1], rc[2], 1.0)
print("Frame Change")
bpy.app.handlers.frame_change_pre.append(my_handler)Exact steps for others to reproduce the error
"Run Script" in the attached file.
Then render the animation.
