[Urgent] How to fix this crash? -
Vlad_Dredd - 04.05.2014
Good day users sa-mp.com
Recently encountered such a problem:
In the same place I had the server displays a message about the beautiful, here are its contents:
PHP код:
SA-MP 0.3e
Exception At Address: 0x0044A503
Registers:
EAX: 0x00000000 EBX: 0x00000800 ECX: 0x0B3DD158 EDX: 0x0085BB01
ESI: 0x0B3DD158 EDI: 0x0B3DD158 EBP: 0x0022FD94 ESP: 0x0022FCF0
EFLAGS: 0x00010202
Stack:
+0000: 0x0A5B5564 0x0A5E0D48 0x00448B16 0x0A5B5564
+0010: 0x005A2B71 0x005A2B7F 0x00000000 0x0A5B5564
+0020: 0x00000800 0x469C4000 0x02FE7DA9 0x00000000
+0030: 0x0A5E0D48 0x0022FD94 0x0022FD3C 0x00000800
+0040: 0x00004BA2 0x0A5E0D48 0x0086D168 0x0056872C
+0050: 0x00000001 0x97056AC7 0x00000093 0x0053C09A
+0060: 0x0000001A 0x97052DF4 0x00000000 0x776BC280
+0070: 0x02FB0BF6 0x97052DF4 0x02FE7986 0x0000001A
+0080: 0x97052DF4 0x00000000 0x03A62918 0x0022FD6C
+0090: 0x0022F8FC 0x0022FF78 0x02FFBCD4 0x030209F8
+00A0: 0x00000001 0x76A580E0 0x0053E986 0x00000001
+00B0: 0x00000003 0x00000001 0x0053ECC2 0x00000001
+00C0: 0x00619B71 0x0000001A 0x00000001 0x00000001
+00D0: 0x0000000A 0x00748DA0 0x0000001A 0x00000001
+00E0: 0x776BD8E3 0x00000000 0x0022FF88 0x7FFD9000
+00F0: 0x016C0000 0x4F170529 0x016C10F0 0x00000008
+0100: 0x00000100 0x00000008 0x00000102 0x43C80000
+0110: 0x43960000 0x00000000 0x00000000 0x00000320
+0120: 0x00000258 0x00000000 0x00000001 0x001B0AC6
+0130: 0x00000200 0x00000000 0x012C0190 0x04C8AF2B
+0140: 0x00000190 0x0000012C 0x0000002C 0x00400000
+0150: 0x0369FF28 0x776BD8E3 0x00000000 0x0022FF88
+0160: 0x585D4437 0x00400000 0x008246EB 0x776BD8E3
+0170: 0x00000000 0x008246F1 0x00400000 0x00000000
+0180: 0x018E20E6 0x0000000A 0x00000094 0x00000006
+0190: 0x00000001 0x00001DB1 0x00000002 0x76726553
+01A0: 0x20656369 0x6B636150 0x00003120 0x00000000
+01B0: 0x00000000 0x00000000 0x00000000 0x00000000
+01C0: 0x00000000 0x00000000 0x00000000 0x00000000
+01D0: 0x00000000 0x00000000 0x00000000 0x00000000
+01E0: 0x00000000 0x00000000 0x00000000 0x00000000
+01F0: 0x00000000 0x00000000 0x00000000 0x00000000
+0200: 0x00000000 0x00000000 0x00000000 0x00000000
+0210: 0x00000000 0x00000000 0x00824588 0x00000000
+0220: 0x00000000 0x7FFD9000 0xC0000005 0x00000000
+0230: 0x018E20E6 0x00000044 0x018FC120 0x018FA5D8
+0240: 0x018FC130 0x00000000 0x00000000 0x00000000
+0250: 0x00000000 0x00000000 0x00000000 0x00000000
+0260: 0x00000000 0x00000000 0x00000000 0xFFFFFFFF
+0270: 0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000
SCM Op: 0x685, lDbg: 0
Game Version: US 1.0
State Information: Ped Context: 0
Here is the log file server plugin issued CrashDetected:
PHP код:
[04/05/2014 10:21:53] [debug] Run time error 4: "Array index out of bounds"
[04/05/2014 10:21:53] [debug] Accessing element at index 4 past array upper bound 3
[04/05/2014 10:21:53] [debug] AMX backtrace:
[04/05/2014 10:21:53] [debug] #0 000acb68 in public S@@_OnPlayerStateChange (0x00000000, 0x00000002, 0x00000001, 0x00000001) from new.amx
[04/05/2014 10:21:53] [debug] #1 native CallLocalFunction () [00472260] from samp-server-cr.exe
[04/05/2014 10:21:53] [debug] #2 0000a3ac in public OnPlayerStateChange (0x00000000, 0x00000002, 0x00000001) from new.amx
How to fix this problem?
In advance, thank you for that responded very hope for your help.
Re: [Urgent] How to fix this crash? -
superrobot48 - 04.05.2014
show us
OnPlayerStateChange
Re: [Urgent] How to fix this crash? -
Vlad_Dredd - 04.05.2014
Quote:
Originally Posted by superrobot48
show us
OnPlayerStateChange
|
Here you go:
http://pastebin.com/JQQGmuUC
Re: [Urgent] How to fix this crash? -
superrobot48 - 04.05.2014
Show us how u defines these
pawn Код:
OnTaxiAsPassenger
IsABike
avisado
btw any compiling erors?
Re: [Urgent] How to fix this crash? -
Vlad_Dredd - 04.05.2014
I hope that threw you need.
new OnTaxiAsPassenger[MAX_PLAYERS];
stock IsABike(vehicleid)
{
new result;
new model = GetVehicleModel(vehicleid);
switch(model)
{
case 461, 462, 463, 468, 471, 521, 522, 581, 586: result = model;
default: result = 0;
}
return result;
}
new avisado[MAX_PLAYERS];
No errors when compiling
Re: [Urgent] How to fix this crash? -
superrobot48 - 04.05.2014
Look at this post please
https://sampforum.blast.hk/showthread.php?tid=347895
Re: [Urgent] How to fix this crash? -
Konstantinos - 04.05.2014
It's probably in this loop:
If the size of DMVcar array is 4, then change the "5" to "4" else use debug info:
https://github.com/Zeex/samp-plugin-...ith-debug-info
Re: [Urgent] How to fix this crash? -
Vlad_Dredd - 04.05.2014
Now log in now generally does not display any data.
Changed 5 on 4 crash and remained
Re: [Urgent] How to fix this crash? -
Konstantinos - 04.05.2014
Compile with debug info I mentioned to my previous post. It will print the exact line.
Re: [Urgent] How to fix this crash? -
Vlad_Dredd - 04.05.2014
That kind of information issued pawno:
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
Header size: 14332 bytes
Code size: 1215992 bytes
Data size: 2611884 bytes
Stack/heap size: 16384 bytes; estimated max. usage: unknown, due to recursion
Total requirements: 3858592 bytes