IS4Code / YSF

YSF Server Functions
Other
98 stars 34 forks source link

SetVehicleToRespawn - crash server #40

Closed kenjutsu-sx closed 7 years ago

kenjutsu-sx commented 7 years ago

My server crash after calling the function SetVehicleToRespawn. I created a new server and connected only YSF.so, still crash. Crash ONLY on Linux.

Sorry for my bad English (I am from Russia).

Hosting: myarena.ru Plugins: crashdetect.so YSF.so mysql.so audio.so streamer.so pawncmd.so sscanf.so Log (with crashdetect):

[20:34:35] [debug] Server crashed while executing gm.amx [20:34:35] [debug] AMX backtrace: [20:34:35] [debug] #0 native SetVehicleToRespawn () from samp03svr [20:34:35] [debug] #1 0000bbac in SetVehicleToRespawnEx (vehid=89, number_plate[]=@00c91dc0 "VECTOR", Float:health=1000.00000) at d:\gta_servers\samp\vector_dm\0.3.7-R2\project_windows\pawno\include\svr_funcs.inc:482 [20:34:35] [debug] #2 00085434 in public OnDialogResponse (playerid=0, dialogid=500, response=1, listitem=13, inputtext[]=@00caae4c "") at d:\gta_servers\samp\vector_dm\0.3.7-R2\project_windows\gamemodes\gm.pwn:8467 [20:34:35] [debug] Native backtrace: [20:34:35] [debug] #0 f73d39f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so [20:34:35] [debug] #1 f73cca62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [20:34:35] [debug] #2 f73cd764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [20:34:35] [debug] #3 f73cf6b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [20:34:35] [debug] #4 f73d331d in ?? () from plugins/crashdetect.so [20:34:35] [debug] #5 ffffe410 in ?? () [20:34:35] [debug] #6 0814b4c2 in ?? () from ./samp03svr [20:34:35] [debug] #7 080d6a6e in ?? () from ./samp03svr [20:34:35] [debug] #8 080950e4 in ?? () from ./samp03svr [20:34:35] [debug] #9 f73ce4d3 in ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so [20:34:35] [debug] #10 00caae4c in ?? () from xlHvl{{}{~m

ghost commented 7 years ago

YSF R17?

kenjutsu-sx commented 7 years ago

Yes. R17 and R16. R15 and below not tested.

I tested this YSF: https://github.com/IllidanS4/YSF/releases. Same problem.

kenjutsu-sx commented 7 years ago

How to fix this? Or should we expect a new version of YSF?

kenjutsu-sx commented 7 years ago

It's not SetVehicleToRespawn function, that spawn cars. I created a new server and added one car (respawn - 25 seconds after the destruction): CreateVehicle(411, 1089.6847, -1414.0166, 13.4500, 0.0000, -1, -1, 25, 1);

Server crashed after 25 seconds. If disable YSF plugin, not crashed.

P.S. Google Translate + my English XD

ghost commented 7 years ago

What is your sever version?

kenjutsu-sx commented 7 years ago

0.3.7-R2. Crash only on Linux.

ghost commented 7 years ago

Going to check this.

ghost commented 7 years ago

This is the latest linux build from Git, please test this bug with this build: http://mfrserver.net/YSF/YSF.so

If crash still happens, then I'm going to check it myself.

kenjutsu-sx commented 7 years ago

Again crash with spawn cars. Another added crash dialog (see log).

Log:

Sat Dec 10 20:50:02 GMT-2 2016

SA-MP Dedicated Server

v0.3.7-R2, (C)2005-2015 SA-MP Team

[20:50:02] [20:50:02] Server Plugins [20:50:02] -------------- [20:50:02] Loading plugin: crashdetect.so [20:50:02] CrashDetect v4.16 is OK. [20:50:02] Loaded. [20:50:02] Loading plugin: YSF.so [20:50:02] logprintf = 0x080A91D0

[20:50:02] addr: 80c7430 [20:50:08]

[20:50:08] ===============================

[20:50:08] YSF - kurta999's version R18 loaded

[20:50:08] (c) 2008 Alex "Y_Less" Cole - (c) 2010 - 2016 kurta999

[20:50:08] Server version: 0.3.7 R2-1

[20:50:08] Operating System: Linux

[20:50:08] Built on: Dec 10 2016 at 15:49:54

[20:50:08] ===============================

[20:50:08] Loaded. [20:50:08] Loading plugin: mysql.so [20:50:08] >> plugin.mysql: R41 successfully loaded. [20:50:08] Loaded. [20:50:08] Loading plugin: audio.so [20:50:08]

Audio Plugin v0.5 R2 by Incognito loaded

[20:50:08] Loaded. [20:50:08] Loading plugin: streamer.so [20:50:08]

Streamer Plugin v2.7.8 by Incognito loaded

[20:50:08] Loaded. [20:50:08] Loading plugin: pawncmd.so [20:50:08] Pawn.CMD plugin v3.1.2 by urShadow loaded [20:50:08] Loaded. [20:50:08] Loading plugin: sscanf.so [20:50:08]

[20:50:08] ===============================

[20:50:08] sscanf plugin loaded.

[20:50:08] Version: 2.8.1

[20:50:08] (c) 2012 Alex "Y_Less" Cole

[20:50:08] ===============================

[20:50:08] Loaded. [20:50:08] Loaded 7 plugins.

[20:50:08] [20:50:08] Ban list [20:50:08] -------- [20:50:08] Loaded: samp.ban [20:50:08] [20:50:08] [20:50:08] Filterscripts [20:50:08] --------------- [20:50:08] Loading filterscript 'fs.amx'... [20:50:08] Loaded 1 filterscripts.

[20:50:08] Audio Plugin: Started TCP server on port 7876 [20:50:08] Audio_SetPack: Audio pack set to "default_pack" (transferable and automated)

[20:50:46] YSF: Might dialog hack has been detected for player ›Дивергент‹(0) - which should be: 0, dialogid: 37 [20:51:01] YSF: Might dialog hack has been detected for player ›Дивергент‹(0) - which should be: 12, dialogid: 500

Started server on 46.174.50.46:7876, with maxplayers: 20 lanmode is OFF.

[20:51:06] [debug] Server crashed while executing gm.amx [20:51:06] [debug] AMX backtrace: [20:51:06] [debug] #0 native SetVehicleToRespawn () from samp03svr [20:51:06] [debug] #1 0000bc04 in SetVehicleToRespawnEx (vehid=96, number_plate[]=@00e02514 "VECTOR", Float:health=1000.00000) at d:\gta_servers\samp\vector_dm\0.3.7-R2\project_windows\pawno\include\svr_funcs.inc:485 [20:51:06] [debug] #2 0004354c in public OnPlayerKeyStateChange (playerid=0, newkeys=131072, oldkeys=0) at d:\gta_servers\samp\vector_dm\0.3.7-R2\project_windows\gamemodes\gm.pwn:3072 [20:51:06] [debug] Native backtrace: [20:51:06] [debug] #0 f74809f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so [20:51:06] [debug] #1 f7479a62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [20:51:06] [debug] #2 f747a764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [20:51:06] [debug] #3 f747c6b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [20:51:06] [debug] #4 f748031d in ?? () from plugins/crashdetect.so [20:51:06] [debug] #5 ffffe410 in ?? () [20:51:06] [debug] #6 0814b4c4 in ?? () from ./samp03svr [20:51:06] [debug] #7 080d6a6e in ?? () from ./samp03svr [20:51:06] [debug] #8 080950e4 in ?? () from ./samp03svr [20:51:06] [debug] #9 f747b4d3 in ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so [20:51:06] [debug] #10 0000003e in ?? () from  HwчHFwчl1l1m3l14l5”Сwч

It is hosting the server is automatically restarted...

And crash ShowPlayerDialog (hook i think):

[21:05:10] [debug] Server crashed while executing gm.amx [21:05:10] [debug] AMX backtrace: [21:05:10] [debug] #0 native ShowPlayerDialog () from YSF.so [21:05:10] [debug] #1 0004a444 in public OnDialogResponse (playerid=0, dialogid=0, response=1, listitem=3, inputtext[]=@00e81130 "") at d:\gta_servers\samp\vector_dm\0.3.7-R2\project_windows\gamemodes\gm.pwn:3779 [21:05:10] [debug] Native backtrace: [21:05:10] [debug] #0 f74679f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so [21:05:10] [debug] #1 f7460a62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [21:05:10] [debug] #2 f7461764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [21:05:10] [debug] #3 f74636b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [21:05:10] [debug] #4 f746731d in ?? () from plugins/crashdetect.so [21:05:10] [debug] #5 ffffe410 in ?? () [21:05:10] [debug] #6 f73cee86 in ?? () from plugins/YSF.so [21:05:10] [debug] #7 080950e4 in ?? () from ./samp03svr [21:05:10] [debug] #8 f74624d3 in ZN11CrashDetect13DoAmxCallbackEiPiS0 () from plugins/crashdetect.so [21:05:10] [debug] #9 00e81130 in ?? () from uHueegehiAv

ghost commented 7 years ago

Thank you. Could you show me what is your dialog code in pawn? I would like to see it. And about vehicle respawn crahs, im going to check it myself soon.

ghost commented 7 years ago

And try to load ysf as latest plugin. Let mensee the result!

kenjutsu-sx commented 7 years ago

OnDialogResponse.txt

I put the plugins in the following order:

plugins crashdetect.so mysql.so audio.so streamer.so pawncmd.so sscanf.so YSF.so.

The same bugs

ghost commented 7 years ago

http://mfrserver.net/YSF/YSF.so

This version is the latest, for me it now works without any problem both on windows & linux. Please test it, thanks.

kenjutsu-sx commented 7 years ago

Сrash dialogs fixed! I removed SAMP 0.3.7 R2 and installed SAMP 0.3.7 R2-1 and corrected crash with cars (LOL)!

And yet, it would be very cool if you updated the plugin: http://forum.sa-mp.com/showthread.php?t=580937.

Thanks for all.)

kenjutsu-sx commented 7 years ago

Oh no. With YSF R18 on my hosting memory is loaded to 85%. YSF R17 - to 12%. Please fix this before the release of YSF R18. I'm still going to use YSF R17.

ghost commented 7 years ago

It will be fixed. Thanks for testing.

ghost commented 7 years ago

Fixed.

Naji221 commented 1 month ago

Help me My plugins : crashdetect.so discord-connector.so whirlpool.so sampvoice.so pawncmd.so SKY.so sscanf.so streamer.so core.so mysql_static.so nativechecker.so

How to fix this

IS4Code commented 1 month ago

https://github.com/oscar-broman/SKY