[Pogamut-list] Bots standing around doing nothing

jacob.schrum pogamut-forum at diana.ms.mff.cuni.cz
Fri Nov 26 06:36:49 CET 2010


Re: Bots standing around doing nothing

Author: jacob.schrum

Thank you for all of the help and suggestions. I think I may have finally fixed the problem, but we'll see how well things are running after a few days worth of evolution. 

The problem basically had to do with my special data collecting class that I was using to compute fitness values. This class maintained references to lots of the bot's internal classes after the bot finished running. So even though I was completely done with a given bot, I still had (via a long chain) references to it's AgentInfo, Players, Senses, PathPlanner, etc. classes. This made for a lot of leaking memory.

I also had references to listeners that no longer needed to be used. The one listener example I mentioned above was just an example. I had listeners for several types of messages, including Self messages, which are very frequent. The listeners themselves may not have been interfering, but they were another memory leak, so I fixed that.

If after all this things still don't work, I'll go ahead and send in my code.

-- 
Reply Link: <http://diana.ms.mff.cuni.cz/main/tiki-view_forum_thread.php?forumId=4&comments_reply_threadId=4&comments_parentId=404&post_reply=1#form>





More information about the Pogamut-list mailing list