Author Topic: Veggie repop high=crash RESOLVED 2.43v  (Read 3714 times)

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« 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.
« Last Edit: December 07, 2007, 12:26:53 PM by EricL »
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #1 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.
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #2 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.
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #3 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?
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #4 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
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #5 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?
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #6 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'
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #7 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.
Many beers....

Offline Peter

  • Bot God
  • *****
  • Posts: 1177
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #8 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.
Oh my god, who the hell cares.

Offline EricL

  • Administrator
  • Bot God
  • *****
  • Posts: 2266
    • View Profile
Veggie repop high=crash RESOLVED 2.43v
« Reply #9 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.
Many beers....