View Single Post
Old 10-30-2013, 07:24 AM
sleiN13 sleiN13 is offline
Join Date: Dec 2008
Posts: 83
Random RuntimeError

I don't know when but probably while removing an Avatar from the world I get a RuntimeError.

Traceback (most recent call last):
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\", line 2581, in _RemoveObject
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\", line 5750, in _OnRemoveObject
  File "C:\Program Files (x86)\WorldViz\Vizard4\python\", 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?
Reply With Quote