samp-incognito / samp-streamer-plugin

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

Server crash when enter area with objects #223

Closed ghost closed 6 years ago

ghost commented 6 years ago

So, I just tried this map http://forum.sa-mp.com/showthread.php?t=546590 When I teleport to it, server starts lagging (delay on chat messages, objects load very slow, if they even do) It usually load like half of the object then server restarts with the error:

[17:50:17] [debug] Server crashed due to an unknown error [17:50:17] [debug] Native backtrace: [17:50:17] [debug] #0 f7372180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so [17:50:17] [debug] #1 f736a064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so [17:50:17] [debug] #2 f736ad64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so [17:50:17] [debug] #3 f736ccdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so [17:50:17] [debug] #4 f73714d5 in ?? () from plugins/crashdetect.so [17:50:17] [debug] #5 f76ff420 in ?? () [17:50:17] [debug] #6 f76ff440 in ?? () [17:50:17] [debug] #7 f73c56c1 in gsignal () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [17:50:17] [debug] #8 f73c8af2 in abort () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [17:50:17] [debug] #9 f75b936f in _ZN9__gnu_cxx27verbose_terminate_handlerEv () from /usr/local/games/samp-libs/libstdc++.so.6 [17:50:17] [debug] #10 f75b6ef4 in ?? () from /usr/local/games/samp-libs/libstdc++.so.6 [17:50:17] [debug] #11 f6ea775c in ?? () from plugins/YSF.so [17:50:17] [debug] #12 f71e0423 in sampgdk_SetPlayerObjectMaterialText () from plugins/streamer-debug.so [17:50:17] [debug] #13 f7237eda in _ZN7sampgdk27SetPlayerObjectMaterialTextEiiPKciiS1_ibiii () from plugins/streamer-debug.so [17:50:17] [debug] #14 f7278d55 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer-debug.so [17:50:17] [debug] #15 f727e372 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer-debug.so [17:50:17] [debug] #16 f7280490 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer-debug.so [17:50:17] [debug] #17 f722741c in ProcessTick () from plugins/streamer-debug.so [17:50:17] [debug] #18 080d1ce2 in ?? () from samp03svr [17:50:17] [debug] #19 080aef6c in ?? () from samp03svr [17:50:17] [debug] #20 080aa13a in ?? () from samp03svr [17:50:17] [debug] #21 f73b1e46 in libc_start_main () from /lib/i386-linux-gnu/i686/cmov/libc.so.6 [17:50:17] [debug] #22 0804b4e1 in ?? () from samp03svr [17:50:17] [debug] Registers: [17:50:17] [debug] EAX: 00000000 EBX: 00005392 ECX: 00005392 EDX: 00000006 [17:50:17] [debug] ESI: f76cdff4 EDI: f74feff4 EBP: ff8c6e30 ESP: ff8c6e18 [17:50:17] [debug] EIP: f76ff440 EFLAGS: 00000296 [17:50:17] [debug] Stack: [17:50:17] [debug] ESP+00000000: ff8c6e30 00000006 00005392 f73c56c1 [17:50:17] [debug] ESP+00000020: 00000006 ff8c6ed0 00000000 ff8c6f04 [17:50:17] [debug] ESP+00000040: f771da6c 00000000 f739a270 00000005 [17:50:17] [debug] ESP+00000060: 00000001 f74ff5c7 ff8c6eb0 f7465654 [17:50:17] [debug] ESP+00000080: ff8c6ee8 ff8c6ef4 ffffffff f76d2000 [17:50:17] [debug] ESP+000000a0: f74ff580 f74ff5c7 00000001 f7677c82 [17:50:17] [debug] ESP+000000c0: 00000000 00000000 00000000 00000000 [17:50:17] [debug] ESP+000000e0: 00000000 00000000 00000000 00000000 [17:50:17] [debug] ESP+00000100: 00000000 00000000 00000000 00000000 [17:50:17] [debug] ESP+00000120: 00000000 00000000 00000000 00000000 [17:50:17] [debug] ESP+00000140: ff8c6f98 f75b936f 00000005 09844246 [17:50:17] [debug] ESP+00000160: f770dfd6 00000000 f739a020 00000001 [17:50:17] [debug] ESP+00000180: ff8c7018 f75b6ef4 f75b6ee7 f76cdff4 [17:50:17] [debug] ESP+000001a0: f75b6f35 f75b6f64 f3631210 f75b6f56 [17:50:17] [debug] ESP+000001c0: f6fc5658 f6ea93ff 00000000 00000000 [17:50:17] [debug] ESP+000001e0: 01420005 02631160 f3000000 f6fc5658 [17:50:17] [debug] ESP+00000200: ff8c70b8 f6ea775c f3631166 ff8c706d [17:50:17] [debug] ESP+00000220: ff8c7068 ff8c7070 ff8cd1f7 008c2301 [17:50:17] [debug] ESP+00000240: ff8c7090 00000000 f7342ba0 00000006 [17:50:17] [debug] ESP+00000260: 554f4c43 f71d0044 09707a40 09aa384c [17:50:17] [debug] ESP+00000280: 00000000 f71d3b80 f6ea7540 00000006 [17:50:17] [debug] ESP+000002a0: ff8c7148 f71e0423 f7342b00 ff8c710c [17:50:17] [debug] ESP+000002c0: 09aa384c 00000023 00000001 ff8cd1f7 [17:50:17] [debug] ESP+000002e0: 00000000 00000001 00000000 00000018 [17:50:17] [debug] ESP+00000300: 00000000 00000000 0000008c 00000018 [17:50:17] [debug] ESP+00000320: 00000000 00000000 f733b5c8 00000000 [17:50:17] [debug] ESP+00000340: 09aa3834 00000000 0000008c 09aa384c [17:50:17] [debug] ESP+00000360: 00000000 f72376c5 09aa3701 f733b5c8 [17:50:17] [debug] ESP+00000380: 09aa3834 00000000 0000008c 09aa384c [17:50:17] [debug] ESP+000003a0: 00000000 00000000 f7c63f00 04a5fdfd [17:50:17] [debug] ESP+000003c0: ff8c7444 00000015 099fe140 000002c9 [17:50:17] [debug] ESP+000003e0: 00000000 44bb912f 44a52f4c 44aefd27 [17:50:17] [debug] Loaded modules: [17:50:17] [debug] 00000000 - 00187dc3 samp03svr [17:50:17] [debug] f7701000 - f7701540 [17:50:17] [debug] f76ec000 - f76ee23f /lib/i386-linux-gnu/i686/cmov/libdl.so.2 [17:50:17] [debug] f76d3000 - f76eabfb /lib/i386-linux-gnu/i686/cmov/libpthread.so.0 [17:50:17] [debug] f7546000 - f76dc70b /usr/local/games/samp-libs/libstdc++.so.6 [17:50:17] [debug] f7520000 - f75445eb /lib/i386-linux-gnu/i686/cmov/libm.so.6 [17:50:17] [debug] f7503000 - f751f278 /lib/i386-linux-gnu/libgcc_s.so.1 [17:50:17] [debug] f739b000 - f7505dc3 /lib/i386-linux-gnu/i686/cmov/libc.so.6 [17:50:17] [debug] f7700000 - f771c6f0 /lib/ld-linux.so.2 [17:50:17] [debug] f7354000 - f7396ac4 plugins/crashdetect.so [17:50:17] [debug] f76f4000 - f76f9892 plugins/filemanager.so [17:50:17] [debug] f7343000 - f7352344 plugins/sscanf.so [17:50:17] [debug] f70a2000 - f734716f plugins/streamer-debug.so [17:50:17] [debug] f708c000 - f7092a0b /lib/i386-linux-gnu/i686/cmov/librt.so.1 [17:50:17] [debug] f7098000 - f70a07c4 plugins/Whirlpool.so [17:50:17] [debug] f7086000 - f70895d8 plugins/MapAndreas.so [17:50:17] [debug] f703d000 - f70861dd plugins/FCNPC.so [17:50:17] [debug] f76f0000 - f76f1f70 plugins/nativechecker.so [17:50:17] [debug] f7018000 - f703c1d9 plugins/SKY.so [17:50:17] [debug] f6de1000 - f701e854 plugins/YSF.so [17:50:17] [debug] f6d7a000 - f6d83887 /lib/i386-linux-gnu/i686/cmov/libnss_files.so.2 [17:50:17] [debug] f37bd000 - f37c15fb /lib/i386-linux-gnu/i686/cmov/libnss_dns.so.2 [17:50:17] [debug] f37a9000 - f37bc5e7 /lib/i386-linux-gnu/i686/cmov/libresolv.so.2

Tried streamer debug hoping it would give me more info, heard of GBD for that but I don't have that ability on my host, I'll have to ask the support for that. Same happens with normal version of streamer. I'm using the latest version: Streamer Plugin v2.9.1 by Incognito loaded

This is working completly fine on windows. The host is running Debian 7, I tried to recompile the source and still the same error.

IstuntmanI commented 6 years ago

Duplicate for #205 ! It looks like your code isn't crashing on Create/DestroyPlayerObject, but on SetPlayerObjectMaterialText. That's weird, again.

Did you change any streamer plugin setting ? Such as maximum visible objects, tick rate, chunks, etc. ? This bug still happens if you have only that map ? It happens everytime it is getting streamed in ? Are you sure that it doesn't happen on Windows, but only on Linux ?

ghost commented 6 years ago

Yes, it's happening only when this map gets streamed in. I disabled every SetDynamicObjectMaterialText from that specific map and it works now, just to point out that this is causing the crash.

//SetDynamicObjectMaterialText(AT_bank_int[206], 0, "2", 120, "Ariel", 140, 0, -6760456, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[207], 0, "(", 120, "Ariel", 130, 0, -4397830, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[208], 0, "1", 120, "Ariel", 140, 0, -6760456, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[209], 0, "3", 120, "Ariel", 140, 0, -6760456, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[210], 0, "4", 120, "Ariel", 140, 0, -6760456, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[211], 0, "(", 120, "Ariel", 130, 0, -4397830, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[212], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 1); //SetDynamicObjectMaterialText(AT_bank_int[213], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 1); //SetDynamicObjectMaterialText(AT_bank_int[214], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 0); //SetDynamicObjectMaterialText(AT_bank_int[215], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 1); //SetDynamicObjectMaterialText(AT_bank_int[216], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 1); //SetDynamicObjectMaterialText(AT_bank_int[217], 0, "CLOUD", 110, "Ariel", 35, 1, -7548425, 0, 1);

ghost commented 6 years ago

Thats a problem with ysf, disable in cfg storeplayermaterialobject and wilm be fine. Use r19, but its officially disabled now.

IstuntmanI commented 6 years ago

Was it indeed the problem ? This issue can be closed now ?