Maniphest T63549

Custom property does not always seem to be defined in pre frame change handler. Race condition?
Closed, Duplicate

Assigned To
None
Authored By
Hans Baier (hansfbaier)
Apr 13 2019, 1:05 AM
Tags
  • BF Blender
  • BF Blender: 2.8
Subscribers
Hans Baier (hansfbaier)
Sebastian Parborg (zeddb)

Description

System Information
Operating system: Windows 10 Home 64 Bit
Graphics card: NVidia Geforce GTX 1050

Blender Version
Broken:
2.80-009dbc2bc9fb-win64

When playing the animation in the file for some invocations of the pre frame change handler,
the custom property 'CustomProperty' of object 'Cube' does not seem to exist .

Exact steps for others to reproduce the error
Open attached file:

Make sure the script Handler.py is executed at least once
open the system console
play animation to make sure the custom property of Cube is updated (Cube also changes color according to property).
Note the error messages that on some invocations the custom property does not exist:

File "C:\...\RenderNotAnimatedBug.blend\Handler.py", line 7, in animate_cube
KeyError: 'bpy_struct[key]: key "CustomProperty" not found'

Event Timeline

Hans Baier (hansfbaier) created this task.Apr 13 2019, 1:05 AM
Hans Baier (hansfbaier) updated the task description.
Hans Baier (hansfbaier) added a project: BF Blender: 2.8.
Sebastian Parborg (zeddb) added a subscriber: Sebastian Parborg (zeddb).

I think that the root cause might be the same as in your other report to let's merge them for now.