-
Notifications
You must be signed in to change notification settings - Fork 90
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
Segfault on player join #368
Comments
I also just tested moving all the plugins except pugsetup.smx to the disabled folder. And the issue is still there. |
Same problem here! What is funny is that i already have one server running this plugin, and when i grab the plugin that is totally functioning and throw into another fresh install of sourcemod, i get this anonnying error. (With same extensions, config cfg files, etc) The working server is running SourceMod 1.10.0.6501, and the faulty one is running SourceMod 1.10.0.6502 (wich i don't think is gonna change a lot to give such an error) This bug is probably some incompatibility with another plugin/extension, but i can't figure out wich one. |
SourceMod 1.10.0.6501 is good but SourceMod 1.10.0.6502 is giving segmentation error. |
It worked, then i close it, re-open and there it goes, the same error again. Can't figure out what is going on. |
It seems like there is nothing to do with Sourcemod version |
Im my experience it seems like it has something to do with the server waking up from hibernation. I don't have any server availabe to test on at the moment, but the error was kind of inconsistent and but I was able to replicate the issue when I was the first player to join. I haven't accually tried turning off hibernation. That could be a possible workaround |
Hmm are you sure this solved the issue? I don't have any CPU limit on my server. |
Yeah, i restarted 4 times, on the 5th time, the error goes again. What makes me angry is that is not consistent, sometimes it works, and suddenly don't Already deleted my comment |
So, this is actually working, but i won't confirm until i re-test like 30 times just to make sure 😂 Running more tests and i will give a report. |
I'm having a little problem that my cfg is setting sv_hibernate_ms to 0, but when server start and i check, the value is default 20. Don't know why my server.cfg is not changing that value. Maybe because it has sm_cvar in front? |
Yup, removing sm_cvar got it to work, and now it's not giving more segmentation fault. I will let you know if does come back, but as for now, thanks for the tip @Soren90 ! |
@Soren90 Did you fixed it? |
Nope. Still same issue. It seems like only workaround that works is turning off hibernation. Haven't tried it myself tho. |
I can confirm that turning off hibernation does work and solves the problem. |
I had the same problem. It will be fixed by changing sm_pugsetup_use_game_warmup 1 to 0 in pugsetup.cfg |
I seem to be getting this with Get5 plugin. It doesn't seem to have the same kind of configuration for the warmup. I think also turning of hibernation is a workaround for this issue - I don't remember seeing the same issue with someone being on the server when it is configured by the addon+plugin. |
I know this thing is old, but still happen and maybe i can help someone in future; try not leave server in LIVE, because it can cause this bug. Basically, if the match started and players leave in mid of match, when someone try join after (server hibernation + pug setup in live), it can cause this issue and crash. Maybe its not the only reason to this bug, but it can help anyway. I know it cannot be our fault, so if you are in this trouble, just make this:
For me it work, i hope i can help someone with this. |
Thanks for reply! Have this worked long term? I the problem might show up again if all players leave the server and joins again after hibernation. But if you dont need that because you restart the server every time, then you should be fine. Maybe a solution would be to set sm plugins unload pugsetup in server.cfg or somewhere else? |
it will not solve, but i will talk to splewis about it, lets see if he fix. |
I don't have any magic knowledge on why the server crashes here, or how to fix it. It's exceptionally hard to debug server crashes since valve removed debug symbols from the server binary; there's not much I can do to help. "Fixing" such a bug is likely just trying random ideas and trial+error until things "work". If someone actually uploads crash dumps from accelerator that might give some hints as to where the crash happens. In general, hibernation can be somewhat buggy when it comes to plugin interactions, so I would recommend it be turned off. |
Here is a fix. It will stop match if its live and only 1 player last in server. He will not play alone in LIVE match, most just disconnect too. So, it will back to warmup and auto setup again. You can enable and disable this by a convar. By default it is disabled ConVar: Better than crash, huh? |
Expected behavior
The server not to segfault on player join
Actual behavior
Log from server (then server restart):
When running in -debug mode, the debug.log is empty
Steps to reproduce
https://mms.alliedmods.net/mmsdrop/1.11/mmsource-1.11.0-git1144-linux.tar.gz
https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6502-linux.tar.gz
https://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git132-linux.tar.gz
https://forums.alliedmods.net/showthread.php?t=169095 (updater.smx)
https://github.com/splewis/csgo-pug-setup/releases/download/2.0.5/pugsetup_2.0.5.zip
sm_pugsetup_autosetup 1 (makes it so users don't have to .setup to begin a pug)
sm_pugsetup_pausing_enabled 0 (disables pausing)
sm_pugsetup_force_defaults 1
Setting sm_pugsetup_autosetup 0 and everything works fine. When the server is up I can also login to the server set sm_pugsetup_autosetup to 1 with rcon without any issues.
Am i missing some kind of dependency in the container?
The text was updated successfully, but these errors were encountered: