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 6 2018, 09:06 PM
Post #2


RCBot Guru
*****

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



I will try those suggestions, thank-you smile.gif . I spent most of my time yesterday trying to get rcbot to load with mm-p39 (solokillers), but no luck (the day before i was getting same results with lossy's builds). MM-p39 can't seem to find the plugins.ini in the default location (or any other location I tried!), so no plugins I try will load with MM-p39!

CODE
L 05/03/2018 - 20:37:54: Log file started (file "logs\2018-03-05.log") (game "svencoop") (version "48/5.0.0.0/7730")
L 05/03/2018 - 20:38:05: [META] WARNING: ini: Unable to open plugins file 'addons/metamod/plugins.ini': No such file or directory
L 05/03/2018 - 20:38:05: [META] WARNING: dll: Problem reloading plugins.ini: addons/metamod/plugins.ini
L 05/03/2018 - 20:38:05: Server shutdown
L 05/03/2018 - 20:38:05: Log file closed

meta config showed the default path was good!!! I'm not using a config.ini, never needed it before...

There must be something that changed with these newer metamod-p builds, dedicated server only sad.gif ? Maybe the plugins.ini needs to be named different, I wasted a lot of time yesterday with trial & error, and making guess's like this. I'm not to keen on repeating that today. I don't have a Standalone (SteamCMD) dedicated server, so the folder structure is different. I've run it 2 ways on my steam client, as listen server, then most of yesterday I launched it as a graphical dedicated server on my steam client (I believe this is called Steam tool dedicated server). Perhaps this is the reason MM-p39 can't find the plugins.ini, the folder structure (C:\Program Files\Steam\steamapps\common\Sven Co-op\svencoop\addons\metamod\plugins.ini)? Plugins load with the MM-p37 dll, replace the dll with MM-p39 and plugins stop loading because it doesn't recognize or find the plugins.ini !!!

Anyways, I seem to be stuck on the MM-p39 problem, so I may have to try the debug suggestions on MM-p37, unless someone can tell me how to set up MM-p39 on listen server/steam tool server? I've been referring to the MM instructions at metamod.org, but it seems to be a build issue?

After I began testing dedicated, I was able to get to a temporary folder I believe is generated by DrWatson, with a minidump named svends.exe.mdmp, done with MM-p37. You would need to look at it with a hex editor, just garbage in notepad. If you think that would be of use, I'll post it later. You are 8 hours ahead of me so you may not get that until tomorrow? I'll want to regenerate it to be sure it's the crash when adding a bot...

As for debug, besides svencoop\logs, are there some other locations I should check for debug logs? I assume metamod will generate a log, but will the rcbot debug build also generate a log? Also, must this be done with a debug build of metamod, if so i'll look for a p37 debug version. Oh, and is the -dev switch needed too?
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: 7th August 2025 - 04:38 PM