samp-incognito / samp-streamer-plugin

Streamer Plugin for SA-MP (San Andreas Multiplayer)
Apache License 2.0
231 stars 92 forks source link

Streamer crashes with latest YSF #271

Closed AGraber closed 6 years ago

AGraber commented 6 years ago

Using SAMP R2-1-1, if I don't load YSF everything works as always, but with YSF:

[14:27:07] [debug] Server crashed while executing srp.amx
[14:27:07] [debug] AMX backtrace:
[14:27:07] [debug] #0 native AttachDynamicObjectToVehicle () from streamer.so
[14:27:07] [debug] #1 001eaae0 in UpdateVehicleAttachedObject (vehicleid=332, slot=0, material=0) at srp.pwn:36140
[14:27:07] [debug] #2 001eee1c in public OnPlayerEditObject (playerid=5, playerobject=1, objectid=2, response=2, Float:fX=263.63214, Float:fY=20.26072, Float:fZ=2.14245, Float:fRotX=0.00000, Float:fRotY=0.00000, Float:fRotZ=0.00000) at srp.pwn:36262
[14:27:07] [debug] Native backtrace:
[14:27:07] [debug] #0 f7320180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[14:27:07] [debug] #1 f7318064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[14:27:07] [debug] #2 f7318d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[14:27:07] [debug] #3 f731acdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[14:27:07] [debug] #4 f731f4d5 in ?? () from plugins/crashdetect.so
[14:27:07] [debug] #5 f7735d50 in __kernel_rt_sigreturn () from linux-gate.so.1
[14:27:07] [debug] #6 f747ab86 in ?? () from /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:27:07] [debug] #7 080c8041 in ?? () from ./samp03svr
[14:27:07] [debug] #8 080c8497 in ?? () from ./samp03svr
[14:27:07] [debug] #9 080e021c in ?? () from ./samp03svr
[14:27:07] [debug] #10 f725f2cb in sampgdk_AttachPlayerObjectToVehicle () from plugins/streamer.so
[14:27:07] [debug] #11 f72b6423 in _ZN7Natives28AttachDynamicObjectToVehicleEP6tagAMXPi () from plugins/streamer.so
[14:27:07] [debug] #12 080950e4 in ?? () from ./samp03svr
[14:27:07] [debug] #13 f7319ad3 in _ZN11CrashDetect17HandleAMXCallbackEiPiS0_ () from plugins/crashdetect.so
[14:27:07] [debug] #14 0000008f in ?? () from  ÷n÷Hõn÷Œm2   Œm2 o2 Œm2 Œq2 Œq2 „o÷
[14:27:07] [debug] Registers:
[14:27:07] [debug] EAX: 00000000 EBX: ff871f50 ECX: 00000000 EDX: 00000000
[14:27:07] [debug] ESI: 00000000 EDI: 00000000 EBP: ff871ed8 ESP: ff871e84
[14:27:07] [debug] EIP: f747ab86 EFLAGS: 00010283
[14:27:07] [debug] Stack:
[14:27:07] [debug] ESP+00000000: 00000008 00000000 080c8041 00000000
[14:27:07] [debug] ESP+00000020: ff871f50 0931a918 0104d27a 00000000
[14:27:07] [debug] ESP+00000040: 00000001 01871f18 0931a918 ff871f50
[14:27:07] [debug] ESP+00000060: 00000000 ff871f50 00000001 00000002
[14:27:07] [debug] ESP+00000080: 00000000 00010058 00000000 00000000
[14:27:07] [debug] ESP+000000a0: 00000003 00000000 00000000 00000000
[14:27:07] [debug] ESP+000000c0: 00004b7f ffff001b 0001014c 00000288
[14:27:07] [debug] ESP+000000e0: 0000004b 00000000 00000000 00000000
[14:27:07] [debug] ESP+00000100: ffff014c 3d23e000 c02ccd20 bc23cb00
[14:27:07] [debug] ESP+00000120: 18330182 00000001 000000ff 00000100
[14:27:07] [debug] ESP+00000140: ff87209c f76f1000 f76b7e87 09079cb4
[14:27:07] [debug] ESP+00000160: 00000005 00000040 00000009 0853cefc
[14:27:07] [debug] ESP+00000180: f6fc0070 ff8722a8 f76b7f06 ff87209c
[14:27:07] [debug] ESP+000001a0: f76b7ee6 f6fc348c f75a0000 f75a0420
[14:27:07] [debug] ESP+000001c0: 0852ccd8 00000014 f746cbb1 f746cb67
[14:27:07] [debug] ESP+000001e0: 00000001 00000014 f7746bb4 ff8726f4
[14:27:07] [debug] ESP+00000200: 0000014c ff8720d8 080e021c 0931a918
[14:27:07] [debug] ESP+00000220: 00000000 00000000 f72587de 3d23e000
[14:27:07] [debug] ESP+00000240: 00000001 ff8720d8 f72ff7d4 00000005
[14:27:07] [debug] ESP+00000260: ff872134 00000001 0000014c 00000000
[14:27:07] [debug] ESP+00000280: bf847960 00000000 00000000 00000000
[14:27:07] [debug] ESP+000002a0: f775399c 080e0170 f7529339 00000000
[14:27:07] [debug] ESP+000002c0: 3d23e000 c02ccd20 bc23cb00 00000000
[14:27:07] [debug] ESP+000002e0: 09092f10 ff8721e8 f72b6423 00000005
[14:27:07] [debug] ESP+00000300: bc23cb00 00000000 00000000 00000000
[14:27:07] [debug] ESP+00000320: 00000000 00000002 0852d618 00000000
[14:27:07] [debug] ESP+00000340: 1009ad98 0000d515 00000000 ff872250
[14:27:07] [debug] ESP+00000360: 08825218 ff872218 080950e4 08825218
[14:27:07] [debug] ESP+00000380: 00000000 f72b6100 f7344ff4 08825218
[14:27:07] [debug] ESP+000003a0: 0000011d ff87240c f5044cc8 001eaae0
[14:27:07] [debug] ESP+000003c0: 031d3606 f7231234 f775399c f7231b84
[14:27:07] [debug] ESP+000003e0: 04812400 adcc0ae0 2c6dec8d 00000000
[14:27:07] [debug] Loaded modules:
[14:27:07] [debug] 00000000 - 00187dc3 samp03svr
[14:27:07] [debug] f7735000 - f7735e96 linux-gate.so.1
[14:27:07] [debug] f7716000 - f771881b /lib/i386-linux-gnu/i686/cmov/libdl.so.2
[14:27:07] [debug] f76fa000 - f7714d2b /lib/i386-linux-gnu/i686/cmov/libpthread.so.0
[14:27:07] [debug] f7607000 - f7700cda /usr/lib/i386-linux-gnu/libstdc++.so.6
[14:27:07] [debug] f75c1000 - f7605b43 /lib/i386-linux-gnu/i686/cmov/libm.so.6
[14:27:07] [debug] f75a4000 - f75c03c4 /lib/i386-linux-gnu/libgcc_s.so.1
[14:27:07] [debug] f73f7000 - f75ac22f /lib/i386-linux-gnu/i686/cmov/libc.so.6
[14:27:07] [debug] f7738000 - f7758d6c /lib/ld-linux.so.2
[14:27:07] [debug] f7346000 - f73f3c5b plugins/YSF.so
[14:27:07] [debug] f7302000 - f7344ac4 plugins/crashdetect.so
[14:27:07] [debug] f7722000 - f77311d4 plugins/sscanf.so
[14:27:07] [debug] f722c000 - f73027f0 plugins/streamer.so
[14:27:07] [debug] f720b000 - f721209f /lib/i386-linux-gnu/i686/cmov/librt.so.1
[14:27:07] [debug] f7126000 - f720e3e9 plugins/pawncmd.so
[14:27:07] [debug] f703d000 - f7129745 plugins/pawnregex.so
[14:27:07] [debug] f6cac000 - f7041eb2 plugins/mysql.so
[14:27:07] [debug] f6c88000 - f6cabd32 /home/samp/server/plugins/../log-core.so
[14:27:07] [debug] f5c79000 - f5c843ef /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2
IstuntmanI commented 6 years ago

Try to test that without loading the Streamer Plugin. It may be a YSF bug. @kurta999 @IllidanS4

We would also need to see some code.

IS4Code commented 6 years ago

Is StorePlayerObjectsMaterial in YSF.cfg set to 1? If it is, try setting it to 0.

AGraber commented 6 years ago

Tested for a week with YSF.cfg 0 and no problems. I guess I forgot to disable it. Thanks!