Re: User interface thread
David Clymer <david-LEGOU7lN1jbY0TyS/[email protected]> Sun, 13 Nov 2005 18:32:12 -0500
| Newsgroups | gmane.comp.games.mud.client.lyntin |
|---|---|
| Message-ID | <[email protected]> |
On Sun, 2005-11-13 at 10:48 -0600, will guaraldi wrote: > On Sun, 13 Nov 2005, Eugene wrote: > > > > Shutting the lyntin down is a bit messy and has some races, so I > > consider clarifying threading issues a bit. The code in question is > > unnecessarily hairy by now. > > In regards to the first sentence, I haven't seen any issues with the > existing UIs. So while I acknowledge there could be race conditions > involved with exiting, I haven't seen any evidence of them. I've seen this very frequently with cursesui. I think I remember it happening a time or so with urwidui too...though I've not been able to reproduce it: david@zepto:~/.lyntin$ lyntin Exception in thread ui (most likely raised during interpreter shutdown): Traceback (most recent call last): File "/usr/lib/python2.4/threading.py", line 442, in __bootstrap File "/usr/lib/python2.4/threading.py", line 422, in run File "/home/david/dev/personal/python/lyntin/lyntin40/lyntin/ui/cursesui.py", line 839, in runui exceptions.TypeError: 'NoneType' object is not callable Unhandled exception in thread started by Error in sys.excepthook: Original exception was: It doesn't seem to be an issue for textui (at least I don't ever remember seeing it). I suppose this means that a) glassnake & I aren't shutting down our UIs properly, or b) textui has almost nothing to shutdown, and so is almost always too fast to be caught in the race condition. -davidc -- gpg-key: http://www.zettazebra.com/files/key.gpg
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDd8z82XpGgG+SNaERAuLRAJ4kGncg5v71Znye978jxU/Qe8SAOwCbBsoT g71qFX5/MVENKR91rZMKaok= =o7wl -----END PGP SIGNATURE-----