Skip to content
New issue

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

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

Already on GitHub? # to your account

Chunk streamer crashes server on automatic update #205

Open
infinity223 opened this issue Jun 12, 2017 · 73 comments
Open

Chunk streamer crashes server on automatic update #205

infinity223 opened this issue Jun 12, 2017 · 73 comments

Comments

@infinity223
Copy link

infinity223 commented Jun 12, 2017

Hello!

for a week already I have problems with random server crashing. It's happening like 1-2 times a day, random hours and random player number.

server_log.txt file says:

[11:38:24] [debug] Server crashed due to an unknown error
[11:38:24] [debug] Native backtrace:
[11:38:24] [debug] #0 f739de8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[11:38:24] [debug] #1 f7396bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[11:38:24] [debug] #2 f7397dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[11:38:24] [debug] #3 f7398226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[11:38:24] [debug] #4 f739dadc in ?? () from plugins/crashdetect.so
[11:38:24] [debug] #5 f76ecd50 in __kernel_rt_sigreturn () from linux-gate.so.1
[11:38:24] [debug] #6 f76ecd70 in __kernel_vsyscall () from linux-gate.so.1
[11:38:24] [debug] #7 f73ef367 in gsignal () from /lib32/libc.so.6
[11:38:24] [debug] #8 f73f0a23 in abort () from /lib32/libc.so.6
[11:38:24] [debug] #9 f742d798 in ?? () from /lib32/libc.so.6
[11:38:24] [debug] #10 f743380a in ?? () from /lib32/libc.so.6
[11:38:24] [debug] #11 f743445d in ?? () from /lib32/libc.so.6
[11:38:24] [debug] #12 f761ae68 in _ZdlPv () from /usr/lib32/libstdc++.so.6
[11:38:24] [debug] #13 f68b9f19 in _ZNSt8_Rb_treeISt4pairIifES0_IKS1_N5boost13intrusive_ptrIN4Item6ObjectEEEESt10_Select1stIS8_ENS5_7CompareESaIS8_EE8_M_eraseEPSt13_Rb_tree_nodeIS8_E () from plugins/streamer.so
[11:38:24] [debug] #14 f6908b14 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
[11:38:24] [debug] #15 f690c889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
[11:38:24] [debug] #16 f6911404 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[11:38:24] [debug] #17 f68cf1d5 in ProcessTick () from plugins/streamer.so
[11:38:24] [debug] #18 080d1ce2 in ?? () from ./samp03svr
[11:38:24] [debug] #19 080aef3a in ?? () from ./samp03svr
[11:38:24] [debug] #20 080aa13a in ?? () from ./samp03svr
[11:38:24] [debug] #21 f73daa63 in __libc_start_main () from /lib32/libc.so.6
[11:38:24] [debug] #22 0804b4e1 in ?? () from ./samp03svr

Im my own hoster on VPS with newest debian 8, all dependencies are present, system is up-to-date.

As far I can see, its something in automatic update for players. I cant solve it on my own, so I decided to post it here, help appreciated.

What I tried:

  • reinstalling linux and dependencies
  • reinstalling samp server
  • looking for error in scripting, but didnt found any
  • updating streamer plugin

Cheers.

@Romz24
Copy link

Romz24 commented Jun 16, 2017

I also have crashes on the latest version.
#207

@rt-2
Copy link

rt-2 commented Jun 16, 2017

I am also on 2.8.2 because of stability issues with the last versions

@samp-incognito
Copy link
Owner

samp-incognito commented Jun 16, 2017

As with #194, it might help if you compile the plugin with debug symbols (make config=debug) and run the server in GDB to produce more meaningful backtraces. It looks like these crashes are related, so I would say that some kind of memory errors are the culprit, but I don't know precisely what's causing them. Valgrind might provide some answers in this case.

Also, can anyone else confirm that 2.8.2 works fine?

@Romz24
Copy link

Romz24 commented Jun 17, 2017

samp-incognito, can you compile a plugin with this key? I unfortunately do not know how to do this...

@infinity223
Copy link
Author

Also, can anyone else confirm that 2.8.2 works fine?

Same problem with 2.8.2 version, same crash info.

@Romz24
Copy link

Romz24 commented Jun 17, 2017

At me on v2.8.2 problems were not. Everything appeared after the addition of the actors.

@samp-incognito
Copy link
Owner

@Romz24
Copy link

Romz24 commented Jun 19, 2017

How can I see the log of the debug version of the plug-in?

@vojthas98
Copy link

Maybe it's not related to this problem, but I have also noticed that in the new version objects attached to vehicle do not stream out when the virtual world is changed, they remain in the same place until you get out of the streaming distance. If I recall correctly previous versions were destroying the objects as soon as the player moved because the objects weren't in the same VW as the vehicle.

@Romz24
Copy link

Romz24 commented Jun 25, 2017

Again the server fell.

Server crashed due to an unknown error
Native backtrace:
#0 b740ce8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
#1 b7405bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
#2 b7406dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
#3 b7407226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
#4 b740cadc in ?? () from plugins/crashdetect.so
#5 b771f600 in ?? ()
#6 b771f420 in ?? ()
#7 b745ab01 in gsignal () from /lib/libc.so.6
#8 b745c3da in abort () from /lib/libc.so.6
#9 b749a545 in ?? () from /lib/libc.so.6
#10 b74a09a1 in ?? () from /lib/libc.so.6
#11 b74a4289 in ?? () from /lib/libc.so.6
#12 b74a4b7e in __libc_malloc () from /lib/libc.so.6
#13 b76be09a in _Znwj () from /usr/lib/libstdc++.so.6
#14 b76be1de in _Znaj () from /usr/lib/libstdc++.so.6
#15 0806e9be in ?? () from ./sampsvr
#16 0806eb03 in ?? () from ./sampsvr
#17 0807bba8 in ?? () from ./sampsvr
#18 08071b43 in ?? () from ./sampsvr
#19 0807c193 in ?? () from ./sampsvr
#20 0806d61f in ?? () from ./sampsvr
#21 0807c30f in ?? () from ./sampsvr
#22 080ac299 in ?? () from ./sampsvr
#23 080e22ba in ?? () from ./sampsvr
#24 b606f2f7 in sampgdk_DestroyPlayerObject () from plugins/streamer.so
#25 b60d1971 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
#26 b60d5889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
#27 b60da404 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
#28 b60981d5 in ProcessTick () from plugins/streamer.so
#29 080d1ce2 in ?? () from ./sampsvr
#30 080aef6c in ?? () from ./sampsvr
#31 080aa13a in ?? () from ./sampsvr
#32 b7446ce6 in __libc_start_main () from /lib/libc.so.6
#33 0804b4e1 in ?? () from ./sampsvr

@samp-incognito
Copy link
Owner

How can I see the log of the debug version of the plug-in?

Run the server in GDB (gdb samp03svr).

Keep in mind that some amount of processing is done on each server tick by default in 2.9(.1), so the plugin will probably always be somewhere in the backtrace. Unless the plugin made one of the last few calls, it's more likely that something else caused the crash. If memory errors are the problem, however (as I believe to be the case), the backtrace might not be particularly helpful. It will only show the last time memory (de)allocation failed, which appears to be what's happening here.

If anyone could also run Valgrind with the debug version of the plugin (valgrind --tool=memcheck --leak-check=yes samp03svr) and share the output, it would be very helpful.

@Romz24
Copy link

Romz24 commented Jul 3, 2017

How can I be if I just rent a hosting and do not have access to the Linux console?

@Romz24
Copy link

Romz24 commented Jul 19, 2017

When will this crash be fixed ???
I'm already sick of the fact that the server is constantly rebooting itself!

@IstuntmanI
Copy link
Contributor

IstuntmanI commented Jul 19, 2017

You can't do that if using a host.

Incognito can't fix this if you don't know when this is happening, how to reproduce it, but your latest shown crash backtrace is looking like #218's one. Could you try to go in your fullest (lots of objects, close to the visible items limit [by default it is set as 500 AFAIK]) server area and see if it crashes ?

You could try to use the latest compiled commit, Incognito tried to fix something similar:
https://mega.nz/#!ahpCSaiB!kj4yc2nRlOKODIZ2QsJXzFWiiXTe-3TqrVMWxpFTwcI

@Romz24
Copy link

Romz24 commented Jul 19, 2017

@IstuntmanI
I have about 50+ people on the server. They are constantly and very often located where there are a lot of objects. But crash happens constantly at different times, regardless of online and the location of players.
Still I want to say that I have increased the limit of objects to 950 in the radius of visibility and on older versions of the plug-in no problems did it, I somehow think that crash with this is not connected.

@samp-incognito
Copy link
Owner

To anyone having issues: try the version linked above.

@Goodguy
Copy link

Goodguy commented Jul 21, 2017

#218
I put the Incognito modification on Monday but after 3 days of activity, the server crashes again for the same reason:

[18:55:39] [debug] #0 f7301180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[18:55:39] [debug] #1 f72f9064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[18:55:39] [debug] #2 f72f9d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[18:55:39] [debug] #3 f72fbcdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[18:55:39] [debug] #4 f73004d5 in ?? () from plugins/crashdetect.so
[18:55:39] [debug] #5 f7704cb0 in __kernel_rt_sigreturn () from linux-gate.so.1
[18:55:39] [debug] #6 f7704c89 in __kernel_vsyscall () from linux-gate.so.1
[18:55:39] [debug] #7 f7356dc0 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[18:55:39] [debug] #8 f7358287 in abort () from /lib/i386-linux-gnu/libc.so.6
[18:55:39] [debug] #9 f75ca2ff in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] #10 f75c7ea4 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] #11 f75c7f1d in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] #12 f75c81d0 in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] #13 f75c87ff in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] #14 080c86f2 in ?? () from samp03svr
[18:55:39] [debug] #15 080e191f in ?? () from samp03svr
[18:55:39] [debug] #16 f6004964 in sampgdk_CreatePlayerObject () from plugins/streamer.so
[18:55:39] [debug] #17 f60692ca in _ZN7sampgdk18CreatePlayerObjectEiifffffff () from plugins/streamer.so
[18:55:39] [debug] #18 f60b4a57 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
[18:55:39] [debug] #19 f60ad31e in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
[18:55:39] [debug] #20 f60acc69 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[18:55:39] [debug] #21 f60577ff in ProcessTick () from plugins/streamer.so
[18:55:39] [debug] #22 080d1ce2 in ?? () from samp03svr
[18:55:39] [debug] #23 080aef3a in ?? () from samp03svr
[18:55:39] [debug] #24 080aa13a in ?? () from samp03svr
[18:55:39] [debug] #25 f7343276 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[18:55:39] [debug] #26 0804b4e1 in ?? () from samp03svr
[18:55:39] [debug] Registers:
[18:55:39] [debug] EAX: 00000000 EBX: 00000002 ECX: ffbe2890 EDX: 00000000
[18:55:39] [debug] ESI: 00000008 EDI: 00000000 EBP: ffbe2890 ESP: ffbe2880
[18:55:39] [debug] EIP: f7704c89 EFLAGS: 00000246
[18:55:39] [debug] Stack:
[18:55:39] [debug] ESP+00000000: ffbe2890 00000000 ffbe2890 f7356dc0
[18:55:39] [debug] ESP+00000020: 00000001 0a3090c0 00000045 00000000
[18:55:39] [debug] ESP+00000040: 000007d4 f74dd300 0a3090c0 f73935c1
[18:55:39] [debug] ESP+00000060: fffffffc f770ee30 00000045 f75b41a1
[18:55:39] [debug] ESP+00000080: ffffffff 00000000 0a3090c0 f73958ad
[18:55:39] [debug] ESP+000000a0: ffffffff ffffffff ffffffff ffffffff
[18:55:39] [debug] ESP+000000c0: ffffffff ffffffff ffffffff ffffffff
[18:55:39] [debug] ESP+000000e0: ffffffff ffffffff ffffffff ffffffff
[18:55:39] [debug] ESP+00000100: ffffffff ffffffff ffffffff ffffffff
[18:55:39] [debug] ESP+00000120: f76cc000 ffbe2a54 ffbe2b28 f7358287
[18:55:39] [debug] ESP+00000140: f772aa74 00000006 f7329270 00000001
[18:55:39] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[18:55:39] [debug] ESP+00000180: 00000000 00000000 00000000 00000000
[18:55:39] [debug] ESP+000001a0: 00000000 00000000 00000000 00000000
[18:55:39] [debug] ESP+000001c0: 00000000 00000000 00000000 00000000
[18:55:39] [debug] ESP+000001e0: f770f940 f755e47c 00000005 f7700e68
[18:55:39] [debug] ESP+00000200: 00000001 00000005 00000000 f74e0864
[18:55:39] [debug] ESP+00000220: f772a000 f75739cc 0000000e f75c6f2b
[18:55:39] [debug] ESP+00000240: f771484b f76cc000 f76cc000 081a18ec
[18:55:39] [debug] ESP+00000260: f7358137 f76cc000 081a18ec f75ca2ff
[18:55:39] [debug] ESP+00000280: 00000000 00000000 00000000 00000000
[18:55:39] [debug] ESP+000002a0: f76cc000 f76c7ae8 ffbe2bc8 f75c7ea4
[18:55:39] [debug] ESP+000002c0: f75ca190 f771af50 f75c7ee5 f75c7f14
[18:55:39] [debug] ESP+000002e0: 027499c8 f7700e68 f75c7ee5 f75c81a1
[18:55:39] [debug] ESP+00000300: 027499e8 f76c7ae8 f75c5e10 f75c87cd
[18:55:39] [debug] ESP+00000320: 00000e75 f61f7000 ffbe2bc8 f61f7000
[18:55:39] [debug] ESP+00000340: 00000001 faebe2bc ffbe2c28 080e191f
[18:55:39] [debug] ESP+00000360: ffbe2bf0 00000000 ffbe2c78 f60048e0
[18:55:39] [debug] ESP+00000380: 450391c3 c501fa3d 4148a3d7 f5ff91bf
[18:55:39] [debug] ESP+000003a0: 080e1890 faebe2bc ffbe2c78 f6004964
[18:55:39] [debug] ESP+000003c0: f89e5e30 00000024 00000000 00004d9d
[18:55:39] [debug] ESP+000003e0: 00000000 42b40000 00000000 f60ca8b4
[18:55:39] [debug] Loaded modules:
[18:55:39] [debug] 00000000 - 00187dc3 samp03svr
[18:55:39] [debug] f7704000 - f7704e2e linux-gate.so.1
[18:55:39] [debug] f76ed000 - f76ef9c4 /lib/i386-linux-gnu/libdl.so.2
[18:55:39] [debug] f76d0000 - f76eb6fb /lib/i386-linux-gnu/libpthread.so.0
[18:55:39] [debug] f7556000 - f76d9bbf /usr/lib/i386-linux-gnu/libstdc++.so.6
[18:55:39] [debug] f7501000 - f7555120 /lib/i386-linux-gnu/libm.so.6
[18:55:39] [debug] f74e3000 - f74ff354 /lib/i386-linux-gnu/libgcc_s.so.1
[18:55:39] [debug] f732b000 - f74e8cbf /lib/i386-linux-gnu/libc.so.6
[18:55:39] [debug] f7706000 - f7729684 /lib/ld-linux.so.2
[18:55:39] [debug] f72e3000 - f7325ac4 plugins/crashdetect.so
[18:55:39] [debug] f72d1000 - f72e11ac plugins/sscanf.so
[18:55:39] [debug] f6f2e000 - f72d6257 plugins/mysql_static.so
[18:55:39] [debug] f6f25000 - f6f2c480 /lib/i386-linux-gnu/librt.so.1
[18:55:39] [debug] f6512000 - f65230d0 /lib/i386-linux-gnu/libnss_files.so.2
[18:55:39] [debug] f5d69000 - f62115a4 plugins/streamer.so
[18:55:39] [debug] f76fb000 - f76fdc50 plugins/bcryptplugin.so
[18:55:39] [debug] f76f4000 - f76f96c8 /usr/local/lib/libbcrypt.so
[18:55:39] [debug] f5d45000 - f5d68cff plugins/SKY.so
[18:55:39] [debug] f5d10000 - f5d4418a plugins/ColAndreas.so
[18:55:39] [debug] f5c74000 - f5d10273 /usr/lib/i386-linux-gnu/libBulletDynamics.so.2.83
[18:55:39] [debug] f5b6c000 - f5c7713d /usr/lib/i386-linux-gnu/libBulletCollision.so.2.83
[18:55:39] [debug] f5b49000 - f5b6b250 /usr/lib/i386-linux-gnu/libLinearMath.so.2.83
[18:55:39] [debug] f5b0a000 - f5b47b8a /usr/lib/i386-linux-gnu/libBulletSoftBody.so.2.83

@Romz24
Copy link

Romz24 commented Jul 22, 2017

I installed the updated version, the bug is not fixed!
new_crash.txt

@Romz24
Copy link

Romz24 commented Aug 17, 2017

Another crash, a report with a crashdetect

[debug] Server crashed due to an unknown error
[debug] Native backtrace:
[debug] #0 b743ae8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so
[debug] #1 b7433bcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[debug] #2 b7434dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[debug] #3 b7435226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[debug] #4 b743aadc in ?? () from plugins/crashdetect.so
[debug] #5 b774d600 in ?? ()
[debug] #6 080e97cb in ?? () from ./sampsvr
[debug] #7 b6059f35 in sampgdk_DestroyActor () from plugins/streamer.so
[debug] #8 b60d2711 in _ZN7Utility29processPendingDestroyedActorsEv () from plugins/streamer.so
[debug] #9 b60c790a in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[debug] #10 b6081072 in ProcessTick () from plugins/streamer.so
[debug] #11 080d1ce2 in ?? () from ./sampsvr
[debug] #12 080aef6c in ?? () from ./sampsvr
[debug] #13 080aa13a in ?? () from ./sampsvr
[debug] #14 b7474ce6 in __libc_start_main () from /lib/libc.so.6
[debug] #15 0804b4e1 in ?? () from ./sampsvr

@rt-2
Copy link

rt-2 commented Aug 17, 2017

I cannot wait to use the dynamic actors.
Sorry to ask @samp-incognito but is there any sight of a stable version on the horizon?
Thank you for all your work,
rt-2

@IstuntmanI
Copy link
Contributor

IstuntmanI commented Aug 17, 2017

He can't make any stable version until he will find the source of these crashes. The only possible thing I think would be to remove the changes made in v2.9.1 related to ticks and chunks. These problems are coming from those new features for sure.

So actors are crashing too, this means that the cause is some code that is the same for streaming objects/actors and probably others too. I think that the problem is somewhere in 6e6a09a or 4b79a4f.

@samp-incognito: You should probably note the releases 2.9.0 and 2.9.1 as unstable on the releases page. I can't remember what crashes 2.9.1 fixed, but I think that it should be noted as a beta release, so you will release a better 2.9.1 eventually with this current crash fixed.

@samp-incognito
Copy link
Owner

I won't be able to fix it until I'm able to reproduce it myself and/or I receive more detailed information about the crashes. I've made some comments above about how this could be done. These crashdetect logs aren't very helpful, I'm sorry to say.

It could have something to do with the chunk streaming code, although I have no idea why that would be the case. There were many other changes between 2.8.2 and 2.9.0 as well. I still think it's probable in some cases that the crashes are originating in some other script or plugin, but because 2.9.x operates on nearly every server tick now, the plugin simply shows up in every backtrace. I can't think of any reason at all for the code around DestroyActor to be causing a crash unless sampgdk is at fault (doubtful), or it's precipitated by memory errors, in which case Valgrind is really the only way of diagnosing the problem, as I said above.

As a last resort, I could try putting the original streaming code in and making chunk streaming toggleable. That's not the way I would prefer to solve this, but we can see if it makes any difference.

@rt-2
Copy link

rt-2 commented Aug 17, 2017

This toggle could be a temporary work-around if that is the case. I had myself some crashes when updating further than 2.8.2. I would not be able to have the server up for more than 2-3 days maximum, where as right now I can have it up for weeks normally.
I would like to test it with Valgrind, but it seems that I have less problems than the other guys. Also I am on Windows, any suggestion on how I could help test this out?
I am not familiar with the program, but if you point me to some instructions on what type of setup I should configure to monitor, I would want to try.
Thank you,
rt-2

@Southclaws
Copy link
Contributor

A thought, maybe it's been considered before: would this project benefit from some form of unit testing and integration testing? Being a library it's awkward but you could a. write a basic test binary that loads the library and runs a set of tests or b. implement a flag to compile the library as a binary where the entrypoint runs tests.

I just thought a more pragmatic approach using some form of fuzzing and mocking streamer updates would help debug this quicker than loading up the game and waiting for a crash to occur.

@Romz24
Copy link

Romz24 commented Aug 18, 2017

I no longer have the strength, again the server shuts down when it's big online. I made a rollback to version 2.8.2, until this bug is fixed. I post the latest logs, which I would like to somehow help and will wait for further updates.
18.08.2017.txt

@IstuntmanI
Copy link
Contributor

IstuntmanI commented Sep 16, 2017

So Incognito made another commit: f3e1c5e . Here is the new download for both Linux and Windows (now with compatibility with Windows XP, if anyone actually needs that - @karimcambridge 😁 ?): https://mega.nz/#!W0I30a5D!4EQaaTKgbON7uFX2t-vtHjSPUT64j7lJixhARNDAiL8

@rt-2 You should still test the previous build, the one you already have, so you can actually give us that better backtrace. After it crashes, you should use this newer build and see if it still crashes to you.


By the way, this plugin compiles really really slow (Intel Core i7-4510U). @samp-incognito: maybe you can configure Travis and AppVeyor and make them deploy the latest builds automatically, somehow ? [afaik it is possible] Not sure if this is possible for Windows too, you can check sampGDK and YSF, it would be great to have a "release" called "Newest Commit" with both linux and windows compiled files for the latest commit.

@rt-2
Copy link

rt-2 commented Sep 18, 2017

Here we go again, for another week, not sure if will crash because there is not a lot of player during the week.
Let's hope that from now to Friday morning something will happen...
image
Thank you,
rt-2

@rt-2
Copy link

rt-2 commented Sep 22, 2017

This is weird to say, but 'unfortunatly, the server didn't crash for the whole week'
The thing is, its the dead period on SAMP in September-November, I think there is not enough traffic for the streamer to crash.
I will continue to do this every week.
Thank you,
rt-2

@raydex23
Copy link

We are running big server (180 players at this moment) on streamer 2.9.1 for month, on debian.
0 crashes.
Only problems - object dissapearing/missing ids (issue 230).

@rt-2
Copy link

rt-2 commented Sep 26, 2017

I ran into a problem with the testing files, somehow when I run with this plugin the server has a CPU leak. So much that it becomes unplayable and unstable.
rt-2

@IstuntmanI IstuntmanI mentioned this issue Oct 11, 2017
@IstuntmanI
Copy link
Contributor

IstuntmanI commented Oct 12, 2017

@rt-2: Of course the debug version uses more CPU. It contains more information and it isn't optimized.


@samp-incognito: I added lots of additional warnings ("-Wextra -pedantic -Wconversion -Wcast-align -Wcast-qual -Wctor-dtor-privacy -Wdisabled-optimization -Wformat=2 -Winit-self -Wlogical-op -Wmissing-include-dirs -Wnoexcept -Wold-style-cast -Woverloaded-virtual -Wredundant-decls -Wshadow -Wsign-promo -Wstrict-null-sentinel -Wstrict-overflow=5 -Wundef -Wno-unused -Wno-variadic-macros -Wno-parentheses -fdiagnostics-show-option") for gmake into premake.lua and I generated the files again with it, it resulted a 11,0MB log (well, mostly from Boost and Eigen). Into it I noticed these lines, which looked suspect to me anyway before (they are some really long lines !):
https://pastebin.com/0HbVWW4H

so:

src/streamer.cpp:1019:179:   required from here
src/streamer.cpp:1338:177:   required from here
src/streamer.cpp:1808:183:   required from here

player.discoveredMapIcons.insert(Item::Bimap<Item::SharedMapIcon>::Type::value_type(boost::make_tuple(m->second->priority, distance), boost::make_tuple(m->first, m->second)));

player.discoveredObjects.insert(Item::Bimap<Item::SharedObject>::Type::value_type(boost::make_tuple(o->second->priority, distance), boost::make_tuple(o->first, o->second)));

player.discoveredTextLabels.insert(Item::Bimap<Item::SharedTextLabel>::Type::value_type(boost::make_tuple(t->second->priority, distance), boost::make_tuple(t->first, t->second)));

I really think you made some mistakes with those bimaps, they are way too complex.

Also, you maybe should fix these warnings I guess (there are few others too):

src/streamer.cpp: In member function ‘void Streamer::streamActors()’:
src/streamer.cpp:765:55: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  for (std::multimap<int, Item::SharedActor>::iterator i = sortedActors.begin(); i != sortedActors.end(); ++i)
                                                       ^
src/streamer.cpp:744:43: note: shadowed declaration is here
  boost::unordered_map<int, int>::iterator i = core->getData()->internalActors.begin();
                                           ^
src/streamer.cpp: In member function ‘void Streamer::streamPickups()’:
src/streamer.cpp:1584:56: warning: declaration of ‘i’ shadows a previous local [-Wshadow]
  for (std::multimap<int, Item::SharedPickup>::iterator i = sortedPickups.begin(); i != sortedPickups.end(); ++i)
                                                        ^
src/streamer.cpp:1555:43: note: shadowed declaration is here
  boost::unordered_map<int, int>::iterator i = core->getData()->internalPickups.begin();
                                           ^
src/streamer.cpp: In member function ‘void Streamer::processMovingObjects()’:
src/streamer.cpp:1969:42: warning: conversion to ‘boost::chrono::duration<float, boost::ratio<1ll, 1000ll> >::rep {aka float}’ from ‘int’ may alter its value [-Wconversion]
    if (elapsedTime.count() < (*o)->move->duration)
                              ~~~~~~~~~~~~^~~~~~~~

Maybe you should take a look on all the gmake warnings, they may help. The warnings I provided are almost all the warnings of gmake enabled.


Anyone else tried the compiled version of the latest commit ? In this issue: #230 they said that they are still seeing vanishing objects, but is it crashing anymore ?

@rt-2
Copy link

rt-2 commented Oct 12, 2017

@IstuntmanI Personally I think the server wouldn't have spent a week opened for sure before, but I had more player and activity in these times.
I couldn't make it crash but there is way less activity so I can't tell, but that may be a reason because I was surprised that 3 weeks in a row no crashes (I removed the test version during the weekend).
rt-2

@samp-incognito
Copy link
Owner

@IstuntmanI: Good point about the warnings. I'll investigate those. As for the bimaps, I'm not sure what's causing those particular warnings (I've not looked at the source yet), but they're only used in the chunk streaming code, which is disabled now by default.

I'll see about fixing these warnings (if possible) and releasing 2.9.2 so that more people can test this. There are some bugs I've confirmed to be fixed since 2.9.1 was released anyway.

@IstuntmanI
Copy link
Contributor

IstuntmanI commented Oct 12, 2017

I still think that you shouldn't release yet another version until this bug will be actually fixed. You should really add some "prelease"/"beta" one while updating the download with newer commits when available and then just change the release to a stable one when everything will be ok. You could also note there that there are two known bugs: objects vanishing and server crashes and if they have any information to provide about those problems they can visit and post in this issue. There's no need for a new version if it isn't stable, there's only the need for newest compiled commit on the releases page.

@rt-2
Copy link

rt-2 commented Oct 12, 2017

I think people deserve more stability after all this time, I think a lot of bugs have been fixed/stabilized since 2.9.1, Yes we cannot release a 2.10.0, but we are ready for a 2.9.2?
rt-2

@samp-incognito
Copy link
Owner

samp-incognito commented Oct 12, 2017

I'll add a note to the release and probably just mark everything post-2.8.2 as "beta", as you (@IstuntmanI) said.

@karimcambridge
Copy link

@rt-2

deserve?

incognito barely ever opens sa-mp, tbh I have NO idea why he is still here.

Why don't you guys look into actually helping him fix the bugs. You are scripting for your server, you can 'script' (lol) a streamer too.

@rt-2
Copy link

rt-2 commented Oct 12, 2017

@karimcambridge I may have used the wrong word because I am not native english.
I don't mean that the people are 'entitled' to have this version. But What I think is, it's already compiled and shared with us here, I think the trouble would be not much, and the people would have so much less headaches, in that sense I think its the thing to do, or they deserve it.
There is no way @samp-incognito 'have to' do anything, he is workign in good will and for free and he does what he wants.
I hope this clarifies, I just think the trouble would not be much and that since we have it they deserve it too.
rt-2

@samp-incognito
Copy link
Owner

@karimcambridge: Well, you aren't wrong. I haven't played SA-MP in several years. The only reason I still update this is because it solves a few interesting problems (I think so, anyway), but, most importantly, it does have a sizeable following. If nobody used it, I definitely would have stopped development a long time ago. I don't have much time to devote to it anymore, though, obviously.

Of course, I'm always open to contributions. In fact, if other people wanted to take over development, they're welcome to do so. I can give them full access to the repository, provided I can verify who they are. (Anyone is welcome to fork it, too. I can link actively maintained forks on the wiki or even in the README.)

The real problem, though, I guess, is that this community just doesn't have many developers to help, or at least it doesn't anymore.

@Romz24
Copy link

Romz24 commented Nov 2, 2017

Who can check if the bug has been fixed in version 2.9.2?

@VinDieseLL
Copy link

VinDieseLL commented Jan 23, 2018

*** Error in./samp03svr': malloc(): memory corruption: 0x0b0ff90e ***
======= Backtrace: =========
/lib/i386-linux-gnu/libc.so.6(+0x67377)[0xf7463377]
/lib/i386-linux-gnu/libc.so.6(+0x6d2f7)[0xf74692f7]
/lib/i386-linux-gnu/libc.so.6(+0x6f3f2)[0xf746b3f2]
/lib/i386-linux-gnu/libc.so.6(__libc_malloc+0xc5)[0xf746cfc5]
/usr/lib32/libstdc++.so.6(_Znwj+0x27)[0xf7696177]
plugins/streamer-debug.so(_ZN9__gnu_cxx13new_allocatorIN5boost13intrusive_ptrI4CellEEE8allocateEjPKv+0x42)[0xf7289b96]
plugins/streamer-debug.so(_ZNSt12_Vector_baseIN5boost13intrusive_ptrI4CellEESaIS3_EE11_M_allocateEj+0x34)[0xf7289bd0]
plugins/streamer-debug.so(ZNSt6vectorIN5boost13intrusive_ptrI4CellEESaIS3_EE13_M_insert_auxEN9__gnu_cxx17__normal_iteratorIPS3_S5_EERKS3+0x11b)[0xf7296b9d]
plugins/streamer-debug.so(ZNSt6vectorIN5boost13intrusive_ptrI4CellEESaIS3_EE9push_backERKS3+0x7f)[0xf7296d39]
plugins/streamer-debug.so(_ZN4Grid25findMinimalCellsForPlayerER6PlayerRSt6vectorIN5boost13intrusive_ptrI4CellEESaIS6_EE+0x13e)[0xf72726ce]
plugins/streamer-debug.so(_ZN8Streamer19performPlayerUpdateER6Playerb+0x9ae)[0xf72f26fc]
plugins/streamer-debug.so(_ZN8Streamer20startAutomaticUpdateEv+0x18a)[0xf72f3528]
plugins/streamer-debug.so(ProcessTick+0x30)[0xf729a41c]
./samp03svr[0x80d1ce2]
./samp03svr[0x80aef3a]
./samp03svr[0x80aa13a]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf7)[0xf7414637]
./samp03svr[0x804b4e1]
======= Memory map: ========
08048000-08095000 r-xp 00000000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
08095000-08097000 rwxp 0004d000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
08097000-080a1000 r-xp 0004f000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
080a1000-080a2000 rwxp 00059000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
080a2000-08180000 r-xp 0005a000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
08180000-081a2000 rw-p 00138000 09:00 46008750/home/client6002/service5753/samp03/samp03svr
081a2000-081cd000 rw-p 00000000 00:00 0
091ab000-091b2000 rw-p 00000000 00:00 0 [heap]
091b2000-091b3000 rwxp 00000000 00:00 0 [heap]
091b3000-091b4000 rw-p 00000000 00:00 0 [heap]
091b4000-091b5000 rwxp 00000000 00:00 0 [heap]
091b5000-091b7000 rw-p 00000000 00:00 0 [heap]
091b7000-091b8000 rwxp 00000000 00:00 0 [heap]
091b8000-0b9d4000 rw-p 00000000 00:00 0 [heap]
f0e00000-f0e4f000 rw-p 00000000 00:00 0
f0e4f000-f0f00000 ---p 00000000 00:00 0
f1000000-f1200000 rw-p 00000000 00:00 0
f1200000-f1300000 rw-p 00000000 00:00 0
f13b9000-f13ba000 ---p 00000000 00:00 0
f13ba000-f1bba000 rw-p 00000000 00:00 0
f1bba000-f1bbb000 ---p 00000000 00:00 0
f1bbb000-f2446000 rw-p 00000000 00:00 0
f2600000-f2800000 rw-p 00000000 00:00 0
f2800000-f2821000 rw-p 00000000 00:00 0
f2821000-f2900000 ---p 00000000 00:00 0
f2900000-f2921000 rw-p 00000000 00:00 0
f2921000-f2a00000 ---p 00000000 00:00 0
f2a00000-f2a21000 rw-p 00000000 00:00 0
f2a21000-f2b00000 ---p 00000000 00:00 0
f2b0a000-f2b0b000 ---p 00000000 00:00 0
f2b0b000-f330b000 rw-p 00000000 00:00 0
f330b000-f330c000 ---p 00000000 00:00 0
f330c000-f5c1c000 rw-p 00000000 00:00 0
f5c1c000-f5cf7000 r-xp 00000000 09:00 46010679/home/client6002/service5753/samp03/plugins/pawncmd.so
f5cf7000-f5cfc000 rw-p 000da000 09:00 46010679/home/client6002/service5753/samp03/plugins/pawncmd.so
f5cfc000-f5f00000 rw-p 00000000 00:00 0
f5f00000-f5f21000 rw-p 00000000 00:00 0
f5f21000-f6000000 ---p 00000000 00:00 0
f6014000-f6023000 r-xp 00000000 09:00 46010687/home/client6002/service5753/samp03/plugins/sscanf.so
f6023000-f6024000 r--p 0000e000 09:00 46010687/home/client6002/service5753/samp03/plugins/sscanf.so
f6024000-f6025000 rw-p 0000f000 09:00 46010687/home/client6002/service5753/samp03/plugins/sscanf.so
f6025000-f6030000 r-xp 00000000 09:00 81527901/lib/i386-linux-gnu/libnss_files-2.23.so
f6030000-f6031000 r--p 0000a000 09:00 81527901/lib/i386-linux-gnu/libnss_files-2.23.so
f6031000-f6032000 rw-p 0000b000 09:00 81527901/lib/i386-linux-gnu/libnss_files-2.23.so
f6032000-f6038000 rw-p 00000000 00:00 0
f6038000-f6039000 ---p 00000000 00:00 0
f6039000-f6a38000 rw-p 00000000 00:00 0
f6a38000-f6c3c000 r-xp 00000000 09:00 46009298/home/client6002/service5753/samp03/plugins/mysql.so
f6c3c000-f6c86000 rw-p 00204000 09:00 46009298/home/client6002/service5753/samp03/plugins/mysql.so
f6c86000-f6c87000 rw-p 00000000 00:00 0
f6c87000-f7101000 r-xp 00000000 09:00 46006317/home/client6002/service5753/samp03/plugins/streamer.so
f7101000-f7102000 r--p 00479000 09:00 46006317/home/client6002/service5753/samp03/plugins/streamer.so
f7102000-f710b000 rw-p 0047a000 09:00 46006317/home/client6002/service5753/samp03/plugins/streamer.so
f710b000-f710c000 rw-p 00000000 00:00 0
f710c000-f7113000 r-xp 00000000 09:00 81527906/lib/i386-linux-gnu/librt-2.23.so
f7113000-f7114000 r--p 00006000 09:00 81527906/lib/i386-linux-gnu/librt-2.23.so
f7114000-f7115000 rw-p 00007000 09:00 81527906/lib/i386-linux-gnu/librt-2.23.so
f7115000-f73ae000 r-xp 00000000 09:00 46006318/home/client6002/service5753/samp03/plugins/streamer-debug.so
f73ae000-f73b6000 rw-p 00299000 09:00 46006318/home/client6002/service5753/samp03/plugins/streamer-debug.so
f73b6000-f73f8000 r-xp 00000000 09:00 46010673/home/client6002/service5753/samp03/plugins/crashdetect.so
f73f8000-f73f9000 r--p 00041000 09:00 46010673/home/client6002/service5753/samp03/plugins/crashdetect.so
f73f9000-f73fa000 rw-p 00042000 09:00 46010673/home/client6002/service5753/samp03/plugins/crashdetect.so
f73fa000-f73fc000 rw-p 00000000 00:00 0
f73fc000-f75ac000 r-xp 00000000 09:00 81527888/lib/i386-linux-gnu/libc-2.23.so
f75ac000-f75ae000 r--p 001af000 09:00 81527888/lib/i386-linux-gnu/libc-2.23.so
f75ae000-f75af000 rw-p 001b1000 09:00 81527888/lib/i386-linux-gnu/libc-2.23.so
f75af000-f75b3000 rw-p 00000000 00:00 0
f75b3000-f75cf000 r-xp 00000000 09:00 81527128/lib/i386-linux-gnu/libgcc_s.so.1
f75cf000-f75d0000 rw-p 0001b000 09:00 81527128/lib/i386-linux-gnu/libgcc_s.so.1
f75d0000-f7623000 r-xp 00000000 09:00 81527884/lib/i386-linux-gnu/libm-2.23.so
f7623000-f7624000 r--p 00052000 09:00 81527884/lib/i386-linux-gnu/libm-2.23.so
f7624000-f7625000 rw-p 00053000 09:00 81527884/lib/i386-linux-gnu/libm-2.23.so
f7625000-f7792000 r-xp 00000000 09:00 90180725/usr/lib32/libstdc++.so.6.0.21
f7792000-f7793000 ---p 0016d000 09:00 90180725/usr/lib32/libstdc++.so.6.0.21
f7793000-f7798000 r--p 0016d000 09:00 90180725/usr/lib32/libstdc++.so.6.0.21
f7798000-f7799000 rw-p 00172000 09:00 90180725/usr/lib32/libstdc++.so.6.0.21
f7799000-f779c000 rw-p 00000000 00:00 0
f779c000-f77b5000 r-xp 00000000 09:00 81527887/lib/i386-linux-gnu/libpthread-2.23.so
f77b5000-f77b6000 r--p 00018000 09:00 81527887/lib/i386-linux-gnu/libpthread-2.23.so
f77b6000-f77b7000 rw-p 00019000 09:00 81527887/lib/i386-linux-gnu/libpthread-2.23.so
f77b7000-f77b9000 rw-p 00000000 00:00 0
f77b9000-f77bc000 r-xp 00000000 09:00 81527890/lib/i386-linux-gnu/libdl-2.23.so
f77bc000-f77bd000 r--p 00002000 09:00 81527890/lib/i386-linux-gnu/libdl-2.23.so
f77bd000-f77be000 rw-p 00003000 09:00 81527890/lib/i386-linux-gnu/libdl-2.23.so
f77c2000-f77c3000 rw-p 00000000 00:00 0
f77c3000-f77c5000 r-xp 00000000 09:00 46006312/home/client6002/service5753/samp03/plugins/nativechecker.so
f77c5000-f77c6000 r--p 00001000 09:00 46006312/home/client6002/service5753/samp03/plugins/nativechecker.so
f77c6000-f77c7000 rw-p 00002000 09:00 46006312/home/client6002/service5753/samp03/plugins/nativechecker.so
f77c7000-f77c8000 rw-p 00000000 00:00 0
f77c8000-f77ca000 r--p 00000000 00:00 0 [vvar]
f77ca000-f77cc000 r-xp 00000000 00:00 0 [vdso]
f77cc000-f77ef000 r-xp 00000000 09:00 81527886/lib/i386-linux-gnu/ld-2.23.so
f77ef000-f77f0000 r--p 00022000 09:00 81527886/lib/i386-linux-gnu/ld-2.23.so
f77f0000-f77f1000 rw-p 00023000 09:00 81527886/lib/i386-linux-gnu/ld-2.23.so
ffcff000-ffd20000 rw-p 00000000 00:00 0 [stack]`

@samp-incognito
Copy link
Owner

@VinDieseLL: What version are you using?

@VinDieseLL
Copy link

@samp-incognito 2.9.1 (debug)

@samp-incognito
Copy link
Owner

samp-incognito commented Jan 24, 2018

@VinDieseLL: Update to 2.9.2 and see if it fixes the problem for you.

@IstuntmanI
Copy link
Contributor

@samp-incognito I used v2.9.0 before for some days and pickups disappeared once for me and I downgraded to v2.8.2. Now I'm using v2.9.2 for quite some time already (didn't use v2.9.1) and everything is stable: no crash or item disappearing. The problem in my opinion is indeed somewhere in the chunk-streamer.cpp. Didn't try to enable chunk-streaming though.

@VinDieseLL
Copy link

VinDieseLL commented Jan 29, 2018

New problem.`[21:36:30] [debug] Server crashed due to an unknown error
[21:36:30] [debug] Native backtrace:
[21:36:30] [debug] #0 f739e180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[21:36:30] [debug] #1 f7396064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[21:36:30] [debug] #2 f7396d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[21:36:30] [debug] #3 f7398cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[21:36:30] [debug] #4 f739d4d5 in ?? () from plugins/crashdetect.so
[21:36:30] [debug] #5 f7794cb0 in ?? ()
[21:36:30] [debug] #6 f7794c89 in ?? ()
[21:36:30] [debug] #7 f73f1ea9 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] #8 f73f3407 in abort () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] #9 f742d37c in ?? () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] #10 f74332f7 in ?? () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] #11 f7434406 in ?? () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] #12 f765dd88 in _ZdlPv () from /usr/lib32/libstdc++.so.6
[21:36:30] [debug] #13 f722b7c9 in _ZN9__gnu_cxx13new_allocatorIN5boost9unordered6detail10ptr_bucketEE10deallocateEPS4_j () from plugins/streamer-debug.so
[21:36:30] [debug] #14 f722b7fa in _ZN5boost9unordered6detail16allocator_traitsISaINS1_10ptr_bucketEEE10deallocateERS4_PS3_j () from plugins/streamer-debug.so
[21:36:30] [debug] #15 f723072e in _ZN5boost9unordered6detail5tableINS1_3mapISaISt4pairIKiNS_13intrusive_ptrIN4Item6ObjectEEEEEiS9_NS_4hashIiEESt8equal_toIiEEEE15destroy_bucketsEv () from plugins/streamer-debug.so
[21:36:30] [debug] #16 f7230789 in _ZN5boost9unordered6detail5tableINS1_3mapISaISt4pairIKiNS_13intrusive_ptrIN4Item6ObjectEEEEEiS9_NS_4hashIiEESt8equal_toIiEEEE14delete_bucketsEv () from plugins/streamer-debug.so
[21:36:30] [debug] #17 f72307f7 in _ZN5boost9unordered6detail5tableINS1_3mapISaISt4pairIKiNS_13intrusive_ptrIN4Item6ObjectEEEEEiS9_NS_4hashIiEESt8equal_toIiEEEED2Ev () from plugins/streamer-debug.so
[21:36:30] [debug] #18 f723088f in _ZN5boost9unordered6detail10table_implINS1_3mapISaISt4pairIKiNS_13intrusive_ptrIN4Item6ObjectEEEEEiS9_NS_4hashIiEESt8equal_toIiEEEED1Ev () from plugins/streamer-debug.so
[21:36:30] [debug] #19 f72308b3 in _ZN5boost9unordered13unordered_mapIiNS_13intrusive_ptrIN4Item6ObjectEEENS_4hashIiEESt8equal_toIiESaISt4pairIKiS5_EEED1Ev () from plugins/streamer-debug.so
[21:36:30] [debug] #20 f72309b4 in _ZN4CellD1Ev () from plugins/streamer-debug.so
[21:36:30] [debug] #21 f7230aee in Z21intrusive_ptr_releaseI4CellEvPT () from plugins/streamer-debug.so
[21:36:30] [debug] #22 f7230b28 in _ZN5boost13intrusive_ptrI4CellED1Ev () from plugins/streamer-debug.so
[21:36:30] [debug] #23 f725df25 in ZN5boost13intrusive_ptrI4CellEaSERKS2 () from plugins/streamer-debug.so
[21:36:30] [debug] #24 f723e03a in _ZN4Grid9addObjectERKN5boost13intrusive_ptrIN4Item6ObjectEEE () from plugins/streamer-debug.so
[21:36:30] [debug] #25 f723e2d1 in _ZN4Grid12removeObjectERKN5boost13intrusive_ptrIN4Item6ObjectEEEb () from plugins/streamer-debug.so
[21:36:30] [debug] #26 f72b0929 in _ZN8Streamer22processAttachedObjectsEv () from plugins/streamer-debug.so
[21:36:30] [debug] #27 f72b3db3 in _ZN8Streamer18processActiveItemsEv () from plugins/streamer-debug.so
[21:36:30] [debug] #28 f72bd4e9 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer-debug.so
[21:36:30] [debug] #29 f726441c in ProcessTick () from plugins/streamer-debug.so
[21:36:30] [debug] #30 080d1ce2 in ?? () from ./samp03svr
[21:36:30] [debug] #31 080aef3a in ?? () from ./samp03svr
[21:36:30] [debug] #32 080aa13a in ?? () from ./samp03svr
[21:36:30] [debug] #33 f73de637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] Registers:
[21:36:30] [debug] EAX: 00000000 EBX: 00001754 ECX: 00001754 EDX: 00000006
[21:36:30] [debug] ESI: f7578000 EDI: ffaf2004 EBP: ffaf2208 ESP: ffaf1f48
[21:36:30] [debug] EIP: f7794c89 EFLAGS: 00000202
[21:36:30] [debug] Stack:
[21:36:30] [debug] ESP+00000000: ffaf2208 00000006 00001754 f73f1ea9
[21:36:30] [debug] ESP+00000020: 00000000 31382030 38373235 20203638
[21:36:30] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[21:36:30] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[21:36:30] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[21:36:30] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[21:36:30] [debug] ESP+000000c0: 756e672d 2d646c2f 33322e32 0a6f732e
[21:36:30] [debug] ESP+000000e0: 77722030 3020702d 33323030 20303030
[21:36:30] [debug] ESP+00000100: 20202020 20202020 20202020 20202020
[21:36:30] [debug] ESP+00000120: 6c2d3638 78756e69 756e672d 2d646c2f
[21:36:30] [debug] ESP+00000140: f73dd880 00000007 f73f32b7 00000007
[21:36:30] [debug] ESP+00000160: ffaf3bca 0000000b f7525e64 00000003
[21:36:30] [debug] ESP+00000180: ffaf2247 00000008 f7525e6f 00000005
[21:36:30] [debug] ESP+000001a0: 080e63a0 f73c2ff4 f7525e6f 00000005
[21:36:30] [debug] ESP+000001c0: ffaf22ec f5704c6c ffaf2247 00000008
[21:36:30] [debug] ESP+000001e0: ffaf2198 f74e322c f7525e69 00000004
[21:36:30] [debug] ESP+00000200: ffaf2168 f724a7b8 f7522926 0000001c
[21:36:30] [debug] ESP+00000220: ffaf2198 f724a837 f7525e64 00000003
[21:36:30] [debug] ESP+00000240: ffaf2198 f7241199 ffaf3bca 0000000b
[21:36:30] [debug] ESP+00000260: f73f40f9 f7578000 f7525e54 0000000e
[21:36:30] [debug] ESP+00000280: 00000902 f742d140 ffaf223c 00000000
[21:36:30] [debug] ESP+000002a0: f7788000 00000049 ffaf2238 f73785c8
[21:36:30] [debug] ESP+000002c0: 09833ae0 f74332f7 00000002 f7525e54
[21:36:30] [debug] ESP+000002e0: 00000010 00000000 ffaf2460 f73785c8
[21:36:30] [debug] ESP+00000300: 32663261 00383633 0a2f2318 00000050
[21:36:30] [debug] ESP+00000320: ffaf2288 f724b352 f7578780 f7578000
[21:36:30] [debug] ESP+00000340: 00000001 f724b385 f7578000 ffaf22e4
[21:36:30] [debug] ESP+00000360: f7433b19 f7762000 00000012 0a2f2320
[21:36:30] [debug] ESP+00000380: ffaf22f8 f72613a9 f737fc78 f765dd76
[21:36:30] [debug] ESP+000003a0: ffaf2308 f722b7fa 0c333777 0a2f2320
[21:36:30] [debug] ESP+000003c0: ffaf2348 f723072e 0c333777 0a2f2320
[21:36:30] [debug] ESP+000003e0: 0a2f2364 0a2f2364 0a2f2364 00000000
[21:36:30] [debug] Loaded modules:
[21:36:30] [debug] 00000000 - 00187dc3 samp03svr
[21:36:30] [debug] f7794000 - f7794e26
[21:36:30] [debug] f7783000 - f7785a04 /lib/i386-linux-gnu/libdl.so.2
[21:36:30] [debug] f7766000 - f77816ef /lib/i386-linux-gnu/libpthread.so.0
[21:36:30] [debug] f75ef000 - f776fb3f /usr/lib32/libstdc++.so.6
[21:36:30] [debug] f759a000 - f75ee010 /lib/i386-linux-gnu/libm.so.6
[21:36:30] [debug] f757d000 - f75991e4 /lib/i386-linux-gnu/libgcc_s.so.1
[21:36:30] [debug] f73c6000 - f7582b6b /lib/i386-linux-gnu/libc.so.6
[21:36:30] [debug] f7796000 - f77b97f4 /lib/ld-linux.so.2
[21:36:30] [debug] f7380000 - f73c2ac4 plugins/crashdetect.so
[21:36:30] [debug] f70df000 - f738416f plugins/streamer-debug.so
[21:36:30] [debug] f70d6000 - f70dd714 /lib/i386-linux-gnu/librt.so.1
[21:36:30] [debug] f6e87000 - f70d66fe plugins/mysql.so
[21:36:30] [debug] f6474000 - f64852ec /lib/i386-linux-gnu/libnss_files.so.2
[21:36:30] [debug] f6463000 - f6472390 plugins/sscanf.so
[21:36:30] [debug] f7789000 - f77902bd plugins/timerfix.so
[21:36:30] [debug] f645f000 - f6460f70 plugins/nativechecker.so

@samp-incognito
Copy link
Owner

@IstuntmanI: I think that's the case as well. I don't know how many people are using v2.9.2, but I haven't seen any reports of crashes yet.

@VinDieseLL: It looks like you're still using that same version. You still have streamer-debug.so loaded.

@rt-2
Copy link

rt-2 commented May 13, 2018

Hi,
I know its been a long time, but...
I have come to a bizarre conclusion. Since there was no crash when trying with procdump.exe, I felt it was safe to update to the last version.
Since I updated, again, I was not able to keep the server up for more than 2-3 days maximum EVERYTIME.
Then I tried to check the problem with procdump, and AGAIN, there was no crash at all.
My SOLUTION: Run the server with procdump.exe, so I cannot know the reason of the crash, but SOMEHOW it doesn't happens when I'm trying to detect it.
I don't know what to think, but I have a solution for now.
Thank you,
rt-2

@Romz24
Copy link

Romz24 commented May 13, 2018

At me too on the last version all works without failures.

@samp-incognito samp-incognito changed the title Server crashing on streamer automatic update. Chunk streamer crashes server on automatic update Jul 15, 2018
@VenomSA
Copy link

VenomSA commented Feb 2, 2021

I am on v.2.9.4 and chunk streaming still crashes the server until a random amount of time (1-4 weeks of no interruption).
If @IstuntmanI or incognito are able to compile a debug version of v2.9.4 and post it here would be very happy to help in solving this issue once and for all.

I will also be able to run Valgrind with the debug version of the plugin and see what happens.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests