Darwinbots Forum
Code center => Bugs and fixes => Topic started 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.
-
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.
-
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.
-
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?
-
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
-
You get this with 2.43u?
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?
-
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,
runtime error 6 'overflow'
-
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.
-
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.
-
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.