[Dangerous!]streamer will cause mysql-plugin R7 out of heap and then lead the sever down
#1

Load streamer and mysql-plugin R7 together will cause out of heap and then lead the sever down

My sever would goes wrong at random times with the information
Код:
mysql.dll [00c0a112] is releasing memory at 00bc7151 which is out of heap
[15:57:17] [debug] System backtrace:
[15:57:17] [debug] #0 1001fe3c in ?? () from D:\new2\test\plugins\crashdetect.dll
[15:57:17] [debug] #1 10020720 in ?? () from D:\new2\test\plugins\crashdetect.dll
[15:57:17] [debug] #2 10023c97 in ?? () from D:\new2\test\plugins\crashdetect.dll
[15:57:17] [debug] #3 00c4a112 in ProcessTick () from D:\new2\test\plugins\mysql.dll
[15:57:17] [debug] #4 00469da6 in ?? () from D:\new2\test\samp-server.exe
[15:57:17] [debug] #5 ff006aec in ?? ()
And many other guys on the forum have faced this problem too! Like this https://sampforum.blast.hk/showthread.php?tid=360559 https://sampforum.blast.hk/showthread.php?tid=368396
https://sampforum.blast.hk/showthread.php?tid=379511
It take me days to find out that the Streamer plugin causes this!
whenever I load the Streamer , This error comes up!!!!
And if I remove the Streamer, everything gose well!!!

By the way. you need the crashdetect plugin to see the error information, or the sever would just go no response with unknown error!
The Streamer plugin I tested is the newest version 2.6.1,(not the 1000p editon)
Could anyone solve this problem?

If you don't believe this. This is a testing code.
Код:
#include <a_samp>
#include <core>
#include <float>
#include <time>
#include <file>
#include <utils>
#include <a_mysql>
#include <foreach>
#include <streamer>
new GName[50];
new ID;
new DBHandle;
main()
{
	print("Hello!");
}
public OnGameModeInit()
{
	DBHandle = mysql_connect("sqlhost", "sqluser","sqldb","sqlpass");
	SetTimer("MYSQLUpdate",100,1); //I set this timer so quick to let the errors come up quickly.That saves the testing time!
}


forward MYSQLUpdate();
public MYSQLUpdate()
{
	mysql_function_query(DBHandle, "SELECT * FROM `testtable` ORDER BY `id` ", true, "onMYSQLUpdate", "", "");
	return 1;
}
forward onMYSQLUpdate();
public onMYSQLUpdate()
{
	new rows,fields;
	cache_get_data(rows, fields);
	for(new i=0; i < rows ; i++){
	cache_get_field_content(i, "id", GName), ID = strval(GName);
	}
	//printf("Num : %d--%d",rows,ID);
	return 1;
}

//This code is very simple, so "out of heap" dosent's cause immediately crash it just have bug
 reports and the code gose on. But if the sever have one players, it gose no response at once. 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 4 Guest(s)