[Pydev-users] [Users] RE: Debug Exception - dictionary changed size dur
Brought to you by:
fabioz
|
From: SourceForge.net <no...@so...> - 2011-06-23 20:36:32
|
The following forum message was posted by darrellrmay at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4560990: I encounter this too with my version is " PyDev for Eclipse 2.1.0.2011052613" running on Ubuntu. If you look in this version at pydevd.py on line 404, you have: for tId in self.RUNNING_THREAD_IDS.keys(): try: if not DictContains(foundThreads, tId): self.processThreadNotAlive(tId) except: sys.stderr.write('Error iterating through %s (%s) - %s\n' % (foundThreads, foundThreads.__class__, dir(foundThreads))) raise processThreadNotAlive is the method that modifies RUNNING_THREAD_IDS. They need to fix this by either making a copy of that list and iterate over that, or make a list of thread id's that we want to delete, and delete them after this loop iteration. You can't change this list while iterating over it. I'm going to patch it tonight and test it. |