IPB

Welcome Guest ( Log In | Register )

4 Pages V < 1 2 3 4 >  
Reply to this topicStart new topic
> RCBot Crashing, ...or helping something to cause crashes
LordSkitch
post May 13 2004, 12:19 AM
Post #41


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



eventually ill come up with somethin useful! just you wait!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 07:41 PM
Post #42


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



ALRIGHT!! WOO!

Okay... now, I got

Unhandled exception in hlds.exe (HPB_BOT.DLL):0xC0000005: Access Violation



now, VC++ has traced the code to... (i couldnt figure out how to enable the freakin' line numbers)

bot.h


CODE
void UpdateAngles ( void )
{
 CBotSquad *pSquad;
 dataStack<CBotSquad*> tempStack = m_theSquads;

 while ( !tempStack.IsEmpty() )
 {
  pSquad = tempStack.ChooseFromStack();

  ******pSquad->UpdateAngles();*******
 }
}


That's what it has highlighted as the error. Now, theres a tempStack thing down here with a bunch of crap in a heirarchy under it, and I don't know if its useful, or how to save it so I can upload it here.

There's a bunch of crap under it and I don't know whats useful and whats not. So what I'm gonna do is just leave VC++ open until you get back to me about it, and I'll pull out any relevant data you need.


user posted image
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 13 2004, 08:20 PM
Post #43


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



!edited

rock on!

Now I'll just add some error handling for that... soon smile.gif

you can always try it youself, change the changeAngles function to look like this, see if it still crashes.

CODE

void UpdateAngles ( void )
{
?CBotSquad *pSquad;
?dataStack<CBotSquad*> tempStack = m_theSquads;

?pSquad = NULL;

?while ( !tempStack.IsEmpty() )
?{
? try
? {
? ?pSquad = tempStack.ChooseFromStack();
? ?
? ?pSquad->UpdateAngles();
? }

? catch ( ... )
? {
? ?// Arghhhhh

? ?m_theSquads.Remove(pSquad);
? ?tempStack = m_theSquads;
? }
?}
}


Crash recovery and not crash avoidance sad.gif I don't know where to start to avoid the problem as I don't exactly know whats happening, I'd really need to witness it myself tongue.gif I ran rcbot in NS in WON yesterday for a considerable amount of time without crashing before I quit myself.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 08:24 PM
Post #44


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



Is that what you needed? Or can I close VC++'s debugger and restart my server so people stop whining at me that my servers down lol laugh.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 08:32 PM
Post #45


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I got the code changed, and I'm compiling it, but for some reason, at the end of the compile, it says...

Error executing c:\windows\system32\cmd.exe

then one i dont care about, it couldn't copy the DLLs to some folders, so i have to move it myself... a terrible duty to do!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 13 2004, 08:38 PM
Post #46


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



yeah thats casue the path probably doesn't exist on your machine tongue.gif (the path to copy the dll to)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 09:08 PM
Post #47


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



Hehe yeah, thats why I wasn't caring too much about it.

And I decided to rough in the front end I was considering making, and I have no idea how to upload files here, so I just moved it over to my webserver, here it is...



RCBot Administrator

(I don't have Norton installed just yet, so yell at me if it has a virus, even though I'm 99.9% positive that it doesn't! smile.gif )
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 09:08 PM
Post #48


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



That was the 2000th post! woo!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 13 2004, 09:29 PM
Post #49


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



Try this DLL file, I've made a few changes on how to possibly prevent the exception altogether, Its probably happening because you a rerunning a server with people joining and leaving, and bots are keeping track of these even when they leave which can cause problems.

I've also made a few improvements to the squad stuff, so that the bots rejoin the squad if they lose sight of it and see the squad leader again.

this is a win32 metamod debug dll rcbot file

ps: like the front-end, nice ideas tongue.gif


Attached File(s)
Attached File  HPB_bot.zip ( 198.35k ) Number of downloads: 118
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 13 2004, 09:42 PM
Post #50


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I moved an old version to the file server actually, go try again lol the stuff in it is hardcoded at the moment, but itll read the files soon enough
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 13 2004, 11:11 PM
Post #51


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



ideas: tongue.gif For bots "fav team" & "fav mod" etc you could have a list box/combo box (whatever its called) and choose Natural selection which will put 1 in etc...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 14 2004, 02:46 AM
Post #52


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I will, I just came up with the stuff as a roughed-in thing so I can debug it easier at first.. Any information that'll be limited to a certain amount of options will be dropdowns... and I need to post another topic somewhere about features of the bots that totally need to be implemented tongue.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 14 2004, 06:56 AM
Post #53


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



oh god lol.. it crashed again... it was around 9 hours it stayed up, there was some problems with ns_lost causing some crap, so I took that out, i dunno what the crap is wrong with that computer, i really really hate it.

but, i do have to format it, ive got to put in new harddrives and put windows 2003 server on it... I got a lan party next saturday the server has to be up and working for.

i wouldnt doubt all these crashes are due to be being a retard somewhere and doing something wrong... user error accounts for some odd 99% of the bugs out there!
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 14 2004, 05:14 PM
Post #54


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



we at least it lasted longer than 10 mins tongue.gif Might aswell notify me of anymore crashes in the bot DLL file so I can fix them all. As I don't run a server with the bots I probably don't get these crashes.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 14 2004, 11:51 PM
Post #55


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



laugh.gif how do you not run a server with your own magnificient creation!!? lol
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 14 2004, 11:57 PM
Post #56


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



Don't have the bandwidth tongue.gif can only run a server with like 4 human players max tongue.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 15 2004, 12:32 AM
Post #57


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



ive got standard roadrunner cable its like 3mbps down 400kbps up, and i had 8 RCbots and 12 humans on it with relatively little lag, of course the RCbots wont shut up anymore so everyones all "OH GOD SKITCH SHUT THE BOTS UP AHHH!!!" lol
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Sandman[SA]
post May 15 2004, 02:01 AM
Post #58


RCBot Waypointer
*****

Group: Moderator
Posts: 987
Joined: 15-September 03
From: Philadelphia
Member No.: 19



I run a full time bot server but nothing seems to show up in the logs as to "why" it crashed. Only that the log was cut short. I have noticed that with rcbot on, the server is pulling down lot of memory and it just keeps taking more and more the longer the server stays open.

CPU usage seems to be well enough controled on my 2ghz P4 using on average about 45% when the server is full but memory usage sometimes hits to over 25mb per map. Mind you, HLDS only has the default compacity for 32mb. Correct me if im wrong but 25mb of ram is a lot more then a 10 player server should be using.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
LordSkitch
post May 15 2004, 09:08 AM
Post #59


I cuddle with my bots.
*****

Group: Moderator
Posts: 980
Joined: 16-April 04
From: Alvin, Texas
Member No.: 291



I looked at HLDS during a crash, and mine was using an assload of ram, but... we completely turret farmed a map, and had all the TFs electified and whatnot... lol it was pretty funny, but the server crashed dry.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post May 15 2004, 10:48 AM
Post #60


Admin
*****

Group: Admin
Posts: 3,066
Joined: 11-September 03
From: uk
Member No.: 1



memory is cheap, CPU is expensive tongue.gif (Space - time tradeoff smile.gif) (32 mb is noth ing these days anyway tongue.gif) remembr you've got virtual memory the size of your hard-disk too practically. hehe
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

4 Pages V < 1 2 3 4 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 21st June 2025 - 11:53 PM