Darwinbots Forum

Code center => Bugs and fixes => Topic started by: shvarz on December 08, 2006, 02:52:05 PM

Title: Overflow crash
Post by: shvarz on December 08, 2006, 02:52:05 PM
I'm quite impressed on how stable the latest version is.  I've been running it for millions of cycles without crashes.  Just got my first random crash with "overflow".  I tried to attach the sim to this post, but it does not work - I get timeout errors.  So I put them on the server.  I had an autosave and saved every hour - the previous two saves are also messed up and give me overflow within 5-10 minutes after loading.

The links are:

http://www.darwinbots.com/shvarz/error.sim (http://www.darwinbots.com/shvarz/error.sim)
http://www.darwinbots.com/shvarz/zerobot3.sim (http://www.darwinbots.com/shvarz/zerobot3.sim)
http://www.darwinbots.com/shvarz/zerobot4.sim (http://www.darwinbots.com/shvarz/zerobot4.sim)

Hope you can figure out what went wrong.
Title: Overflow crash
Post by: EricL on December 08, 2006, 03:13:43 PM
Found it.  A bot is trying to make a huge amount of poison and the poison cost is very small.  The code performs an unprotected assignment of nrg/cost to a mem location, overflowing the integer based mem array.  This bug is duplicated in the routines for making venom and other substances.  

You have found a whole new pile of bugs!  I'll be fixing the lot in 2.42.9L which I will release in an hour or so so you can continue with your sim.  

Hope that makes up for making negative memory values work and killing your other bot...
Title: Overflow crash
Post by: EricL on December 08, 2006, 04:30:59 PM
Try this

2.42.9L Buddy Drop Download (http://www.darwinbots.com/FTP/Darwin2.42.9L.zip)

and tell me if your sim works okay.  Thanks.
Title: Overflow crash
Post by: Testlund on December 09, 2006, 09:12:10 AM
Maybe that's what I got too right now. I've been running version 2.43.9j on my old computer, very stable, but now it crashed. So maybe this drop is worth a try. I'll be back.