Skip to content
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

ZR crashes in competitive gamemode #278

Open
Vauff opened this issue Aug 17, 2024 · 1 comment
Open

ZR crashes in competitive gamemode #278

Vauff opened this issue Aug 17, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Vauff
Copy link
Contributor

Vauff commented Aug 17, 2024

Seems to crash within CPhysicsGameSystem::OnSimulate, the stacktraces don't directly blame our code, so debugging this is challenging. The CS2F stacktrace reference is just our GameFrame hook.

https://crash.limetech.org/tbgk63nfdanz
https://crash.limetech.org/77eyuvs5k56f

Workarounds:

  • Run casual game_mode 0
  • Disable hibernation sv_hibernate_when_empty 0; sv_hibernate_postgame_delay 9999999999999999
@Vauff Vauff added the bug Something isn't working label Aug 17, 2024
@Vauff
Copy link
Contributor Author

Vauff commented Dec 26, 2024

After further investigation, this is happening because our cvar enforcement code doesn't execute in time due to hibernation delaying the one tick timer:

// Necessary to fix bots kicked/joining infinitely when forced to CT https://github.com/Source2ZE/ZombieReborn/issues/64
g_pEngineServer2->ServerCommand("bot_quota_mode fill");
g_pEngineServer2->ServerCommand("mp_autoteambalance 0");

gamemode_competitive.cfg sets bot_quota_mode competitive which triggers the crash in this case. It's also worth noting that this forceteams interaction causing crashes is new info, previously it was only known to cause bots being kicked/joining infinitely.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant