r1ch.net forums
* Home Help Search Login Register
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Gladiator Bot Crash + Workaround
Pages: [1]
Print
Author Topic: Gladiator Bot Crash + Workaround  (Read 4528 times)
SquiSHeR
Member

Posts: 5



« on: January 06, 2011, 03:15:13 pm »

Hello,

I was playing around a bit trying to get run good old Gladiator Bot for Quake 2 on r1q2-ded-old. Everything worked fine untill I tried to spawn some bots. Here is part of the consolue output
Code:
====== Quake2 Initialized ======
R1Q2 build 7864, compiled Oct  1 2008.
http://www.r1ch.net/stuff/r1q2/
Linux i386 (./r1q2ded-old)

execing game1.cfg
------- Loading gamei386.so -------
dlopen(): /home/quake2/quake2/./xatrix/gamei386.so: undefined symbol: _isnan
Attempting to load with lazy symbols...ok
Loaded Game DLL, version 3

=====================================
 This game library contains the bot
    library interface developed
           by Mr Elusive.
=====================================

==== InitGame ====
ch initialized
Pinging master server 75.126.36.34:27900
------- Server Initialization -------
Using override file: maps/xq2ctf6.bsp
0 entities inhibited
5 teams with 10 entities
-------------------------------------
Sending heartbeat to 75.126.36.34:27900
SquiSHeR connected
SquiSHeR[192.168.0.197:55990]: protocol 34: "Q2P 0.3 universal Dec 22 2010 MacOSX"
SquiSHeR entered the game
extended delayed ucmd heap
SquiSHeR joined the BLUE team.
loaded 18 bots from ./xatrix/bots.cfg
loading...
Opened log botlib.log
------- BotLib Initialization -------
BotLib v0.96
loaded ./xatrix/pak7.pak\sounds.c
loaded ./xatrix/pak7.pak\weapons.c
loaded ./xatrix/pak7.pak\items.c
loaded ./xatrix/pak7.pak\syn.c
loaded ./xatrix/pak7.pak\rnd.c
loaded ./xatrix/pak7.pak\match.c
loaded ./xatrix/pak7.pak\rchat.c
-------------------------------------
------------ Map Loading ------------
loaded ./xatrix/pak6.pak\maps\q2ctf6.bsp
loaded ./xatrix/q2ctf6.aas
found 141 level items
-------------------------------------
loaded ./xatrix/gladi386.so
Trash connected
loaded trash from ./xatrix/pak7.pak\bots/trash_c.c
loaded ./xatrix/pak7.pak\bots/trash_i.c
loaded ./xatrix/pak7.pak\bots/trash_w.c
loaded trash from ./xatrix/pak7.pak\bots/trash_t.c
calculating reachability...
     0%%     0%%     1%%     1%%     2%%     2%%GAME ERROR: Bad SV_Trace: 10000 calls in a single frame, aborting!
=====================================================
Segmentation Fault
=====================================================
A crash has occured within R1Q2 or the Game DLL (mod)
that you are running.  This is most  likely caused by
using the wrong server binary (eg, r1q2ded instead of
r1q2ded-old) for the mod you are running.  The server
README on the  R1Q2 forums has more information about
which binaries you should be using.

If possible, try re-building R1Q2 and the mod you are
running from source code to ensure it isn't a compile
problem. If the crash still persists, please post the
following  debug info on the R1Q2 forums with details
including the mod name,  version,  Linux distribution
and any other pertinent information.

Stack dump (3 frames):
00: ./r1q2ded-old() [0x8069967]
01: /home/quake2/quake2/./xatrix/gamei386.so(BotLibImport_Trace+0xcd) [0x7c161d]
02: [(nil)]

Version: r1q2ded-old b7864 (Linux i386) Binary Build (Oct  1 2008)
OS Info: Linux Ubuntu 2.6.35-23-generic #41-Ubuntu SMP Wed Nov 24 10:18:49 UTC 2010 i686

Speicherzugriffsfehler

As you can see Gladiator Bot tried to "calculate reachability", which was unfortunately aborted by r1q2 because of the sv_max_traces_per_frame restriction. This made r1q2 crash. After some trying I found out that increasing sv_max_traces_per_frame to a higher value (I tried 500000) fixes the problem. The process now continues with someling like
Code:
calculating reachability...
     0%%     0%%     1%%     1%%     2%%     2%%     2%%     3%%     3%%     4%%     4%%     5%%     5%%     5%%     6%%     6%%     7%%     7%%     8%%     8%%     8%%     9%%     9%%    10%%    10%%    10%%    11%%    11%%    12%%    12%%    13%%    13%%    13%%    14%%    14%%    15%%    15%%    16%%    16%%    16%%    17%%    17%%    17%%    18%%    18%%    19%%    19%%    20%%    20%%    20%%    21%%    21%%    22%%    22%%    22%%    23%%    23%%    24%%    24%%    25%%    25%%    25%%    26%%    26%%    27%%    27%%    27%%    28%%    28%%    29%%    29%%    30%%    30%%    30%%    31%%    31%%    32%%    32%%    32%%    33%%    33%%    34%%    34%%    34%%    35%%    35%%    35%%    36%%    36%%    36%%    37%%    37%%    38%%    38%%    38%%    39%%    39%%    40%%    40%%    40%%    41%%    41%%    42%%    42%%    42%%    43%%    43%%    44%%    44%%    44%%    45%%    45%%    46%%    46%%    46%%    47%%    47%%    48%%    48%%    49%%    49%%    49%%    50%%    50%%    51%%    51%%    52%%    52%%    52%%    53%%    53%%    54%%    54%%    54%%    55%%    55%%    56%%    56%%    56%%    57%%    57%%    58%%    58%%    58%%    59%%    59%%    60%%    60%%    61%%    61%%    61%%    62%%    62%%    63%%    63%%    64%%    64%%    64%%    65%%    65%%    66%%    66%%    66%%    67%%    67%%    68%%    68%%    68%%    69%%    69%%    70%%    70%%    71%%    71%%    71%%    72%%    72%%    73%%    73%%    74%%    74%%    74%%    75%%    75%%    76%%    76%%    76%%    77%%    77%%    78%%    78%%    79%%    79%%    79%%    80%%    80%%    81%%    81%%    82%%    82%%    82%%    83%%    83%%    84%%    84%%    84%%    85%%    85%%    85%%    86%%    86%%    86%%    87%%    87%%    88%%    88%%    88%%    89%%    89%%    90%%    90%%    90%%    91%%    91%%    92%%    92%%    92%%    93%%    93%%    94%%    94%%    94%%    95%%    95%%    96%%    96%%    96%%    97%%    97%%    98%%    98%%    98%%    99%%   100%%
please wait while storing reachability...
calculating clusters...
    31 possible portals
     3 portals created
     5 clusters created
AAS data optimized.
writing ./xatrix/q2ctf6.aas
./xatrix/q2ctf6.aas written succesfully
AAS initialized.

I'm very happy to having successfully solved the mysterious gladiator bot r1q2 crash I was wondering about some some weeks now. I hope this helps someone in the same situation

SquiSHeR
Logged
whirlingdervish
Guest
« Reply #1 on: January 12, 2011, 06:44:37 pm »

I've run into that problem making .aas files for certain custom maps.

To circumvent it while doing those first-run .aas calculations, I temporarily moved my r1q2 to another folder, renamed my quake2.exe as r1q2 and ran a tdm config thru the tourney/gladiator bot frontend without changing my quake 2 executable path.

when it had finished, I uploaded the .ass to my server and I switched my r1q2 back to normal.
Logged
Pages: [1]
Print
r1ch.net  |  r1ch.net stuff  |  R1Q2  |  Topic: Gladiator Bot Crash + Workaround
Jump to:  

Powered by SMF 1.1.19 | SMF © 2013, Simple Machines