Script Crash.
#1

Hello, my script is crashing, there's report.

Код:
[20:01:52] [join] Rafferty_Whitehall has joined the server (2:89.173.69.214)
[20:01:52] [debug] Run time error 3: "Stack/heap collision (insufficient stack size)"
[20:01:52] [debug]  Stack pointer (STK) is 0x116DBB4, heap pointer (HEA) is 0x116DB7C
[20:01:52] [debug] AMX backtrace:
[20:01:52] [debug] #0 00048c28 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #1 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #2 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #3 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #4 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #5 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #6 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #7 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #8 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #9 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #10 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #11 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #12 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #13 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #14 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #15 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #16 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #17 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #18 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #19 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #20 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #21 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #22 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #23 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #24 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #25 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #26 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #27 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #28 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #29 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #30 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #31 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #32 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #33 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #34 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #35 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #36 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #37 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #38 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #39 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #40 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #41 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #42 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #43 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #44 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #45 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #46 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #47 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #48 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #49 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #50 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #51 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #52 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #53 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #54 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #55 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #56 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #57 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #58 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #59 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #60 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #61 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #62 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #63 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #64 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #65 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #66 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #67 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #68 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #69 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #70 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #71 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #72 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #73 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #74 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #75 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #76 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #77 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #78 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #79 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #80 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #81 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #82 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #83 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #84 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #85 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #86 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #87 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #88 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #89 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #90 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #91 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #92 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #93 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #94 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #95 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #96 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #97 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #98 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #99 00048ea4 in ?? (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #100 00048ea4 in public GAC_OnPlayerConnect (2, -1, 17162768) from clrp.amx
[20:01:52] [debug] #101 native CallLocalFunction () from 7777svr
[20:01:52] [debug] #102 00016054 in public SSCANF_OnPlayerConnect (2) from clrp.amx
[20:01:52] [debug] #103 000005d4 in public OnPlayerConnect (2) from clrp.amx
Код:
public OnPlayerConnect(playerid) {

    SetPlayerColor(playerid, COLOR_GRAY);
    
    camId[playerid] = random(6);
	if(camId[playerid] == 0) PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/palomino.mp3");
	else if(camId[playerid] == 1) PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/chapman.mp3");
	else if(camId[playerid] == 2) PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/dillimore.mp3");
	else if(camId[playerid] == 3) PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/carson.mp3");
	else if(camId[playerid] == 4) PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/outlaws.mp3");
	else PlayAudioStreamForPlayer(playerid, "http://rl-rp.ga/downloads/spawn.mp3");
    LoadRemObjFromFile(playerid, "removeobjects.txt");
    RemoveBuildingForPlayer(playerid, 5430, 2148.9531, -1791.8359, 19.1016, 0.25);
    RemoveBuildingForPlayer(playerid, 5531, 2148.9531, -1791.8359, 19.1016, 0.25);
    
    TogglePlayerSpectating(playerid, 1);
	for(new i; i < 100; i++) SendClientMessageEx(playerid, COLOR_WHITE, " ");
	SetTimerEx("ClearChatForPlayer", 50, false, "ii", playerid,100);
	SetTimerEx("ClearChatForPlayer", 150, false, "ii", playerid,100);
	SetTimerEx("ClearChatForPlayer", 300, false, "ii", playerid,100);
	SetTimerEx("ClearChatForPlayer", 1000, false, "ii", playerid,100);

    SetTimerEx("SetPlayerCameraPosLogin", 1000, false, "i", playerid);
    /*SetTimerEx("SetPlayerCameraPosLogin", 2000, false, "i", playerid);
    SetTimerEx("SetPlayerCameraPosLogin", 3000, false, "i", playerid);
    SetTimerEx("SetPlayerCameraPosLogin", 4000, false, "i", playerid);
    SetTimerEx("SetPlayerCameraPosLogin", 5000, false, "i", playerid);*/
	SetTimerEx("OnPlayerConnectEx", 4000, false, "i", playerid);
	return 1;
}
Please help me, it is really urgent.
Reply
#2

Someone please, its urgent, really urgent, please.
Reply
#3

Nobody?
Reply
#4

https://github.com/Zeex/samp-plugin-...ith-debug-info

Do the procedure described in the link and re-compile your scripts. Start the server and try to reproduce it so you can get the logs (more detailed this time).

What the logs look like to me is like a function keeps calling itself. What I noticed is this too:
pawn Код:
[debug] #100 00048ea4 in public GAC_OnPlayerConnect (2, -1, 17162768)
If it meant to be a hook of an include, why does it have wrong number of parameters?
Reply
#5

Quote:

Do the procedure described in the link and re-compile your scripts.

If I try to re-compile my script, pawn compiler stops responding.

Quote:

If it meant to be a hook of an include, why does it have wrong number of parameters?

I absolutely don't know.
Reply
#6

I have only seen once a person reporting a compiler crash after compiling with -d3 so it is an uncommon and rare case which I am also unaware.

Search in script or the includes for GAC_OnPlayerConnect. The issue is that a function keeps calling itself so it keeps creating string(s) over and over again until you run out of local memory. I actually reproduced it myself as I was curious.
Reply
#7

In main script, I'm not using GAC_OnPlayerConnect.

This is the include: http://pastebin.com/WURZyun2
Reply
#8

It only pass 1 parameter so the report wasn't accurate. Please update crashdetect plugin and compile with debug info (refer to my first post) so we can get a detailed log and the name of the function instead of ??
Reply
#9

This is output from compiler:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

Header size: 17916 bytes
Code size: 3842956 bytes
Data size: 18051328 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements:21928584 bytes


Log:
http://pastebin.com/gR6rueLV

(( x - 6 is debug done by me. ))

//SCRIPT WAS COMPILED WITHOUT "GAC INCLUDE"
Reply
#10

bump
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)