15.12.2013, 12:15
Hi,
i got a very very weird situation with SA-MP 0.3x R2 server.
The server is running good, then people start to say that things stopped working (like some events dont end and people are trapped inside)
Everything starts to mess up and stops working or gets bugged as hell. For example you are playing and you try to send some message but it blocks it and says that you are in jail and cant send messages etc.
Then the log is spammed as hell with AMX backtraces, which you will see later.
All variables get crazy and get some very weird values out of nowhere, global textdraws disappear etc.. example:
Or
In the last example, the minimal value of the variable called 'biznesid' is 0 and maximal is 200, so how the hell it got a value of -1384207844 ? The problem grows huge because one variable gets messed up, some functions take its value to do something and they get messed up also because the value isnt proper.
List of includes:
When this happens there is about 50 to 70/90 players on the server.
Also there was a problem with player names, because the player name was saved when the player connected to an array, but when the bug appeared these player names stored in that array changed to some weird characters (the name variable got messed up, just like all the others) redoing the way the names are taken fixed it. Now everytime i want to do something with player name i use this function:
Example of these weird characters:
And here you can see the log with the backtraces: http://pastebin.com/8R15QZNH
The server doesnt crash though, i need to reset it.
What may it be, how to fix it, do others have this problem also ?
Thanks in advance.
i got a very very weird situation with SA-MP 0.3x R2 server.
The server is running good, then people start to say that things stopped working (like some events dont end and people are trapped inside)
Everything starts to mess up and stops working or gets bugged as hell. For example you are playing and you try to send some message but it blocks it and says that you are in jail and cant send messages etc.
Then the log is spammed as hell with AMX backtraces, which you will see later.
All variables get crazy and get some very weird values out of nowhere, global textdraws disappear etc.. example:
Код:
[11:04:24] [debug] Accessing element at index 16777216 past array upper bound 54
Код:
[11:04:22] [debug] Accessing element at negative index -1384207844 [11:04:22] [debug] AMX backtrace: [11:04:22] [debug] #0 000ca608 in Biznes_Buy (playerid=13, biznesid=-1384207844) at ./current/libs/player/biznesy.inc:190
List of includes:
Код:
#include <a_samp> #undef MAX_PLAYERS #define MAX_PLAYERS 166 #include <sscanf2> #include <mysql> #include <streamer> #include <filemanager> #include <foreach> #if defined AUDIO_USED #include <audio> #endif #include <YSI\y_hooks> #include <YSI\y_va> #include <YSI\y_iterate> #include <YSI\y_timers> #include <YSI\y_commands> #include <progress> #include <dutils>
Also there was a problem with player names, because the player name was saved when the player connected to an array, but when the bug appeared these player names stored in that array changed to some weird characters (the name variable got messed up, just like all the others) redoing the way the names are taken fixed it. Now everytime i want to do something with player name i use this function:
Код:
stock playerNick(playerid) { new namees[2][MAX_PLAYER_NAME+1]; GetPlayerName(playerid, namees[0], MAX_PLAYER_NAME); mysql_real_escape_string(namees[0], namees[1]); return namees[1]; }
And here you can see the log with the backtraces: http://pastebin.com/8R15QZNH
The server doesnt crash though, i need to reset it.
What may it be, how to fix it, do others have this problem also ?
Thanks in advance.