Darwinbots Forum

Code center => Bugs and fixes => Topic started by: Botsareus on July 14, 2014, 12:45:51 PM

Title: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 14, 2014, 12:45:51 PM
Ok, so this is a little bug I found running my local internet mode with two instances. At first it was up to 30 seconds delay between each time the seconds timer fired off, which is kinda suckish until you consider that my comp. is rather old, so I let that one go. But then the damn thing completely locked up on me when I returned to check on it in the morning.

So I have been trying to recreate this for the past hour with no results. Next time it happens, I am just going to shove the dam safe mode autosave file directly into vb6. Hope that finds it!
Title: Re: Darwinbots being freezin'Frozen!
Post by: spork22 on July 14, 2014, 01:19:45 PM
I have yet to try Internet Mode...
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 15, 2014, 12:49:46 PM
Still trying to track it down. I got a copy of a profiler that Numsgil recommended configured on win7. The tool is awesome. Learn from the master! But now in alignment to Mephy's law I can not recreate it. I even tried loading an autosave directly in vb, I can not recreate it from there either. I guess it is a rather rear bug.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 15, 2014, 05:45:24 PM
Even if I get a good profile, I still have no idea what numbers I am working with. So I have decided to abandon that and make a fix based on what I thought it was. Crossing fingers now!
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 16, 2014, 06:24:37 AM
Ok, so this is a little bug I found running my local internet mode with two instances.

I've been having the same problem a couple of days running two instances. It's always Instance A that freezes. I've also gotten BSOD a couple of times. Can't seem to reproduce it in Safe Mode.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Peter on July 16, 2014, 11:29:06 AM
Which OS?
In XP any BSOD I got was mainly due to (video card) driver issues.
In win 7/8 only due to hardware issues(loose ram/sata connections).
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 16, 2014, 11:43:18 AM
It's in Win XP. It's extremely rare for me to have BSOD. It's possible my laptop is beginning to fail.

I've been running two sims connected with teleporters the whole day where one of them is running in Safe Mode. No more issues yet.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 16, 2014, 11:57:23 AM
Related:

Every time I go on the "new" google maps I get BSODed.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 16, 2014, 12:00:07 PM
Update:

Correcting the bug by "multiplicationaly deamplifying" (take the square root and then change the multiplier) the cycle limit on mutations, works boss now.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 16, 2014, 01:50:16 PM
For the people who care:

More specifically, by "cycle limit" I did not mean db cycles, I mean the iterations that cause robots to mutate.

I am really feeling that the day of the final revision to db2 is getting close.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 16, 2014, 02:23:31 PM
Update:

Correcting the bug by "multiplicationaly deamplifying" (take the square root and then change the multiplier) the cycle limit on mutations, works boss now.

So you're saying it IS a bug that you've discovered? Still no issues for me yet. When I run Safe Mode it likes to play in harmony for some reason.

Quote
I am really feeling that the day of the final revision to db2 is getting close.

I've been thinking that DB2 is pretty close to be considered finished too. There are only a few things I've been thinking could be adjusted, but they are minor issues so I haven't thought it worth mentioning yet.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 16, 2014, 04:55:18 PM
Quote
So you're saying it IS a bug that you've discovered? Still no issues for me yet. When I run Safe Mode it likes to play in harmony for some reason.

Yes. It is a very rare occurring but a very annoying bug that I finally (think) I tracked down. I discover bugs myself once in a while, but only go public with them if I can not fix one within a day or two.  :)

Quote
There are only a few things I've been thinking could be adjusted, but they are minor issues so I haven't thought it worth mentioning yet.

I hope it is not anything that will effect the results of my experiments, such as change vegy mass, etc. Because I do not really want to restart each one from state zero. That happened once to me before when we moved to v2.45, one of the reasons I wanted control over the project.

Please do not take it like I am a control freak, I am going to (try) to make all research public. Only at what cost and at what benefit. I am still working on that last bit.  :P


Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 16, 2014, 06:42:58 PM
It is still happening  :( On the "+" side, it seems to be more manageable and happen less often. I am cool with that. Lets hope it does not get worse.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 16, 2014, 07:11:14 PM
Quote
Yes. It is a very rare occurring but a very annoying bug that I finally (think) I tracked down.

Good news! I was worried this might be a difficult issue to figure out. The simulations on my laptop are still running fine, one in Safe Mode.

Quote
I hope it is not anything that will effect the results of my experiments...

No, just some minor things like not everything you set is saved when you quit DB and that sort of things. I like to have "Show Vision Grid" and "Display Movement Vectors" disabled, but it doesn't remember that.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 16, 2014, 07:16:09 PM
It is still happening  :( On the "+" side, it seems to be more manageable and happen less often. I am cool with that. Lets hope it does not get worse.

As long as it's caused by DB code I'm sure you can fix it.  :)
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 17, 2014, 04:34:44 PM
Quote
No, just some minor things like not everything you set is saved when you quit DB and that sort of things. I like to have "Show Vision Grid" and "Display Movement Vectors" disabled, but it doesn't remember that.

Oh, cool. That is easy enough.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 17, 2014, 09:50:30 PM
Back to the topic (somewhat):

Quote
I have yet to try Internet Mode...

I call shinanicans...
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 18, 2014, 05:34:13 PM
I can't seem to reproduce the freezing/BSOD in Safe Mode, so whatever it is it must be something that is only active in normal mode. A couple of things that are disabled in Safe Mode are the teleporters and the background field can't be manipulated. Maybe the teleporters are glitchy.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 18, 2014, 05:52:34 PM
Quote
No I think I fixed it. It is not teleporters. It is somewhat related to teleporters though. It is robots mutating like crazy while being teleported which leads to essentially processing overload. Had to set a decent limit on how much a robot is allowed to mutate. That is all.
It should get better with the next revision.
Be aware, it still does freeze on occasion, but that lasts 90% less longer. And overall it happens 90% less of the time.

edit:

edit: I may or may not call it the last revision if everything does or does not go according to plan. (specifically, IM)
Drop this Sunday.


And of course, as soon as I write that and go back to check on it, it is messed up like that again. Back to the drawing instruments.  :sleepin:
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 18, 2014, 08:00:13 PM
a small log on this thing:

1.) Starts freezing.
2.) I get pissed and talk about some deep stuff on offtopic and than delete it.
3.) Suddenly not only it starts freezing but also BSOD across different platforms. Failure of video card driver. related to anything I have done? do not think so.
4.) The original reason for freezing is cured.
5.) Still freezing.
6.) Now only freezing when I do not have both instances named the same exe name, and c++ debugging symbols compiled.
7.) No way to debug because a.) Does not freeze in safemode b.) Does not freeze in vb6 c.) Does not freeze when I am trying to profile it externally.

Just keeping people up to date on the project. Thats all. Although, comments are appreciated.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 18, 2014, 08:14:17 PM
Take a look at this, it still may be only just mutations. I'll have to adjust formula some more and see if that helps. Looks like drop Sunday after all.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 19, 2014, 03:13:45 PM
At any rate, other than the hacking, eco system enabled internet mode evo should work now.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Numsgil on July 20, 2014, 03:09:36 PM
Related:

Every time I go on the "new" google maps I get BSODed.

Late to the party, and wildly off topic, but 99% sure this is your video card overheating.  The other option is that it's your CPU overheating (but that usually skips the BSOD and just turns your machine off).  If it's a desktop, you might crack open the case and remove all the dust bunnies.  Also check to make sure that all the fans still work.  If it's an NVidia or AMD card there are monitoring apps you can install that will tell you the current GPU temperature.  If it gets north of like 90 Celsius, that's probably bad (but different cards have different heating limits). 

I use windows 7 gadgets to monitor that sort of thing: GPU meter (http://addgadgets.com/gpu_meter/) and cpu meter (http://addgadgets.com/all_cpu_meter/).
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 20, 2014, 03:16:40 PM
Urica!, I was multiplying by * 948, I was supposed to multiply by 31. I think I nailed it. Don't have enough energy to reconfigure now. I really thought I was hacked there.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 20, 2014, 03:25:22 PM
Thank you for the idea Numsgil, I am pretty sure it is the video card, however, the gadget does not seem to return anything it is all null.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Numsgil on July 21, 2014, 02:07:09 AM
Not all graphics cards support temperature readback, unfortunately.  Especially if you have something like an Intel integrated card.
Title: Re: Darwinbots being freezin'Frozen!
Post by: Botsareus on July 21, 2014, 10:03:55 PM
I do. I was buying a laptop looking for a rig to DJ with mostly.  :)
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 26, 2014, 08:03:16 AM
Anyone else having these BSOD's? What's your room temperature? It's been almost 30 degrees celsius indoors and outdoors here so it might very well be related to that.  :burnup:
Title: Re: Darwinbots being freezin'Frozen!
Post by: Peter on July 26, 2014, 09:34:37 AM
Nope, no BSOD's here. Which code does the BSOD give. If you google at it, you could get an answer.
 
Something that can cause overheats, is dust. So if you haven't cleaned your pc for several years, dust+high room temperature may be the issue. Best to use some temperature monitoring tool to check the temperature. I personally use speedfan, but the UI of what numsgil showed looked better.

In my case speedfan give the temperature for one HD and the cpu cores, doesn't seem smart enough to know what other tempsensors measure, so just calls them temp(1/2/3).
Title: Re: Darwinbots being freezin'Frozen!
Post by: Testlund on July 26, 2014, 11:34:51 AM
Quote
Which code does the BSOD give.

I don't remember but it didn't look like it was related to DB. I will check the next time it happens.

Quote
So if you haven't cleaned your pc for several years...

It's my laptop which I've never cleaned. I don't know of any safe way to open it. I'll try one of these utilities and see what it shows.

My desktop seems to handle the warm weather fine, despite the video card doesn't have a fan.