I have this problem!
#1

Last time, trying to turn on srw, it turns but sometimes it restarts, and crashes.
i've seen the web console, it repeats this:

Код:
[14:51:43] [debug] Run time error 8: "Heap underflow"
[14:51:43] [debug] Heap pointer (HEA) is 0x553940, heap bottom (HLW) is 0x725F28
[14:51:43] [debug] AMX backtrace:
[14:51:43] [debug] #0 00000008 in public OnGameModeExit () from WCRP.amx
i
after i turn off the server it shows this:
Код:
[14:51:43] [debug] Server crashed due to an unknown error
[14:51:43] [debug] Native backtrace:
[14:51:43] [debug] #0 00155a5b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[14:51:43] [debug] #1 0014e852 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[14:51:43] [debug] #2 0014f35c in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[14:51:43] [debug] #3 0014f86e in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[14:51:43] [debug] #4 0015576d in ?? () from plugins/crashdetect.so
[14:51:43] [debug] #5 0058e410 in ?? ()
[14:51:43] [debug] #6 00977831 in mysql_free_result () from plugins/mysql.so
[14:51:43] [debug] #7 0095f7f6 in _ZN13CMySQLHandler10FreeResultEv () from plugins/mysql.so
[14:51:43] [debug] #8 00961ca2 in _ZN13CMySQLHandlerD1Ev () from plugins/mysql.so
[14:51:43] [debug] #9 0096a39b in Unload () from plugins/mysql.so
[14:51:43] [debug] #10 080cfe1b in ?? () from /home/tcagame/EdonR/488/samp03svr
[14:51:43] [debug] #11 080a8992 in ?? () from /home/tcagame/EdonR/488/samp03svr
[14:51:43] [debug] #12 00242d26 in __libc_start_main () from /lib/libc.so.6
[14:51:43] [debug] #13 0804b4d1 in ?? () from /home/tcagame/EdonR/488/samp03svr
Please someone help me!, Contact on skype: edoni.9
for more informations.
- thank you.
Reply
#2

You are allocating too much memory to your variables. You can use #pragma dynamic or read this topic to understand why and how you're supposed to make your code efficient with regard to memory usage: https://sampforum.blast.hk/showthread.php?tid=55261
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)