-
-
Notifications
You must be signed in to change notification settings - Fork 245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable server unload #1430
Disable server unload #1430
Conversation
Clarifying on what exactly should be tested:
The good candidates for test would be metamod-based mods, bots etc. |
Tested on Counter-Strike 1.6 using the CS16Client, original server library and YaPB bots (with and without metamod): The contents of the error window are no different (except Sys_Crash address) when using bots as a metamod plugin or as a standalone dll. But it solved the issue: #1416 |
Now the issues encountered in Half-Life:
It appeared when I launched the c1a0d map, using the I'm using the Metamod 1.21p38 with Sandbot v0.4.2 plugin. This error does not appear when the metamod is not used. Changelevel works successfully. |
Should debug that under Windows, then. Doesn't crash for me on Linux. |
3bd729b
to
96fee8b
Compare
It also crashes with GoldSrc on Windows. |
@Vladislav4KZ it doesn't crash in Counter-Strike with YaPB. I get an svc_bad error after death but that also happens on master branch. |
But I attached both a screenshot of the Sys_Crash window and the engine.log as proof of the crash. Perhaps some kind of Windows-specific problem (did you test it on Linux, didn't you?) I also said that the crash occurs the second time the server is started. |
Okay, I'll keep that in mind. |
I specifically booted to Windows just to finish this PR. :)
|
I didn’t have an engine crash with YaPB on the master branch, it only happened on the engine build from the disable-server-unload branch. If I have time today, I'll check it again. |
The engine running Counter-Strike with YaPB still crashes, on the second server startup. Using Velaron's CS16Client for Windows, build for August 28, 2023. Using the original server library from Counter-Strike 1.6, latest Steam build. Xash3D FWGS v49/0.20 (win32-i386 build 3111) from disable-server-unload branch, October 8, 2023 3:00 AM (GMT+6) YaPB v4.4.916 MSVC build (from GitHub Actions artifacts, master branch, windows-x86) Metamod v1.21p38 (1.21.0.38) It also crashes even without metamod. Windows 10 Pro 22H2 x64 Crash with metamod Crash without metamod |
Edited the post above, added detailed info. |
I also tested the bot builds with other compilers, all of them also lead to the engine crashing the second time the server is started. The YaPB works fine on GoldSource. |
By the way, on the master branch of engine, when the server with YaPB (which is installed as metamod plugin) is started on second time, SV_Multicast errors appear in the console, and the team selection menu doesn't work. And sometimes it also crashes, giving another error window. |
YaPB works fine only when it's installed as standalone library, on the engine build from master branch. It doesn't crash the second time the server starts. |
… (should make safe COM_ExtractFilePath)
96fee8b
to
fe407fb
Compare
…ure out the issues with MetaMod
cc @mittorn @SNMetamorph @nekonomicon @Vladislav4KZ
Despite this in general might fix a lot of bugs on many platforms, this still needs to be tested against random oddities, especially in mods that were made for Xash3D.
I only had a random issue where entity didn't get correct state after map reload (load any map in HL1, then load Hazard Course, and you'll fall out of the elevator). But calling
SV_DeactivateServer()
in place ofSV_UnloadProgs()
inSV_Shutdown()
seems to be helped, and it makes sense to clean up entities, and etc.