Heap underflow problem
#1

Hey samp community

I have the following problem:

Код:
[14:02:06] [debug] [GM.amx]: Run time error 8: "Heap underflow"
[14:02:06] [debug] [GM.amx]: Heap index (HEA) is 0xB7CDFD8C, heap bottom (HLW) is 0x3D6674
[14:02:06] [debug] [GM.amx]: Call Stack (most recent call first):
[14:02:06] [debug] The server has crashed executing 'GM.amx'
[14:02:06] [debug] [GM.amx]: Call Stack (most recent call first):
This error spams my server_log until anything "happens", like Chat Message, Dialog Response, any Command.
Most things, like gangs, objects etc are loaded into the server (and are created).
I get through the class selection and see vehicles etc, so the basic things are working - but none of the callbacks.
When I compiled my script with option -d3 to make crashdetect plugin show details, it said "Stack corrupted".

I have following plugins loaded:
- Streamer plugin by Incognito
- MySQL Plugin R7
- crashdetect, obviously

No filterscripts are loaded.


There are 2 or 3 topics about this problem, but none of them help me.
I cannot try things like convert float to int (fixed the problem in another thread) because my script is big and with many complex systems.

The crash only appears on debian ("Debian 6.0 - LAMP").
On windows everything works fine.
I copied everything from the debian server, so even the scriptfiles are exactly the same - didn't help.

The problem began when I added 2 functions and a callback, which were very small.
I removed them again and the crash still appeared.


I know roughly what the error means and I tried to smaller many many arrays and did optimizations, but without effort.
Maybe it's just a small mistake which is not cought by the compiler - I read the script like a book to find those.

I hope anyone could help me, even any ideas could help much.
I don't know what to do, I already spent many hours only trying to fix this.

Greetz, NaS

PS: If you need any more info, please ask.
Reply
#2

it can be that.

http://forum.sa-mp.com/showpost.php?...10&postcount=3
Reply
#3

Already tried that.
Even gigantic values don't fix the problem
I read all the other topics about this problem, none of them helped me.

But thanks for the fast reply.
Reply
#4

No, never used it.

// EDIT

Okay, the problem was not the script.
The problem was the MySQL Database :/

Sorry for not testing it earlier, but I never had any problems with it and did not even think of it.

Everything fixed.
Reply
#5

What was the problem with the MySQL Database?
We got some people over here in the german forums with the same problem.
Reply
#6

Update from R7, use R8+, it fixes heap underflow issues.

I don't think it's the Database, it's more or less the pugin. Trust me
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)