Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SetVehicleToRespawn - crash server #40

Closed
kenjutsu-sx opened this issue Dec 5, 2016 · 19 comments
Closed

SetVehicleToRespawn - crash server #40

kenjutsu-sx opened this issue Dec 5, 2016 · 19 comments

Comments

@kenjutsu-sx
Copy link

kenjutsu-sx commented Dec 5, 2016

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
Copy link

ghost commented Dec 5, 2016

YSF R17?

@kenjutsu-sx
Copy link
Author

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

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

@kenjutsu-sx
Copy link
Author

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

@kenjutsu-sx
Copy link
Author

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
Copy link

ghost commented Dec 7, 2016

What is your sever version?

@kenjutsu-sx
Copy link
Author

0.3.7-R2. Crash only on Linux.

@ghost
Copy link

ghost commented Dec 8, 2016

Going to check this.

@ghost
Copy link

ghost commented Dec 10, 2016

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
Copy link
Author

kenjutsu-sx commented Dec 10, 2016

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чl1��l1��m3��l1���4��l5��”С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 uHue��e��g��e���h��i��Av�

@ghost
Copy link

ghost commented Dec 10, 2016

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
Copy link

ghost commented Dec 10, 2016

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

@kenjutsu-sx
Copy link
Author

kenjutsu-sx commented Dec 11, 2016

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
Copy link

ghost commented Dec 12, 2016

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
Copy link
Author

С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
Copy link
Author

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
Copy link

ghost commented Dec 12, 2016

It will be fixed. Thanks for testing.

@ghost
Copy link

ghost commented Dec 15, 2016

Fixed.

@ghost ghost closed this as completed Dec 15, 2016
@djacicd djacicd mentioned this issue Nov 21, 2017
@Naji221
Copy link

Naji221 commented Jun 3, 2024

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
Copy link
Owner

IS4Code commented Jun 3, 2024

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants