Stack/heap size: 16000000 bytes; estimated max. usage: unknown, due to recursion
#1

is that to much, because in my server cars & most mapped buildings dont show up , dont you think its from that?

i add -D3 by the way , is that number to much?
Reply
#2

Try and use an updated version of incognitos streamer
Reply
#3

i get this in the log
PHP код:
[12:12:22] [debugRun time error 4"Array index out of bounds"
[12:12:22] [debug]  Accessing element at index 999 past array upper bound 500
[12:12:22] [debugAMX backtrace:
[
12:12:22] [debug#0 000de464 in ?? (... <3 arguments>) at C:\Users\MdotC\Desktop\New folder (13)\gamemodes\SLRP.pwn:23697
[12:12:22] [debug#1 0000c0ec in public OnPlayerStateChange (playerid=0, newstate=1, oldstate=2) at C:\Users\MdotC\Desktop\New folder (13)\pawno\include\YSI\y_hooks/impl.inc:1096 
Reply
#4

The backtrace tells you that you access an element at index 999 past upper bound 500 at line 23697 in SLRP.pwn

I am just wonderring why it doesn't show the function name if you compiled with -d3 [?? (... <3 arguments>)]
Reply
#5

16000000 bytes stack/heap is about 1000 times more than most servers will ever need. There are just very few scenarios that would need a stack that big. It doesnt cause any problems when its too big afaik, but you waste 16mb ram for absolutely nothing, rather go with the standard sizes, and rely on the shown estimated maximum. When theres no estimation available like in your case, try to estimate the needed stack size for the biggest recursion yourself and double that. Eventually increase the stack if you get errors, but just setting it to such a giant number without real reasons isnt a clever way to go.

The reason for your problems perhaps is the error, as nero_3d already said, not the stack size.
Reply
#6

i got the buildings back however when someone trys to register they crash

and in the log it says this

PHP код:
[13:15:40] [debugRun time error 4"Array index out of bounds"
[13:15:40] [debug]  Accessing element at index 999 past array upper bound 500
[13:15:40] [debugAMX backtrace:
[
13:15:40] [debug#0 000de464 in ?? (... <3 arguments>) at C:\Users\MdotC\Desktop\New folder (13)\gamemodes\PLA.pwn:23697
[13:15:40] [debug#1 0000c0ec in public OnPlayerStateChange (playerid=1, newstate=1, oldstate=8) at C:\Users\MdotC\Desktop\New folder (13)\pawno\include\YSI\y_hooks/impl.inc:1096 
Reply
#7

This is a well known problem with GodFather (GF) scripts and its numerous edits; it was made for version 0.2 of SA-MP and when you try to use it today... Go figure - it's way outdated!
Try making your mode from scratch - that way you know whats going on, how and where. All considered, in the end it's better than trying to edit old scripts that have memory leaks and perhaps OBOE errors.
Reply
#8

so cant it be fixed?
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)