Code center > Bug reports

League stack place problem

(1/1)

Jez:
488 rounds, bots neck and neck, had left League for few hours, when I came back it said;

Error. Out of stack space. Saving sim in saves directory as error.sim

Would have been better if it had saved it as ‘forEric.sim’ but I was impressed with this new user friendly feature.  

Not really sure if this is a my pc bug (16g spare space) or program bug. The saved sim doesn't seem to show anything useful, one bot had 140 population one bot had 0 at time of stoppage IIRC.

EricL:
The way the league code was written (not by me) involves a recursive re-invocation of simulations.  If a contest goes too many rounds, this will blow VB's stack.

I can fix this but it involves mucking about with the core of how leagues are, ahem... 'architected'.

I will put it on the list and look at it more closely later tonight, but I think this may be something we want to wait on unless I find an easy fix.

Jez:
Np, thanks for checking it.

As long as I know this will happen then it'll just be a rule 'any pair of bots reaching x amount of rounds without a clear winner will be deemed to have lost'

Will this always happen at the same amount of rounds or would I need to do it all again to find out?

EricL:
My guess is that it will happen at about the same number of rounds, perhaps +/- 5%.

Navigation

[0] Message Index

Go to full version