[Twisted-Python] "_wait" is blowing up?!

Brian Granger ellisonbg.net at gmail.com
Sun Aug 24 02:25:01 EDT 2008


File "/usr/lib/python2.5/site-packages/twisted/trial/unittest.py",
line 763, in run
   self._wait(d)
 File "/usr/lib/python2.5/site-packages/twisted/trial/unittest.py",
line 901, in _wait
   reactor.run()
 File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py",
Hi,

We have a pretty big tests suite that uses trial to test all sorts of
twisted things.  We are pretty careful to do the right thing in our
tests and leave the reactor clean....but recently we began seeing a
transient really wierd bug when we run our test suite.

Some characteristics of the problem:

1.  The problem only appears sometimes - seems random
2.  The problem shows up in different test methods
3.  Sometimes it hangs the tests suite for a long time - eventually
twisted continues though

Here is the traceback we get.

line 220, in run
   self.mainLoop()
 File "/usr/lib/python2.5/site-packages/twisted/internet/posixbase.py",
line 228, in mainLoop
   self.runUntilCurrent()
--- <exception caught here> ---
 File "/usr/lib/python2.5/site-packages/twisted/internet/base.py",
line 533, in runUntilCurrent
   f(*a, **kw)
 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 261, in errback
   self._startRunCallbacks(fail)
 File "/usr/lib/python2.5/site-packages/twisted/internet/defer.py",
line 290, in _startRunCallbacks
   raise AlreadyCalledError
twisted.internet.defer.AlreadyCalledError:
ERROR

It appears that something is going on in the deadly _wait.  Any
thoughts on how we might fix this?

Thanks

Brian




More information about the Twisted-Python mailing list