Closed Pricetx closed 1 hour ago
Did you disable sourcemod automatic gamedata updater or is using gamedata override for hl2dm?
I tested the posted code on my Windows Dedicated Server and it did not crash.
I also confirmed AcceptEntityInput
is working correctly on Linux with another plugin.
Did you disable sourcemod automatic gamedata updater or is using gamedata override for hl2dm?
I tested the posted code on my Windows Dedicated Server and it did not crash.
I also confirmed
AcceptEntityInput
is working correctly on Linux with another plugin.
Hi, Thank you for getting back to me so quickly.
I disabled automatic gamedata updating. I then completely cleared out the gamedata folder and copied across fresh contents from the sourcemod snapshot download. This fixed the issue.
I have since enabled gamedata updating again and restarted the server and all seems fine.
I can only assume there was some data left behind from previous SourceMod builds in the gamedata folder that was conflicting and causing the segfaults. I wasn't aware that was a possibility so didn't test it!
This looks to be user error, so I am resolving.
Help us help you
Environment
Description
Hi,
So, I've been running a basic plugin I wrote 11(!) years ago on my HL2DM server. The premise is that it removes items of a particular type from a map when it first loads.
It was working fine until the 20th Anniversary update. I have updated to the latest dev builds as per the top of this post.
Since this update, whenever the AcceptEntityInput method fires off to kill the relevant items, the HL2DM server segfaults and restarts. I'll include the relevant part of the server console log below:
Below is the code for the plugin that I'm running:
Problematic Code (or Steps to Reproduce)
I added a line before the AcceptEntityInput line to print the id of the item it wanted to kill to the console to make sure I wasn't feeding it garbage IDs to kill. This is the "Found the following item entity id: 303" line you can see in the log file above.
If I comment out the AcceptEntityInput line, it stops segfaulting the server, and I also get the complete list of item entity IDs printed in the server console when it boots:
I'm guessing based on this behaviour coinciding with the 20th anniversary update that it's something to do with SourceMod's HL2:DM compatibility as it worked fine in the prior build (now called the "steam_legacy" beta in Steam)
Logs
I have attached a copy of the dump file that was referenced in the server console log extract above.
Please let me know if you require any additional logs, versions, etc.
crash_20241118173638_14.dmp