.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   The RealBot 'Source' (http://forums.bots-united.com/forumdisplay.php?f=52)
-   -   crashes in 3050 (http://forums.bots-united.com/showthread.php?t=2085)

davek 25-06-2004 18:25

crashes in 3050
 
game crashed without any sort of error showing up. It did that twice with the previous build I had (one that I got from the forums, not Stefan's compilation).

I looked into the reallog.txt, and found that the the leader bots were telling other bots to go to places that werent nodes:

'[RB]Dragon' ordered '[RB]GrandMa' to go to -1

if i understand the node system at all, that shouldn't be a valid order.

Not sure if that has to do with the crashing, the last entry was to a valid node. hm. actually, just noticed:

'[RB]CPU' ordered '[RB]Dunno' to go to 34
'[RB]Dave' ordered '[RB]Leagle' to go to 32
'[RB]Dragon' ordered '[RB]GrandMa' to go to 124
'[RB]CPU' ordered '[RB]Dunno' to go to 266
'[RB]Dragon' ordered '[RB]GrandMa' to go to -1
'[RB]Dragon' ordered '[RB]GrandMa' to go to 124
'[RB]Dragon' ordered '[RB]GrandMa' to go to 124
'[RB]Dragon' ordered '[RB]GrandMa' to go to -1
'[RB]Dragon' ordered '[RB]GrandMa' to go to 124

those are the last few entries in reallog.txt, perhaps it has something to do with the recursion of the command to GrandMa.

I had run around and noded cs_havana, then added 19 bots (10 per side including me). i was ct, and we had just started running towards the ts. probably 10-15 seconds into the game it crashed.

specs:
CS 1.5
realbot 3050
no other plugins running
windows xp
Athlon 1.3ghz

davek 25-06-2004 18:36

Re: crashes in 3050
 
just played again on cs_havana, but this time I got through one round before it crashed midway through the second round.

reallog.txt again had a few times where leader bots told bots to go to node -1, but there wasnt as much recursion in the ending as last time. but this time 3 bots were told to go to the same node.

as the game was crashing the radio command for 'enemy spotted' was being played. not sure if that helps any, but a few bots had already been killed.

when the first round was being played, i noticed quite a few times where enemy bots would stare at each other for a while before shooting, or one with stare as the other shot at him, ran out of bullets, started to reload, then the first bot would kill the reloading bot.

davek 25-06-2004 18:43

Re: crashes in 3050
 
tried again, but just watched as a spectator. the game crashed pretty quick, probably about 5-10 seconds.

reallog.txt:

'[RB]Target' ordered '[RB]Stuka' to go to 692
'[RB]Blaster' ordered '[RB]New_B' to go to -1
'[RB]Blaster' ordered '[RB]Dumb' to go to -1
'[RB]Blaster' ordered '[RB]Dr00l' to go to -1
'[RB]Blaster' ordered '[RB]New_B' to go to -1
'[RB]Blaster' ordered '[RB]Dumb' to go to -1
'[RB]Blaster' ordered '[RB]Dr00l' to go to -1
'[RB]Blaster' ordered '[RB]New_B' to go to -1
'[RB]Blaster' ordered '[RB]Dumb' to go to -1
'[RB]Blaster' ordered '[RB]Dr00l' to go to -1
'[RB]Kohcacola' ordered '[RB]DavidAn' to go to 124
'[RB]Kohcacola' ordered '[RB]Mike' to go to 124
'[RB]Target' ordered '[RB]Stuka' to go to 858
'[RB]Target' ordered '[RB]Stuka' to go to 279
'[RB]Target' ordered '[RB]Stuka' to go to 277
'[RB]Target' ordered '[RB]Stuka' to go to 50
'[RB]Target' ordered '[RB]Stuka' to go to 53
'[RB]Target' ordered '[RB]Stuka' to go to 56
'[RB]Target' ordered '[RB]Stuka' to go to 283
'[RB]Target' ordered '[RB]Stuka' to go to 779
'[RB]Target' ordered '[RB]Stuka' to go to 861
'[RB]Target' ordered '[RB]Stuka' to go to 285
'[RB]Target' ordered '[RB]Stuka' to go to 390
'[RB]Target' ordered '[RB]Stuka' to go to 285
'[RB]Target' ordered '[RB]Stuka' to go to 903
'[RB]Target' ordered '[RB]Stuka' to go to 65
'[RB]Target' ordered '[RB]Stuka' to go to 65
'[RB]Target' ordered '[RB]Stuka' to go to 284
'[RB]Target' ordered '[RB]Stuka' to go to 703
'[RB]Target' ordered '[RB]Stuka' to go to 285
'[RB]Target' ordered '[RB]Stuka' to go to 286
'[RB]Blaster' ordered '[RB]New_B' to go to 111
'[RB]Blaster' ordered '[RB]Dumb' to go to 111
'[RB]Blaster' ordered '[RB]Dr00l' to go to 111

'[RB]Target' ordered '[RB]Stuka' to go to 681
'[RB]Target' ordered '[RB]Stuka' to go to 681
'[RB]Target' ordered '[RB]Stuka' to go to 906
'[RB]Target' ordered '[RB]Stuka' to go to 68
'[RB]Target' ordered '[RB]Stuka' to go to 71

thats the part after all the bots had been added and the round had begun.

the sending people to node -1 doesnt seem to crash the game as that happened a bunch of times in the beginning, but near the end, a leader bot ordered his 3 bots to go to the same node again.

guess i will stop posting this stuff until i find something new.

stefanhendriks 25-06-2004 18:52

Re: crashes in 3050
 
this was with the latest compiled version on the filebase right? I need to be sure about it.

Either way, this puzzles me. I ran a few maps, a few rounds. And only ONCE i got a crash in CS 1.6, but i could not do anything with it, i could not reproduce it or trace back.

davek 25-06-2004 19:10

Re: crashes in 3050
 
yeah. its the latest compiled version that you had just put up.

i been running more tests, and it doesnt seem to crash if you have only a few bots on.

i played de_dust2 with my normal 19 bots and it crashed pretty quick.

but then i played it again and only added 5 bots and it didnt crash. so i added 4 mroe bots after a few rounds. no crashing so i added 4 more. then about 2-3 rounds into the game while having 13 bots in the game (7v7) it crashed.

looking through reallog.txt again, i noticed many many times where multiple bots were told to go to the same node, and it wasnt crashing then. so maybe that isnt the problem.

this last time that it crashed, it crashed when a bot died from a headshot. it crashed as the blood was still in his face. only noting this because it crashed before when i headshotted a bot and it crashed while the blood was still in his face. the timing on that seems suspicious, altho it could just be a coincidence. altho, i have no idea why a bot dying from a headshot would cause the game to crash.

stefanhendriks 25-06-2004 19:18

Re: crashes in 3050
 
Its weird, i have a dedicated CS 1.5 server running (and i joined it too for a while)... and it does not crash. i switch maps, change player numbers (i have now 14 bots running) and still no problems. Weird!

I will leave it on until it crashes, i hope it crashes soon :D

In the meantime i can probably check for any mis-management on the pointers or other memory related stuff that *could* make the game crash.

When a player dies, i dunno what bots do with that. The only thing i can think of that is 'new' is that the 'realbot server players' command is involved.

Try this:

add bots NOT using this command and see if it crashes. (so type realbot add a few times)

and:

try 'realbot server players ###' (###=amount) , and see if it crashes.

When you add 'normally' , there is no code checking going on with this... so 'bugs' inside that code cannot be executed or cause trouble... vague theory that this will work though.

[BBB]sluggo 25-06-2004 19:27

Re: crashes in 3050
 
Maybe it crashes when a new teamleader is assigned?
I tried it 2v2 and I couldn't make it crash, maybe because there were no problem assigning new teamleaders OR teammembers to a new leader?
When I played 4v4 the game crashed, sometimes after a few rounds and never after more than 5 rounds.
I also noticed that on the first round the bots didn't want to shoot.
cs 1.6, listenserver, de_dust, winXP. build 3050 (from filebase).

davek 25-06-2004 19:28

Re: crashes in 3050
 
i always add the bots with the 'realbot add' command

is there any way i can get better data to help you hunt down the bug? any other debugging output files?

i was also wondering if it could be caused by the bots who have me as a leader getting too far away. it looks like your leader code simply orders the bots under him to go to the node he is at or just left. if thats the case, then ordering bots to go to nodes that are no where near them might cause trouble, unless you already accounted for that and simply told the bots to find a path to that node instead of going to that node directly.

again, not sure why this would be the case only when more bots are added. perhaps it can crash when there are only a few bots running, but the chances of it happening just increase when more bots are added. but it crashes for me so very quickly when i have 19 bots, and i went several rounds with 5 bots.

anyway, i have to go to work now so i cant test any more. probably wont have time to test all weekend actually, but i can check this thread while at work and try to answer any other questions you might have.

stefanhendriks 25-06-2004 19:29

Re: crashes in 3050
 
could be...

atm i am running a 32 player server.. no crashes (and already had several rounds)...

i will comment out some parts of the code and upload a modified version. Just to check this out. And.. while i am at it, i will double-check the code.

dstruct2k 25-06-2004 19:41

Re: crashes in 3050
 
Call me stupid, but what's the command to have it output reallog.txt?

(You might want to update the Wiki page that has the list of RB commands. ;))

stefanhendriks 25-06-2004 19:42

Re: crashes in 3050
 
@davek,

the bots are ordered to create a path to a node close to the leader. A leader can order bots to go to the same goal as the leader wants to, so when a BOT leader orders other BOT's to move, it will ALWAYS be the same goal as the leader has in mind (ie , the leaders will overrides the bots personal preference).

When a human is a leader, the bots of that team will simply move to the human position. The human can control the bots a bit with using "Hold this position" and "need backup"... or even "Enemy spotted".

there is already code that takes care of this path finding, even when there is no node near.

What i find weird, is that i hear people have crashes and i cannot reproduce the bug. It irritates me. Even when i run a server with 31 bots, i can't reproduce it, thats what irritates me more.

Josh_Borke 25-06-2004 19:51

Re: crashes in 3050
 
i think output to the reallog.txt is done through 2 functions in the code, REALBOT_PRINT and log.
you should add
Code:

  realbot debug nodes dumpbmp
to the wiki, it's nice to see all the nodes :)

davek 25-06-2004 20:12

Re: crashes in 3050
 
Quote:

Originally Posted by dstruct2k
Call me stupid, but what's the command to have it output reallog.txt?

(You might want to update the Wiki page that has the list of RB commands. ;))

i didnt use any command (knowingly) to have it output anything. reallog.txt is in the halflife folder.

davek 25-06-2004 20:17

Re: crashes in 3050
 
Quote:

Originally Posted by stefanhendriks
What i find weird, is that i hear people have crashes and i cannot reproduce the bug. It irritates me. Even when i run a server with 31 bots, i can't reproduce it, thats what irritates me more.

sorry to give you something so irritating, and then not be able to test more. i may have some time this evening (USA westcoast time), but i am not sure. but it looks like other people are having the same problem, so i hope they can help you.

stefanhendriks 25-06-2004 21:16

Re: crashes in 3050
 
don't worry, i do not find your problem irritating. I actually find it my problem and the fact that i cant reproduce the error is irritating.

I have now ran a server for 1.5hours straight... NO PROBLEMS. Argh.

[BBB]sluggo 26-06-2004 01:58

Re: crashes in 3050
 
Hi, tested some more...
I saw someone having problem with the chat file, so I removed it but the crash remains :(
But I found a directory with errorlogs in my "counter-strike" dir, don't know if it helps but I get the same msg every time I start a new game ???:(
Maybe my steam isn't correctly installed... or something.
Hope it can help in some way!
---------------------------------------------------------
Error:Failed to load dialog file Resource/UI/ClassMenu.res

Function trace:
CGameUI::Start
CGameUI::Initialize
CBaseUI::Start
CBaseUI::Initialize
Host_Init
CFileSystem_Steam::Mount()
---------------------------------------------------------
Edit:
Think I got IT!!!! :D hope so.... ???:(
To reproduce, set all your bots to
[RADIO]
Reply=0
Create=0

In their personality file.
Then create a game and add some bots (like 10 bots on your team will crash the game quickly), start game and issue "go go go" radio command a couple of times. The game will surely crash.
I'm no coder but it looks like they want to answer the command but the ini-setting won't let them and the code doesn't know what to do?
Another thing, my lag almost dissapeard when i set the bots "reply/create" to 100, maybe anything but "0" will get rid of the lag?!
Hopefully this is it! o_O

davek 26-06-2004 03:20

Re: crashes in 3050
 
1 Attachment(s)
muahahaha! i made the crashing stop!!

i just removed all my personality files. well moved them to a temp folder so the program thought they didnt exist.

i have attached my personality files in a zip if anyone wants to take a look at them as see why they are causing the problems. i think the only thing i edited in them was the aiming offsets. pretty sure some of them got fairly high, so maybe that was the problem.

went 12 rounds on de_aztec with 19 bots and no crashing. going to try other maps now.

[BBB]sluggo 26-06-2004 10:28

Re: crashes in 3050
 
Hmm, i noticed that you had a couple of bots with [RADIO] reply/create set to "0" in the personality file and that's what causing it.
Try setting it to anything but "0"
(look at the post above yours ;) )
But there are other values also being set to "0" can they also cause a problem in the future when more funktions are added? Maybe hearing allready is causing problems?

stefanhendriks 26-06-2004 16:47

Re: crashes in 3050
 
you removed all personality files? thats odd! But if it has something to do with radio commands, it can make some sense. I made some (significant) changes to that part. Going to check this mighty function out.

[BBB]sluggo 26-06-2004 17:34

Re: crashes in 3050
 
Post #16 describes how to replicate the crash.

bzientek 28-06-2004 18:16

Re: crashes in 3050
 
I am having a strange problem also... my server seems to "hang" now. unfortunately it does not do it at specific times, it can run fine for a couple hours then hang, and after a restart hang in 30 mins.... responds to ctrl-c to quit it but cannot type any console commands. no error is on the console, just seems to stop responding. I've removed the rbx/rbn files from my wip#9 install and removed the personality files.

I am running FreeBSD 5.2
HLDS 3.1.1.1 protocol 46 CS 1.5
metamod 1.17
adminmod 2.50.58
hlguard 1.52
statsme 2.8.buzz
realbot 3050

my bot.cfg

pause 2

# only 1 command issued to ensure bots play cs version 1.6
realbot csversion 0
realbot internet 1
# Stefan

# Onno
realbot autoskill 1
realbot skill -1
#realbot server players 6
realbot max 6
realbot roundlimit 2 10


the only thing i see in reallog.txt thats weird to me is this..
cNodeMachine: Added a trouble connection
cNodeMachine: Added a trouble connection


but then again that may be normal and i don't know.

dstruct2k 28-06-2004 21:16

Re: crashes in 3050
 
It's a fault of RealBot, as I get the same problem on Win32 with none of the same mods installed.

"cNodeMachine: Added a trouble connection" just means that a node connection is a bad connection, and it recieved a negative score. It's normal.

stefanhendriks 28-06-2004 21:34

Re: crashes in 3050
 
to be more precise on that message:

a bot notices a 'valid' connection cannot be reached easily. Therefor giving it a bad score.. you will see 3 times this message given to one specific connection, then you'll see that the connection is removed. I believe that if you run maps for 30 mins with bots , and with 'no shooting' you can make bots learn maps pretty well in one day for all maps (meaning->removing all bad connections themselves).

the crash, i think its the one already pointed out by dstruct2k.. with the radio stuff? i still havent had a chance to look at it yet (well not deep enough).

bzientek 28-06-2004 22:04

Re: crashes in 3050
 
ok thanks, so i should be looking in the bot personality files to make sure the [RADIO] elements are anything but 0(zero)?

*edit* I've just checked all my ini files for the bots personalities and unfortunately none of the have a 0(zero) for any of the [RADIO] settings... so if it is radio doing it, its not because there set to 0(zero) at least on my server.

dstruct2k 29-06-2004 09:00

Re: crashes in 3050
 
No, the radio bug is different, it causes crashes or 100% CPU usage... Not lockups like we're experiencing.

bzientek 29-06-2004 20:28

Re: crashes in 3050
 
do you think it has any bearing as to which order the dlls are loaded? I am loading them in the order i had written them in post #21..

*edit* also i have noticed the last two times this has happened the last thing printed to console was a bot being spawned with the bomb on a de map. don't know if that helps at all just trying to be as specific as possible.

stefanhendriks 01-07-2004 19:17

Re: crashes in 3050
 
i have searched into different parts of the code, but no code seems to lock up or cause bad stuff to happen on the Radio part. I bet its on the 'leader' stuff , that is somehow connected to the radio and all other stuff.

However, even the leader functions i wrote seem to be bug-free...

davek 01-07-2004 19:27

Re: crashes in 3050
 
Quote:

Originally Posted by stefanhendriks
i have searched into different parts of the code, but no code seems to lock up or cause bad stuff to happen on the Radio part. I bet its on the 'leader' stuff , that is somehow connected to the radio and all other stuff.

However, even the leader functions i wrote seem to be bug-free...

it didnt start crashing on me until a .dll or two before this latest one. and it didnt do it consistently until this latest one. the one times it was just completely random, and didnt do it often enough for me to figure out why it was doing it.

o, and by "a .dll or two before" i mean .dll files i downloaded, they werent all released by you, some were compiled and posted by others.

stefanhendriks 01-07-2004 20:00

Re: crashes in 3050
 
I'd rather talk about my own released DLL's ;) But its odd though, it should not crash at all. It could indicate that some memory is messing up. Evy pointed out some other bug, perhaps its related.

[BBB]sluggo 01-07-2004 22:42

Re: crashes in 3050
 
Stefan can't you recreate the crash on your machine? Have you tried it as mensioned in #16 (the part after the "edit")
Or can you recreate it but it doesn't give you any more information?

Josh_Borke 02-07-2004 01:05

Re: crashes in 3050
 
following the procedure in post #16 I have gotten this error quite quickly on my dedicated server:
./hlds_run: line 423: 31520 Floating point exception$HL_CMD
./hlds_run: line 423: 31548 Floating point exception$HL_CMD

HTH

--edit--
ipReplyToRadio is not being checked anywhere.

util.cpp:880: int iExtra = (100/pBot->ipCreateRadio);

could be

Code:

int iExtra = 30;
 if (pBot->ipCreateRadio > 0)
  iExtra = 100/(pBot->ipCreateRadio)

ipCreateRadio could be zero, divide by zero...

so far no crashes, only played a couple rounds

also

Code:

bot_client.cpp:1014:          if (iDevide < 1)
should be
Code:

bot_client.cpp:1014:          if (iDevide < 1 || iDevide == 0)
just in case :)

stefanhendriks 02-07-2004 08:44

Re: crashes in 3050
 
very nicely found, any possible devide by 0 should be removed!

the second suggestion, erm when < 1 means == 0, or even lower? i dont get that.

Josh_Borke 02-07-2004 15:22

Re: crashes in 3050
 
er, yea, it was late...


All times are GMT +2. The time now is 01:41.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.