shavitush / bhoptimer

A bunnyhop timer plugin for Counter-Strike: Source, Counter-Strike: Global Offensive and Team Fortress 2.
https://timer.shav.it
GNU General Public License v3.0
230 stars 94 forks source link

GeoIP Shavit-Chat Crash #78

Closed Technoblazed closed 8 years ago

Technoblazed commented 8 years ago

Sourcemod Version: Latest 1.8 Stack Trace: https://crash.limetech.org/3pbitisifean

Upon player connect with shavit-chat enabled, the server seems to crash. Other than the stack trace there are no other logs, any ideas?

shavitush commented 8 years ago

i'll check that

shavitush commented 8 years ago

in OnClientPutInServer (shavit-core) could you replace this whole section and try again?

From this:

char[] sIP = new char[32];
GetClientIP(client, sIP, 32);

char[] sCountry = new char[45];
GeoipCountry(sIP, sCountry, 45);

if(strlen(sCountry) == 0)
{
    strcopy(sCountry, 45, "Local Area Network");
}

To this:

char[] sIP = new char[32];
GetClientIP(client, sIP, 32);

char[] sCountry = "Local Area Network";

Also remove the include. Does it still happen?

Technoblazed commented 8 years ago

Works fine with the replacement and removal

shavitush commented 8 years ago

Try now, with this fix.

Technoblazed commented 8 years ago

Server crashes

shavitush commented 8 years ago

this is in no way related to shavit-chat then i think you'll have to apply this workaround and file a bug for the geoip extension until it's solved. it's not related to my plugin, sorry

Technoblazed commented 8 years ago

Just to let you know, I got a response, Sourcemod versions 5919 and a few others have a GeoIP.dat of 0 bytes. So if anyone else experiences the issue, they should get the .dat from a previous version.