Darwinbots Forum

Code center => Bugs and fixes => Solved Bugs => Topic started by: Shadowgod2 on February 23, 2014, 12:20:08 AM

Title: 32k crash
Post by: Shadowgod2 on February 23, 2014, 12:20:08 AM
i've been trying to do zerobots but when the bots reach 32000 cycles old after startup there is a runtime error overload. it happens to any bot that reaches 32k though usually takes a while for one to reach it.
Title: Re: 32k crash
Post by: Botsareus on February 23, 2014, 12:21:31 PM
I'll play with it. Thanks for the find.
Title: Re: 32k crash
Post by: Botsareus on February 23, 2014, 12:48:04 PM
Shadowgod, can you also please give me the robots (.txt) used in your simulation?

See picky for explanation of why I ask:

I have used alga_v2 with reproduction disabled and it worked fine. I guess I have to mimic your settings exactly. thx.
Title: Re: 32k crash
Post by: Shadowgod2 on February 24, 2014, 01:00:58 AM
sure. i have also have a sim for you to see if it works or in this case doesn't work. i tried a smaller sim of just 5 zero bots only and it went on for over 200k cycles before i closed out but with 90 it crashes and it's only between the 32k and 34k autosaves. i just checked where this crash takes place and it's between 70 and 80 bots that this crash happens
Title: Re: 32k crash
Post by: Botsareus on February 24, 2014, 09:14:08 AM
Lol, I am losing my mind. Shadowgod, I have put safemode in place just to catch crashes such as this one.
Why the heck should I wait 32k cycles or more?

Please follow these instructions  (http://forum.darwinbots.com/index.php/topic,6159.0.html)

Sorry for wasting you time a little there, but was probably worth while to get the robots anyway in case they repopulate.

You do not need to include global.gset unless they changed between now and when you posted the original. The same for the settings file. Your simulation file however is useless, I need a more resent one generated by the autosave system.
Title: Re: 32k crash
Post by: Botsareus on February 24, 2014, 10:41:18 AM
I am probably going to find it eventually anyway, but it is worth while to catch it now because your settings are already configured to catch it. Thx and sorry for the confusion, my bad.
Title: Re: 32k crash
Post by: Shadowgod2 on February 24, 2014, 11:29:23 PM
at the rate i'm going i will have a reproducer before it catches it :dry:

should it ask to save as it closes out or should it just stop?
Title: Re: 32k crash
Post by: Botsareus on February 25, 2014, 10:48:34 AM
Actually, it should just crash with an "overload" error, might want to "end process tree" from teh end task menu at this point.
Then restart it and run it some more until you see a different message other then "do you want to enter diagnostic mode?" It is a little annoying, but it will get me a nice 2K cycles window I can work with w/o wasting my time. Thx.
Title: Re: 32k crash
Post by: Botsareus on February 25, 2014, 05:42:37 PM
Sounds like it is just slow... fix coming soon. I think Dumpling is having the same problem.
Title: Re: 32k crash
Post by: MysticalDumpling on February 25, 2014, 06:28:38 PM
Quote
I think Dumpling is having the same problem
Sadly that is true
Quote
Dumpling
Whoah. Never saw my username that way  :dry:
Title: Re: 32k crash
Post by: Shadowgod2 on February 25, 2014, 11:55:16 PM
hmm my computer doesn't have end process tree. this is annoying :dry:

the way it is i get over 300 cycles a sec with graphics turned off so it isn't slow is it?
Title: Re: 32k crash
Post by: Botsareus on March 05, 2014, 11:00:43 AM
As I understand it just freezes for long periods of time. Right? There is no such thing as a 'run time error overload'
Anyway, it should be somewhat faster now. See announcements.

If it is still freezing, look up online how to fully end task an app for your version of windows.
Title: Re: 32k crash
Post by: Shadowgod2 on March 09, 2014, 11:41:40 PM
overflow sorry

still happens
Title: Re: 32k crash
Post by: Botsareus on March 10, 2014, 09:34:55 PM
Kill the proccess.

Run darwinbots again.

It should ask you "Do you want to enter diagnostic mode?"

Click 'Yes'

Keep running until it crashes.

Kill the proccess.

Run darwinbots again.

It should ask you "Do you want to enter diagnostic mode?" or "Please give adminstrator blablabla files"

If it is the second one, please give me the files. If it is not, do steps again.

It is not that hard man, just make sure you have safe mode enabled in global settings.

edit: I am personally getting a strange feeling that Corry is being full of shit.
Title: Re: 32k crash
Post by: Shadowgod2 on March 10, 2014, 11:55:08 PM
uncalled for >:( i am not making this up

i am trying to find a better sets and still be quick about evolving them
Title: Re: 32k crash
Post by: Numsgil on March 11, 2014, 02:53:13 AM
Don't get grumpy at your testers.  They're doing you a favor.  Work with them.
Title: Re: 32k crash
Post by: Botsareus on March 11, 2014, 12:37:44 PM
It is just a little frustrating when I invent a system for a specific reason and people completely do not want to use it...

edit: Alright fine, if Shadowgod2 can not get me a 2K cycle window by Wednesday afternoon I'll just use what I have to work with and run it until it crashes :/



Quote
but with 90 it crashes and it's only between the 32k and 34k autosaves

Shadowgod, can you please give me the lastautosave.sim file that crashes between 32k and 34k autosaves? Your bugsave.sim file is at around 700 cycles only. Thank you.
Title: Re: 32k crash
Post by: Botsareus on March 11, 2014, 04:38:09 PM
Actually I am running it right now, I have two cores, might as well use them.
Title: Re: 32k crash
Post by: Botsareus on March 11, 2014, 04:39:41 PM
Rofl, Shadowgod, you could have told me it will crash in under one minute.
Title: Re: 32k crash
Post by: Botsareus on March 11, 2014, 05:02:22 PM
Yea, that was fully my fault, I have not seen the actually speed of the simulation when I ran it the first time.
I was able to get it to crash pretty quickly from exe, but it seems not to be crashing from vb6 yet.
Title: Re: 32k crash
Post by: Botsareus on March 11, 2014, 05:32:20 PM
There was an error in EricL's dynamic costs, I guess he never anticipated the population to remain constant for more then 32K cycles.
That will also explain why it did not work in safemode  :banghead:


Here is a fix for you:
Title: Re: 32k crash
Post by: Shadowgod2 on March 11, 2014, 11:32:36 PM
thank you.

dynamic cost? that is the last thing i expected

it works :D