| Issue 4: | Transport unresponsive, can't start new threads | |
| Back to list |
Posted by legoscia at 2005-08-13 12:09:03 Every now and then, our PyICQ-t transport gets the error below, and becomes completely unresponsive; neither Jabber, web administration, nor Ctrl-C can reach it. This is PyICQ-t r106, Python 2.3.4, Twisted 1.3.0. [2005-08-08 08:57:08] Session volatile@jabber.cd.chalmers.se - updating status on legacy service, resource Hemma [2005-08-08 08:57:08] LegacyConnection: setStatus None None [2005-08-08 08:57:08] ICQConnection: setICQStatus None [2005-08-08 08:57:09] Traceback (most recent call last): [2005-08-08 08:57:09] File "/usr/local/lib/python2.3/site-packages/twisted/internet/default.py", line 526, in doSelect [2005-08-08 08:57:09] _logrun(selectable, _drdw, selectable, method, dict) [2005-08-08 08:57:09] File "/usr/local/lib/python2.3/site-packages/twisted/python/log.py", line 65, in callWithLogger [2005-08-08 08:57:09] callWithContext({"system": lp}, func, *args, **kw) [2005-08-08 08:57:09] File "/usr/local/lib/python2.3/site-packages/twisted/python/log.py", line 52, in callWithContext [2005-08-08 08:57:09] return context.call({ILogContext: newCtx}, func, *args, **kw) [2005-08-08 08:57:10] File "/usr/local/lib/python2.3/site-packages/twisted/python/context.py", line 43, in callWithContext [2005-08-08 08:57:10] return func(*args,**kw) [2005-08-08 08:57:10] --- <exception caught here> --- [2005-08-08 08:57:10] File "/usr/local/lib/python2.3/site-packages/twisted/internet/default.py", line 535, in _doReadOrWrite [2005-08-08 08:57:10] why = getattr(selectable, method)() [2005-08-08 08:57:10] File "/usr/local/lib/python2.3/site-packages/twisted/internet/tcp.py", line 255, in doRead [2005-08-08 08:57:10] return self.protocol.dataReceived(data) [2005-08-08 08:57:10] File "/jabber/src/PyICQ-hack/src/tlib/xmlstream.py", line 159, in dataReceived [2005-08-08 08:57:11] self.stream.parse(buf) [2005-08-08 08:57:11] File "/usr/local/lib/python2.3/site-packages/twisted/protocols/sux.py", line 180, in dataReceived [2005-08-08 08:57:11] newState = doFn(byte) [2005-08-08 08:57:11] File "/usr/local/lib/python2.3/site-packages/twisted/protocols/sux.py", line 235, in do_tagstart [2005-08-08 08:57:11] self.gotTagEnd(self.tagName) [2005-08-08 08:57:11] File "/jabber/src/PyICQ-hack/src/tlib/domish.py", line 568, in gotTagEnd [2005-08-08 08:57:11] self.ElementEvent(self.currElem) [2005-08-08 08:57:11] File "/jabber/src/PyICQ-hack/src/tlib/xmlstream.py", line 180, in onElement [2005-08-08 08:57:12] self.dispatch(element) [2005-08-08 08:57:12] File "/usr/local/lib/python2.3/site-packages/twisted/xish/utility.py", line 139, in dispatch [2005-08-08 08:57:12] callbacklist.callback(object) [2005-08-08 08:57:12] File "/usr/local/lib/python2.3/site-packages/twisted/xish/utility.py", line 50, in callback [2005-08-08 08:57:12] methodwrapper(*args, **kwargs) [2005-08-08 08:57:12] File "/usr/local/lib/python2.3/site-packages/twisted/xish/utility.py", line 34, in __call__ [2005-08-08 08:57:12] self.method(*nargs, **nkwargs) [2005-08-08 08:57:13] File "main.py", line 223, in onPresence [2005-08-08 08:57:13] self.sessions[froj.userhost()].onPresence(el) [2005-08-08 08:57:13] File "/jabber/src/PyICQ-hack/src/jabw.py", line 241, in onPresence [2005-08-08 08:57:13] self.presenceReceived(froj.userhost(), froj.resource, toj.userhost(), toj.resource, priority, ptype, show, status) [2005-08-08 08:57:13] File "/jabber/src/PyICQ-hack/src/session.py", line 138, in presenceReceived [2005-08-08 08:57:13] self.handleResourcePresence(source, resource, to, tor, priority, ptype, show, status) [2005-08-08 08:57:13] File "/jabber/src/PyICQ-hack/src/session.py", line 165, in handleResourcePresence [2005-08-08 08:57:13] self.setStatus(r.show, r.status) [2005-08-08 08:57:13] File "/jabber/src/PyICQ-hack/src/session.py", line 111, in setStatus [2005-08-08 08:57:14] self.legacycon.setStatus(show, status) [2005-08-08 08:57:14] File "/jabber/src/PyICQ-hack/src/legacy/glue.py", line 136, in setStatus [2005-08-08 08:57:14] icqt.ICQConnection.setICQStatus(self, show) [2005-08-08 08:57:14] File "/jabber/src/PyICQ-hack/src/legacy/icqt.py", line 272, in setICQStatus [2005-08-08 08:57:14] self.bos.setICQStatus(status) [2005-08-08 08:57:14] File "/jabber/src/PyICQ-hack/src/tlib/oscar.py", line 1377, in setICQStatus [2005-08-08 08:57:14] self.sendSNACnr(0x01, 0x1e, TLV(0x06, struct.pack(">HH", self.statusindicators, icqStatus))) [2005-08-08 08:57:15] File "/jabber/src/PyICQ-hack/src/tlib/oscar.py", line 401, in sendSNACnr [2005-08-08 08:57:15] threading.Timer(delay,self.sendFLAP,[snac]).start() [2005-08-08 08:57:15] File "/usr/local/lib/python2.3/threading.py", line 410, in start [2005-08-08 08:57:15] _start_new_thread(self.__bootstrap, ()) [2005-08-08 08:57:15] thread.error: can't start new thread [2005-08-08 08:57:15] PyTransport: Disconnected from main Jabberd server Posted by jadestorm at 2005-08-13 13:12:23 Is this after it's been up for a while, or is there no pattern like that? Posted by jonas at 2005-08-13 13:41:25 Yes, after some days, a week or even longer this happends. We run it on OpenBSD on a sparc machine. PyMSN-t runs on the same computer without the same problems. Posted by jadestorm at 2005-08-13 14:13:50 I'm wondering if there's either... 1. a max number of threads that it's hitting 2. it's running out of memory Either way, I'm sure it's the cause of my code. Either not clean
Dec 9, 2007
#1
jadest...@gmail.com
Dec 12, 2008
Please reopen ticket if error happens again
Status:
WontFix
Owner: --- |