Unknown server crash?
#1

pawn Код:
SA-MP Server: 0.3e

Exception At Address: 0x004022A6 Module: (samp-server.exe)

Registers:
EAX: 0x004100F3 EBX: 0x004093ED ECX: 0x7FFFFFFF EDX: 0x03A04F24
ESI: 0x03C66F18 EDI: 0x00305EE8 EBP: 0x03A0B330 ESP: 0x0018F410
EFLAGS: 0x00010206

Stack:
+0000: 0x0018F8B4   0x00000000   0x00000000   0x00305EE8
+0010: 0x004093ED   0x004093EC   0x004100F3   0x00409498
+0020: 0x004054CC   0x00006E00   0x004054CC   0x03A04F24
+0030: 0x03C66F18   0x00000000   0x03A00020   0x00261FF4
+0040: 0x0047256E   0x00305EE8   0x0018F8A4   0x000000BD
+0050: 0x41435353   0x4F5F464E   0x6D61476E   0x646F4D65
+0060: 0x696E4965   0x00470074   0x00305EE8   0x00305EE8
+0070: 0x03A04F24   0x00000000   0x00000000   0x00000000
+0080: 0x00000000   0x00000000   0x00000000   0x00000000
+0090: 0x00000000   0x00000000   0x00000000   0x00000000
+00A0: 0x00000000   0x00000000   0x00000000   0x00000000
+00B0: 0x00000000   0x00000007   0x0096DA58   0x00966DC0
+00C0: 0x00000087   0x00000005   0x00000080   0x00000010
+00D0: 0x00932C50   0x0000007C   0x77072100   0x00000000
+00E0: 0x77072100   0x00000000   0x00932C50   0x0018F530
+00F0: 0x76FC5E78   0x77072100   0x0018F608   0x00000000
+0100: 0x0096C850   0x0018F530   0x00000002   0x0018F530
+0110: 0x76FC5F10   0x00932C68   0x0018F608   0x00932C50
+0120: 0x0018F5D4   0x76F9E1B2   0x76FAA5FB   0x77D4B3EE
+0130: 0x0018F8C4   0x00000208   0x0096D308   0x0018F9F4
--------------------------
Loaded Modules:
samp-server.exe A: 0x00400000 - 0x004EE000  (C:\Users\Thomas Tailor\Desktop\testing\samp-server.exe)
ntdll.dll   A: 0x76F70000 - 0x770F0000  (C:\Windows\SysWOW64\ntdll.dll)
kernel32.dll    A: 0x75B00000 - 0x75C10000  (C:\Windows\syswow64\kernel32.dll)
KERNELBASE.dll  A: 0x76110000 - 0x76156000  (C:\Windows\syswow64\KERNELBASE.dll)
SHELL32.dll A: 0x74AF0000 - 0x7573A000  (C:\Windows\syswow64\SHELL32.dll)
msvcrt.dll  A: 0x75750000 - 0x757FC000  (C:\Windows\syswow64\msvcrt.dll)
SHLWAPI.dll A: 0x76280000 - 0x762D7000  (C:\Windows\syswow64\SHLWAPI.dll)
GDI32.dll   A: 0x74A60000 - 0x74AF0000  (C:\Windows\syswow64\GDI32.dll)
USER32.dll  A: 0x747D0000 - 0x748D0000  (C:\Windows\syswow64\USER32.dll)
ADVAPI32.dll    A: 0x76070000 - 0x76110000  (C:\Windows\syswow64\ADVAPI32.dll)
sechost.dll A: 0x74A40000 - 0x74A59000  (C:\Windows\SysWOW64\sechost.dll)
RPCRT4.dll  A: 0x76500000 - 0x765F0000  (C:\Windows\syswow64\RPCRT4.dll)
SspiCli.dll A: 0x74650000 - 0x746B0000  (C:\Windows\syswow64\SspiCli.dll)
CRYPTBASE.dll   A: 0x74640000 - 0x7464C000  (C:\Windows\syswow64\CRYPTBASE.dll)
LPK.dll A: 0x75D10000 - 0x75D1A000  (C:\Windows\syswow64\LPK.dll)
USP10.dll   A: 0x76400000 - 0x7649D000  (C:\Windows\syswow64\USP10.dll)
WSOCK32.dll A: 0x74060000 - 0x74067000  (C:\Windows\system32\WSOCK32.dll)
WS2_32.dll  A: 0x74960000 - 0x74995000  (C:\Windows\syswow64\WS2_32.dll)
NSI.dll A: 0x75740000 - 0x75746000  (C:\Windows\syswow64\NSI.dll)
WINMM.dll   A: 0x70D80000 - 0x70DB2000  (C:\Windows\system32\WINMM.dll)
IMM32.DLL   A: 0x764A0000 - 0x76500000  (C:\Windows\system32\IMM32.DLL)
MSCTF.dll   A: 0x76160000 - 0x7622C000  (C:\Windows\syswow64\MSCTF.dll)
streamer.DLL    A: 0x704C0000 - 0x704FB000  (C:\Users\Thomas Tailor\Desktop\testing\plugins\streamer.DLL)
MSVCP90.dll A: 0x6E670000 - 0x6E6FE000  (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCP90.dll)
MSVCR90.dll A: 0x74400000 - 0x744A3000  (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.6161_none_50934f2ebcb7eb57\MSVCR90.dll)
mysql.DLL   A: 0x10000000 - 0x10013000  (C:\Users\Thomas Tailor\Desktop\testing\plugins\mysql.DLL)
LIBMYSQL.dll    A: 0x02700000 - 0x02841000  (C:\Users\Thomas Tailor\Desktop\testing\LIBMYSQL.dll)
NLAapi.dll  A: 0x74200000 - 0x74210000  (C:\Windows\system32\NLAapi.dll)
napinsp.dll A: 0x6E650000 - 0x6E660000  (C:\Windows\system32\napinsp.dll)
pnrpnsp.dll A: 0x6E630000 - 0x6E642000  (C:\Windows\system32\pnrpnsp.dll)
WLIDNSP.DLL A: 0x741A0000 - 0x741C7000  (C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live\WLIDNSP.DLL)
PSAPI.DLL   A: 0x75920000 - 0x75925000  (C:\Windows\syswow64\PSAPI.DLL)
mswsock.dll A: 0x73FD0000 - 0x7400C000  (C:\Windows\System32\mswsock.dll)
DNSAPI.dll  A: 0x71700000 - 0x71744000  (C:\Windows\system32\DNSAPI.dll)
winrnr.dll  A: 0x6E620000 - 0x6E628000  (C:\Windows\System32\winrnr.dll)
rasadhlp.dll    A: 0x741E0000 - 0x741E6000  (C:\Windows\system32\rasadhlp.dll)
Encrypt.DLL A: 0x725E0000 - 0x725EE000  (C:\Users\Thomas Tailor\Desktop\testing\plugins\Encrypt.DLL)
regex.DLL   A: 0x70420000 - 0x70451000  (C:\Users\Thomas Tailor\Desktop\testing\plugins\regex.DLL)
sscanf.DLL  A: 0x02850000 - 0x0285C000  (C:\Users\Thomas Tailor\Desktop\testing\plugins\sscanf.DLL)
MSVCR100.dll    A: 0x6E9D0000 - 0x6EA8E000  (C:\Windows\system32\MSVCR100.dll)
wshtcpip.dll    A: 0x73F70000 - 0x73F75000  (C:\Windows\System32\wshtcpip.dll)
IPHLPAPI.DLL    A: 0x722A0000 - 0x722BC000  (C:\Windows\system32\IPHLPAPI.DLL)
WINNSI.DLL  A: 0x72290000 - 0x72297000  (C:\Windows\system32\WINNSI.DLL)
Reply
#2

What happened / did you do before this error occurred?
Reply
#3

Hi,

after loading OnGameModeInit (while starting the server) the server will be crash.

Regards, ThomasTailor93
Reply
#4

Show the OnGameModeInit script on here.

Use this format please as it's easier to read:

[ PAWN ]
SCRIPT HERE
[ /PAWN ]

Make sure to remove the spaces.
Reply
#5

Hi,

it is not a problem with OnGameModeInit. I noticed, that there is a (strange) bug with a definition of [MAX_PLAYERS]. This is, what I've done:

pawn Код:
//global definition
new diesdas1[MAX_PLAYERS],diesdas2[MAX_PLAYERS];

Now in a command:

ocmd:test(playerid)
{
diesdas1[playerid] = 1;
diesdas2[playerid] = 1;
return 1;
}

OnPlayerDisconnect:

if(diesdas1[playerid] == 1){diesdas1[playerid] = 0}
if(diesdas2[playerid] == 1){diesdas2[playerid] = 0}
Starting the server: crash! Without "diesdas" definitions the server will start fine. What can be the problem?

Regards, ThomasTailor93
Reply
#6

You should ask the crashdetect plugin.
Reply
#7

Output of crashdetect plugin:

pawn Код:
[20:38:55] [debug] Run time error 6: "Invalid instruction"
[20:38:55] [debug]   Unknown opcode 0x80000000 at address 0x00000020
[20:38:55] [debug] AMX backtrace:
[20:38:55] [debug] #0  
[20:38:55] [debug] #1  native CallLocalFunction () [00472260] from samp-server.exe
[20:38:55] [debug] #2  000016c0 in public Streamer_OnGameModeInit (... <7040 variable arguments>) at C:\Users\Thomas Tailor\Desktop\Pawno\include\sscanf2.inc:84
[20:38:55] [debug] #3  native CallLocalFunction () [00472260] from samp-server.exe
[20:38:55] [debug] #4  00000a14 in public OnGameModeInit (... <1802240 variable arguments>) at C:\Users\Thomas Tailor\Desktop\Pawno\include\streamer.inc:324
[20:38:55] [debug] Run time error 6: "Invalid instruction"
[20:38:55] [debug]   Unknown opcode 0x890000 at address 0x0000000A
[20:38:55] [debug] AMX backtrace:
[20:38:55] [debug] #0  
[20:38:55] [debug] #1  native CallLocalFunction () [00472260] from samp-server.exe
[20:38:55] [debug] #2  00000a14 in public OnGameModeInit (... <1802240 variable arguments>) at C:\Users\Thomas Tailor\Desktop\Pawno\include\streamer.inc:324
[20:38:55] [debug] Run time error 6: "Invalid instruction"
[20:38:55] [debug]   Unknown opcode 0x2700 at address 0x0000006B
[20:38:55] [debug] AMX backtrace:
[20:38:55] [debug] #0
Reply
#8

Run time error 6: "Invalid instruction" is usually caused when there is a missing bracket.
Reply
#9

Mh, but there is no missing bracket? No errors, no warnings?
Reply
#10

It's very easy for you to miss a bracket, check your script thoroughly.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)