Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Peter on December 01, 2007, 01:49:39 PM

Title: Veggie repop high=crash RESOLVED 2.43v
Post by: Peter on December 01, 2007, 01:49:39 PM
After setting the veggie-repop way too high, wel I don't even know how many zero's, my finger slipped  
After 5 or 6 zeros or so(I think) I get a crash.

I know I did crash it, but could there be a hardcoded limit for some settings, to make it harder for me to crash.  

The sim is, well broken. And can't be loaded but here it is.
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: EricL on December 01, 2007, 03:19:03 PM
Yup.  All the veggy repopulation entry fields were unprotected and would cause integer overflow crashes when values > 2^15 are enterred.  

Fixed in 2.43u.
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: Peter on December 06, 2007, 04:13:41 PM
Well, high values in the bot energie also couse an error, I get an error when I put a high value in the veggie nrg when running the sim.
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: EricL on December 06, 2007, 06:47:34 PM
Quote from: Peter
Well, high values in the bot energie also couse an error, I get an error when I put a high value in the veggie nrg when running the sim.
You get this with 2.43u?
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: Peter on December 07, 2007, 04:43:06 AM
Quote from: EricL
Quote from: Peter
Well, high values in the bot energie also couse an error, I get an error when I put a high value in the veggie nrg when running the sim.
You get this with 2.43u?
Yes
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: EricL on December 07, 2007, 10:43:33 AM
Quote from: EricL
You get this with 2.43u?
Quote from: Peter
Yes
I can't reproduce this.  The protection code is there and was there in 2.43u.  It won't crash on me.

We are talking about the field were you specify the nrg per cycle for veggies, right?  Hmmmm.  What value are you specifying to make it crash?
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: Peter on December 07, 2007, 11:22:31 AM
Quote
We are talking about the field were you specify the nrg per cycle for veggies, right? Hmmmm. What value are you specifying to make it crash?
Right, I typed 320000, it was 30000 and after adding the 2 I get an overflow error. To be precise,

Quote
runtime error 6  'overflow'
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: EricL on December 07, 2007, 11:28:20 AM
Damn.  Won't crash for me in the latest code.  Maybe I added the protection post 2.43u though I don't think so...

2.43v should come out today or tomorrow.  Let's keep this bug open and see if you can make it crash in 2.43v.
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: Peter on December 07, 2007, 11:38:34 AM
 eh, I overread somehow, I meant changing the start energy of the veggie coused an error.  

So, not in the general tab but in the specie tab.
Title: Veggie repop high=crash RESOLVED 2.43v
Post by: EricL on December 07, 2007, 12:26:17 PM
Quote from: Peter
eh, I overread somehow, I meant changing the start energy of the veggie coused an error.  

So, not in the general tab but in the specie tab.
Ah, okay.  That makes sense.  Fixed in 2.43v.