Anonymous | Login | 02-28-2021 16:01 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | |||||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
0007188 | [Squeak Packages] IRCBot | major | random | 09-12-08 23:04 | 12-30-08 18:46 | |||||||
Reporter | KenCausey | View Status | public | |||||||||
Assigned To | fstephany | |||||||||||
Priority | high | Resolution | open | |||||||||
Status | assigned | |||||||||||
Summary | 0007188: Image freezing | |||||||||||
Description | I've had several instances lately where an Image with IRCBot running and connnected where the image will freeze. I can interrupt it and examination indicates that it is related to the Transcript. Are we using processes/threads with IRCBot? If so we must be careful about writing to the transcript from a non-UI thread. | |||||||||||
Additional Information | ||||||||||||
Attached Files | ||||||||||||
|
![]() |
|
(0012730 - 197 - 215 - 215 - 215 - 215 - 215) fstephany 10-09-08 09:42 |
Each instance of IRCBot launches a thread (from IRCClientConnection>>startLoop) to read the socket every 50ms. Will it be enough to put a semaphore to avoid Transcript writing at the same time ? |
(0012731 - 31 - 31 - 31 - 31 - 31 - 31) fstephany 10-09-08 13:50 |
Should be corrected in FS46.mcz |
(0012732 - 693 - 759 - 877 - 877 - 877 - 877) KenCausey 10-09-08 20:11 |
Actually you could address this a little more simply by wrapping each call to the Transcript with WorldState addDeferredUIMessage: [ Transcript <blah> ] Hard to tell this from the image, I just barely recollected this but a search on the wiki turns up a little info like http://wiki.squeak.org/squeak/5689 [^] I know you've already implemented this with a semaphore, but I would suggest going back and using addDeferredUIMessage: because it simplifies the code and, at least for those knowledgeable about it, it is more intention revealing. Or I can do it at some point. I'm afraid I haven't had much time to give the bot lately and am not likely to have much time for a while now. |
(0012883 - 242 - 242 - 242 - 242 - 242 - 242) KenCausey 12-30-08 18:46 |
Hi Francois! With IRCBot3-FS.47 it looks like you have gotten back into the IRCBot hacking mood and have at least begun to address this issue. That's great as work on the bot never seems to move up in my own todo list. Thank you very much. |
Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
46 total queries executed. 35 unique queries executed. |