PDA

View Full Version : GMX console make server crash


Chocopie
28/03/2017, 03:51 PM
Hi, i got some problem with gmx console, my server crashed while using that function. How to fix that issues? There is log with crashdetect, thank you !

Console input: gmx
[28/03/2017 22:40:07] [npc:part] 1_PizzaMan has left the server (299:0)
[28/03/2017 22:40:07] [debug] Server crashed due to an unknown error
[28/03/2017 22:40:07] [debug] Native backtrace:
[28/03/2017 22:40:07] [debug] #0 004016a3 in ?? () from samp-server.exe
[28/03/2017 22:40:07] [debug] #1 526c3716 in ?? () from plugins\fcnpc.DLL
[28/03/2017 22:40:07] [debug] #2 52877cc2 in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #3 52896cb4 in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #4 52899712 in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #5 5287db57 in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #6 5287ecf4 in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #7 5287f47e in ?? () from plugins\mysql.DLL
[28/03/2017 22:40:07] [debug] #8 00469a66 in ?? () from samp-server.exe
[28/03/2017 22:40:07] [debug] #9 0048d4db in ?? () from samp-server.exe
[28/03/2017 22:40:07] [debug] #10 0049b4a1 in ?? () from samp-server.exe
[28/03/2017 22:40:07] [debug] #11 0049b4b1 in ?? () from samp-server.exe
[28/03/2017 22:40:07] [debug] Registers:
[28/03/2017 22:40:07] [debug] EAX: a08049f7 EBX: 528ae834 ECX: 00000000 EDX: ffffffff
[28/03/2017 22:40:07] [debug] ESI: 0ff42e70 EDI: 0019fc6c EBP: 0049b4a1 ESP: 0019fe98
[28/03/2017 22:40:07] [debug] EIP: 0049b4b1 EFLAGS: 00010a93
[28/03/2017 22:40:07] [debug] Stack:
[28/03/2017 22:40:07] [debug] ESP+00000000: 004ab4a0 0019ff70 004ab0e1 ffffffff
[28/03/2017 22:40:07] [debug] ESP+00000020: 00000094 00000006 00000002 000023f0
[28/03/2017 22:40:07] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+000000c0: 00000000 00000000 c0000094 00000000
[28/03/2017 22:40:07] [debug] ESP+000000e0: 004ba530 00000000 0019ff94 74993744
[28/03/2017 22:40:07] [debug] ESP+00000100: 777fa064 7ffde000 120f4d61 00000000
[28/03/2017 22:40:07] [debug] ESP+00000120: 00000000 00000000 120f4d61 0019ffa0
[28/03/2017 22:40:07] [debug] ESP+00000140: 00000000 0019ffec 777fa02f ffffffff
[28/03/2017 22:40:07] [debug] ESP+00000160: 7ffde000 00000000 78746341 00000020
[28/03/2017 22:40:07] [debug] ESP+00000180: 00000020 00000000 00000014 00000001
[28/03/2017 22:40:07] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+000001c0: 00000044 000002e0 00000264 00000000
[28/03/2017 22:40:07] [debug] ESP+000001e0: 0000034e 00000000 2d59495b 000008e0
[28/03/2017 22:40:07] [debug] ESP+00000200: 32ceeacd 00000c1c 00000042 00000c60
[28/03/2017 22:40:07] [debug] ESP+00000220: 0000005e 00000ffc 0000036e 00000000
[28/03/2017 22:40:07] [debug] ESP+00000240: 0000039e 00000010 00000009 000000ec
[28/03/2017 22:40:07] [debug] ESP+00000260: 00000001 00000002 0000179c 000007a0
[28/03/2017 22:40:07] [debug] ESP+00000280: 00000001 00000004 00002dc8 00000314
[28/03/2017 22:40:07] [debug] ESP+000002a0: 00000002 00000006 00003174 000000cc
[28/03/2017 22:40:07] [debug] ESP+000002c0: 00000001 00000009 00003330 00000028
[28/03/2017 22:40:07] [debug] ESP+000002e0: 00000001 64487353 0000002c 00000001
[28/03/2017 22:40:07] [debug] ESP+00000300: 00000001 000015e8 0000002c 0000005e
[28/03/2017 22:40:07] [debug] ESP+00000320: 00000000 00000000 00000000 00000000
[28/03/2017 22:40:07] [debug] ESP+00000340: 00000038 00000000 003a0043 0057005c
[28/03/2017 22:40:07] [debug] ESP+00000360: 006e0069 00780053 005c0073 00000000
[28/03/2017 22:40:07] [debug] ESP+00000380: 00000264 00000001 f33271ba 000003c8
[28/03/2017 22:40:07] [debug] ESP+000003a0: 2d59495b 00000764 00000032 00000798
[28/03/2017 22:40:07] [debug] ESP+000003c0: 00000042 00000ae4 0000033c 00000004
[28/03/2017 22:40:07] [debug] ESP+000003e0: 0000036e 00000005 b1280544 000011f0
[28/03/2017 22:40:07] [debug] Loaded modules:
[28/03/2017 22:40:07] [debug] 00400000 - 00519000 samp-server.exe
[28/03/2017 22:40:07] [debug] 777a0000 - 77919000 ntdll.dll
[28/03/2017 22:40:07] [debug] 74980000 - 74a70000 KERNEL32.DLL
[28/03/2017 22:40:07] [debug] 768b0000 - 76a26000 KERNELBASE.dll
[28/03/2017 22:40:07] [debug] 74a70000 - 75e2f000 SHELL32.dll
[28/03/2017 22:40:07] [debug] 76a70000 - 76b2e000 msvcrt.dll
[28/03/2017 22:40:07] [debug] 76f30000 - 7740d000 windows.storage.dll
[28/03/2017 22:40:07] [debug] 76080000 - 7623a000 combase.dll
[28/03/2017 22:40:07] [debug] 76240000 - 762ec000 RPCRT4.dll
[28/03/2017 22:40:07] [debug] 748b0000 - 748ce000 SspiCli.dll
[28/03/2017 22:40:07] [debug] 748a0000 - 748aa000 CRYPTBASE.dll
[28/03/2017 22:40:07] [debug] 74840000 - 74899000 bcryptPrimitives.dll
[28/03/2017 22:40:07] [debug] 75e30000 - 75e73000 sechost.dll
[28/03/2017 22:40:07] [debug] 76d40000 - 76dbb000 advapi32.dll
[28/03/2017 22:40:07] [debug] 75e80000 - 75ec4000 shlwapi.dll
[28/03/2017 22:40:07] [debug] 76360000 - 764ad000 GDI32.dll
[28/03/2017 22:40:07] [debug] 77420000 - 77560000 USER32.dll
[28/03/2017 22:40:07] [debug] 768a0000 - 768ac000 kernel.appcore.dll
[28/03/2017 22:40:07] [debug] 776e0000 - 7776d000 shcore.dll
[28/03/2017 22:40:07] [debug] 76ee0000 - 76f24000 powrprof.dll
[28/03/2017 22:40:07] [debug] 77770000 - 7777f000 profapi.dll
[28/03/2017 22:40:07] [debug] 71400000 - 71424000 WINMM.dll
[28/03/2017 22:40:07] [debug] 743c0000 - 743c8000 WSOCK32.dll
[28/03/2017 22:40:07] [debug] 762f0000 - 7634c000 WS2_32.dll
[28/03/2017 22:40:07] [debug] 76350000 - 76357000 NSI.dll
[28/03/2017 22:40:07] [debug] 00320000 - 00343000 WINMMBASE.dll
[28/03/2017 22:40:07] [debug] 76a30000 - 76a66000 cfgmgr32.dll
[28/03/2017 22:40:07] [debug] 713a0000 - 713c1000 DEVOBJ.dll
[28/03/2017 22:40:07] [debug] 76870000 - 7689b000 IMM32.DLL
[28/03/2017 22:40:07] [debug] 76dc0000 - 76ee0000 MSCTF.dll
[28/03/2017 22:40:07] [debug] 52da0000 - 52df0000 crashdetect.DLL
[28/03/2017 22:40:07] [debug] 52920000 - 529df000 MSVCR100.dll
[28/03/2017 22:40:07] [debug] 52d30000 - 52d99000 MSVCP100.dll
[28/03/2017 22:40:07] [debug] 528d0000 - 5291c000 streamer.DLL
[28/03/2017 22:40:07] [debug] 6da20000 - 6da8d000 MSVCP140.dll
[28/03/2017 22:40:07] [debug] 6da00000 - 6da15000 VCRUNTIME140.dll
[28/03/2017 22:40:07] [debug] 6d920000 - 6d9fc000 ucrtbase.dll
[28/03/2017 22:40:07] [debug] 52870000 - 528c5000 mysql.DLL
[28/03/2017 22:40:07] [debug] 59b80000 - 59b9e000 log-core.dll
[28/03/2017 22:40:07] [debug] 52790000 - 5286e000 libmariadb.dll
[28/03/2017 22:40:07] [debug] 6fb30000 - 6fb42000 napinsp.dll
[28/03/2017 22:40:07] [debug] 6fb10000 - 6fb26000 pnrpnsp.dll
[28/03/2017 22:40:07] [debug] 6faf0000 - 6fb03000 NLAapi.dll
[28/03/2017 22:40:07] [debug] 730d0000 - 7311e000 mswsock.dll
[28/03/2017 22:40:07] [debug] 71530000 - 715b4000 DNSAPI.dll
[28/03/2017 22:40:07] [debug] 6fae0000 - 6faeb000 winrnr.dll
[28/03/2017 22:40:07] [debug] 710d0000 - 710d8000 rasadhlp.dll
[28/03/2017 22:40:07] [debug] 10000000 - 1000c000 sscanf.DLL
[28/03/2017 22:40:07] [debug] 00580000 - 0058c000 whirlpool.DLL
[28/03/2017 22:40:07] [debug] 526f0000 - 5278b000 MSVCR80.dll
[28/03/2017 22:40:07] [debug] 526c0000 - 526ef000 fcnpc.DLL
[28/03/2017 22:40:07] [debug] 52050000 - 5210d000 ColAndreas.DLL
[28/03/2017 22:40:07] [debug] 730a0000 - 730d0000 IPHLPAPI.DLL
[28/03/2017 22:40:07] [debug] 72ad0000 - 72ad8000 WINNSI.DLL
[28/03/2017 22:40:07] [debug] 71080000 - 710c6000 fwpuclnt.dll
[28/03/2017 22:40:07] [debug] 747c0000 - 747db000 bcrypt.dll

X337
28/03/2017, 08:57 PM
Make sure you close mysql connection under OnGameModeExit using mysql_close()

Vince
28/03/2017, 09:01 PM
This is not helpful because no one can guess what "004016a3 in ??" is. Compile with debug flags.

Chocopie
30/03/2017, 12:55 PM
Make sure you close mysql connection under OnGameModeExit using mysql_close()

I did it already bro :/

[eLg]elite
30/03/2017, 03:18 PM
Are you trying to use GMX to restart your server only, or are you trying to switch to another gamemode? GMX is for switching gamemodes and therefore if you're just using it to restart your server, this can cause a lot of bugs which won't make sense. Restart your server manually through the host or VIA the console to avoid this, or make your own command which exits the server, but it won't be able to start the server itself. (I don't believe).

Chocopie
31/03/2017, 08:13 AM
elite;3862151']Are you trying to use GMX to restart your server only, or are you trying to switch to another gamemode? GMX is for switching gamemodes and therefore if you're just using it to restart your server, this can cause a lot of bugs which won't make sense. Restart your server manually through the host or VIA the console to avoid this, or make your own command which exits the server, but it won't be able to start the server itself. (I don't believe).

Im just using gmx rcon command on server console for restart server. I had been do it so many time, that work very fine until now. I have to rebuild my gamemode for finding result now :(

NaS
31/03/2017, 08:21 AM
Do you use FCNPC_Destroy in OnGameModeExit?

If so, make a custom GMX function which first kicks (destroys) all FCNPCs and then (1-2 sec later) sends the real GMX command.

Dayrion
31/03/2017, 11:38 AM
Hi, i got some problem with gmx console, my server crashed while using that function. How to fix that issues? There is log with crashdetect, thank you !

This is not helpful because no one can guess what "004016a3 in ??" is. Compile with debug flags.

I think you missed this comment, Chocopie ^