IPB

Welcome Guest ( Log In | Register )

> Common Crash and Waypoint Flaw
RoboCop
post Feb 23 2018, 09:45 PM
Post #1


RCBot Fan
****

Group: Admin
Posts: 192
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



Well just to avoid confusion I've compiled two versions of RCBot1: first is the main version that supports DMC, HLDM, TFC, RC etc, while the second version is only supported for Sven Co-op v5.

As some of you know already that the src code I've salvaged that was built for Sven 4.5 many years ago, and I've managed to add the important new SC 5 weapon entities and all of that - despite that they cannot shoot nor attack.

I've been making about a dozen waypoints for DMC and I've noticed some crashes linked to the Segmentation Fault from 'WaypointFindPath(path**, int*, int, int)'. This crash also appears to occur for the RCBot Sven side as well. I don't know if my waypoints needs compatibility fixes as well for this latest version of the RCBot build, but here is the crash GDB backtraces I've got:-

DMC RCBot Crash:-

CODE
Program received signal SIGSEGV, Segmentation fault.
0xf38fbf90 in WaypointFindPath(path**, int*, int, int) ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
(gdb) bt
#0  0xf38fbf90 in WaypointFindPath(path**, int*, int, int) ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
#1  0xf38d26fb in BotNavigate_UpdateWaypoint(CBot*) ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
#2  0xf3892386 in CBot::Think() ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
#3  0xf38e98b3 in CBotGlobals::StartFrame() ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
#4  0xf38dec2f in StartFrame() ()
   from /home/desktop/steamcmd/hlds/rcbot/dlls/rcbot_mm.so
#5  0xf3d83285 in api_caller_void_args_void(void const*, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#6  0xf3d8278f in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#7  0xf3d85dae in mm_StartFrame() ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#8  0xf77f9c88 in SV_Physics () at ../engine/sv_phys.c:1985
#9  0xf77f1b86 in SV_Frame () at ../engine/sv_main.c:9236
#10 0xf77b9ec2 in _Host_Frame (time=0.00706900191) at ../engine/host.c:1404
#11 0xf77ba282 in Host_Frame (time=0.00706900191, iState=1,
    stateInfo=0xffffcd6c) at ../engine/host.c:1522
#12 0xf77de93c in CEngine::Frame (this=0xf78756a0 <g_Engine>)
---Type <return> to continue, or q <return> to quit---
    at ../engine/sys_engine.cpp:245
#13 0xf77dbca3 in RunFrame (this=<optimized out>)
    at ../engine/sys_dll2.cpp:1235
#14 CDedicatedServerAPI::RunFrame (
    this=0xf7870d00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#15 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#16 0x08049472 in main (argc=24, argv=0xffffcfa4)
    at ../dedicated/sys_ded.cpp:1146
(gdb)


Sven Co-op RCBot Crash:-

CODE
Program received signal SIGSEGV, Segmentation fault.
0xe2fc2920 in WaypointFindPath(path**, int*, int, int) ()
   from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
(gdb) bt
#0  0xe2fc2920 in WaypointFindPath(path**, int*, int, int) ()
   from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
#1  0xe2f9939b in BotNavigate_UpdateWaypoint(CBot*) ()
   from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
#2  0xe2f591e6 in CBot::Think() () from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
#3  0xe2fb0243 in CBotGlobals::StartFrame() ()
   from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
#4  0xe2fa56ef in StartFrame() () from /home/desktop/steamcmd/sven/rcbot/dlls/rcbot_mm.so
#5  0xe3fadc18 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) () from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
#6  0xe3fadfe2 in mm_StartFrame() [clone .lto_priv.63] ()
   from /home/desktop/steamcmd/sven/./svencoop/addons/metamod/metamod.so
#7  0xf6936cd8 in SV_Physics () from /home/desktop/steamcmd/sven/engine_i686.so
#8  0xf692e746 in SV_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
#9  0xf68fa783 in _Host_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
#10 0xf68fa9b8 in Host_Frame () from /home/desktop/steamcmd/sven/engine_i686.so
#11 0xf691b524 in CEngine::Frame() () from /home/desktop/steamcmd/sven/engine_i686.so
#12 0xf691a0b5 in CDedicatedServerAPI::RunFrame() ()
   from /home/desktop/steamcmd/sven/engine_i686.so
#13 0x08049b92 in RunServer() ()
#14 0x0804936c in main ()
(gdb)
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
 
Reply to this topicStart new topic
Replies
madmax2
post Mar 4 2018, 03:01 AM
Post #2


RCBot Guru
*****

Group: Waypointers
Posts: 957
Joined: 2-March 12
From: USA, WA state
Member No.: 2,162



A bit more specific, it's an Athlon64 3200+ with 32 bit WinXP SP3 Home Edition

I guess I wasn't clear with my question? I wasn't asking for a 64bit version, 32bit is good. When i tried your (windows) dll's many months ago, they were crashing on my client/listenserver (Athlon64). Because of something I had read back then I thought the builds might be incompatible with the Athlon64, causing the crash?

From what I've read today, it seems i686 code should be compatible with the A64 CPU, i686 is 32bit. Unless it has something to do with the compiler settings you used, I can't see the A64 CPU causing the crash. Do you agree?

It may be crashing for some other reason, such as metamod i'm using? Have the builds been checked on a listenserver (I'm refering to the windows builds only in this conversation, forget Linux for now).

So what I tried today was a hpb_bot.dll I downloaded a few days ago from github, which has since then been removed? :
https://github.com/APGRoboCop/rcbot1

I checked it with mm-p27 mm-p37 (solokillers 1-21-16) and it crashed Svencoop shortly after entering the map crystal, before adding bots. I was able to open the console which pauses the game & delays the crash until shortly after closing the console. Rcbot did attach and even can load a waypoint, write or read a wpt visibility file (Although it is the older pre-RCbot4.8 rcv files). I probably should use a newer MM, and will try that soon, but i doubt it caused this hard crash?

I also tried the MM build from here, same crash:
https://apg-clan.org/vbdownloads.php?do=dow...downloadid=1150

That package hasn't changed and is the same one I tried last year.

I didn't try the native mode rcbot.dll as I had tested that last year with same results.

[Edit]
I'll wait for your debug build. Thanks for your work.... smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Posts in this topic


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: 8th August 2025 - 12:58 AM