SA-MP Forums Archive
Server restarts at random - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Server restarts at random (/showthread.php?tid=461794)



Server restarts at random - Frapsy - 03.09.2013

Restart the server. Depends it is not clear what, sometimes at night, with zero online is starting. It goes from 20 minutes to 3 hours, and then everything starts to work again. Restarts are accompanied here by such entries in the log:
PHP код:
[15:38:43] [debugSystem backtrace
[
15:38:43] [debug#0 0065e0f3 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so 
[15:38:43] [debug#1 00655b61 in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so 
[15:38:43] [debug#2 006569dc in _ZN11crashdetect18HandleReleaseErrorEiPv () from plugins/crashdetect.so 
[15:38:43] [debug#3 00656b23 in _ZN11crashdetect12DoAmxReleaseEiPv () from plugins/crashdetect.so 
[15:38:43] [debug#4 0065c255 in ?? () from plugins/crashdetect.so 
[15:38:43] [debug#5 00bb622d in amx_Release () from plugins/mysql.so 
[15:38:43] [debug#6 00bb72d9 in ProcessTick () from plugins/mysql.so 
[15:38:43] [debug#7 080c5df2 in ?? () from ./samp03svr 
[15:38:43] [debug#8 080b5bac in ?? () from ./samp03svr 
[15:38:43] [debug#9 080b1453 in ?? () from ./samp03svr 
[15:38:43] [debug#10 003d7ce6 in __libc_start_main () from /lib/libc.so.6 
[15:38:43] [debug#11 0804b521 in ?? () from ./samp03svr 
[15:43:04] [debugBad heap release detected
[
15:43:04] [debug]  mysql.so [00bb622dis releasing memory at 00a74080 which is out of heap 
In what could be the problem?


Re: Server restarts at random - Shadow_ - 03.09.2013

Are you using the most updated version of a_mysql?


Re: Server restarts at random - Konstantinos - 03.09.2013

If you're not using threaded queries, make sure that you FREE the result you've stored.


Re: Server restarts at random - Frapsy - 03.09.2013

Yes. I use a version of the P7 with the new a_mysql


Re: Server restarts at random - Frapsy - 03.09.2013

I'm sorry, but I do not really understand what it means to "threaded queries". Please write a simplified example that I understand what you're saying.


Re: Server restarts at random - Konstantinos - 03.09.2013

I'm now sure that you do not use threaded queries, otherwise you'd know it. This tutorial pretty much explains it, but..

I guess you use an older version with no threaded queries. Do you use mysql_store_result function at all?
If you do, then the problem is what I said above.


Re: Server restarts at random - Frapsy - 03.09.2013

Yes, this function is used when loading certain systems through mysql_query_callback (), but after loading always used mysql_free_result ().

Will my problem replacing mysql_query_callback () on mysql_function_query ()?


Re: Server restarts at random - Frapsy - 03.09.2013

Did all the system boots through mysql_function_query (), but the error occurs again.


Re: Server restarts at random - Frapsy - 04.09.2013

up (5sim)


Re: Server restarts at random - Frapsy - 13.09.2013

The problem persists, need your help