I don't know when but probably while removing an Avatar from the world I get a RuntimeError.
Code:
Traceback (most recent call last):
File "C:\Program Files (x86)\WorldViz\Vizard4\python\viz.py", line 2581, in _RemoveObject
obj.__class__._OnRemoveObject(obj)
File "C:\Program Files (x86)\WorldViz\Vizard4\python\viz.py", line 5750, in _OnRemoveObject
VizBone._RemoveAvatarBones(obj)
File "C:\Program Files (x86)\WorldViz\Vizard4\python\viz.py", line 5968, in _RemoveAvatarBones
bones = [ id for id in cls._VizObjectCache.iterkeys() if begin <= id < end ]
RuntimeError: dictionary changed size during iteration
It seems the _VizObjectCache is changed during the remove operation, I'm loading avatars using the "viztask.schedule" and "yield viztask.waitDirector" because loading the avatar and initializing my code around it would take to long causing jutters in the framerate.
Could this be the cause? and how could i solve it?