Server crashes during object edit -
Kane - 13.06.2017
PHP Code:
Streamer_Update(playerid);
CarData[realid][carPlaceObject][cslotid] = CreateDynamicObject(GetGunObjectID(gunid), Pos[0], Pos[1], Pos[2], 0.0, 0.0, 0.0, World);
AttachDynamicObjectToVehicle(CarData[realid][carPlaceObject][cslotid], mycar, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
EditDynamicObject(playerid, CarData[realid][carPlaceObject][cslotid]);
Server crashes when the command is performed.
Don't know why this crashes the server.
Server log:
PHP Code:
[23:01:53] [debug] Server crashed due to an unknown error
[23:01:53] [debug] Native backtrace:
[23:01:53] [debug] #0 e105d180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[23:01:53] [debug] #1 e1055064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[23:01:53] [debug] #2 e1055d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[23:01:53] [debug] #3 e1057cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[23:01:53] [debug] #4 e105c4d5 in ?? () from plugins/crashdetect.so
[23:01:53] [debug] #5 e13b3410 in __kernel_rt_sigreturn () from linux-gate.so.1
[23:01:53] [debug] #6 e0fca0ce in _ZN4Grid31processDiscoveredCellsForPlayerER6PlayerRSt6vectorIN5boost13intrusive_ptrI4CellEESaIS6_EERKNS3_9unordered13unordered_setISt4pairIiiENS3_4hashISD_EESt8equal_toISD_ESaISD_EEE () from plugins/streamer.so
[23:01:53] [debug] #7 e0fcc187 in _ZN4Grid21findAllCellsForPlayerER6PlayerRSt6vectorIN5boost13intrusive_ptrI4CellEESaIS6_EE () from plugins/streamer.so
[23:01:53] [debug] #8 e1019333 in _ZN8Streamer19performPlayerUpdateER6Playerb () from plugins/streamer.so
[23:01:53] [debug] #9 e101a277 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
Re: Server crashes during object edit -
Abagail - 13.06.2017
Are you compiling your script with debug flags(-d3)?
Re: Server crashes during object edit -
Kane - 13.06.2017
I'm not, but when I do, the results are no different.
PHP Code:
[17:49:40] [debug] Server crashed due to an unknown error
[17:49:40] [debug] Native backtrace:
[17:49:40] [debug] #0 e4cbf180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[17:49:40] [debug] #1 e4cb7064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[17:49:40] [debug] #2 e4cb7d64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[17:49:40] [debug] #3 e4cb9cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[17:49:40] [debug] #4 e4cbe4d5 in ?? () from plugins/crashdetect.so
[17:49:40] [debug] #5 e5015410 in __kernel_rt_sigreturn () from linux-gate.so.1
[17:49:40] [debug] #6 e4c2c0ce in _ZN4Grid31processDiscoveredCellsForPlayerER6PlayerRSt6vectorIN5boost13intrusive_ptrI4CellEESaIS6_EERKNS3_9unordered13unordered_setISt4pairIiiENS3_4hashISD_EESt8equal_toISD_ESaISD_EEE () from plugins/streamer.so
[17:49:40] [debug] #7 e4c2e187 in _ZN4Grid21findAllCellsForPlayerER6PlayerRSt6vectorIN5boost13intrusive_ptrI4CellEESaIS6_EE () from plugins/streamer.so
[17:49:40] [debug] #8 e4c7b333 in _ZN8Streamer19performPlayerUpdateER6Playerb () from plugins/streamer.so
[17:49:40] [debug] #9 e4c7c277 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[17:49:40] [debug] #10 e4c39a85 in ProcessTick () from plugins/streamer.so
[17:49:40] [debug] #11 080d1ce2 in ?? () from ./sampsvr-port_9886
[17:49:40] [debug] #12 080aef6c in ?? () from ./sampsvr-port_9886
[17:49:40] [debug] #13 080aa13a in ?? () from ./sampsvr-port_9886
[17:49:40] [debug] #14 e4d00a63 in __libc_start_main () from /lib32/libc.so.6
[17:49:40] [debug] #15 0804b4e1 in ?? () from ./sampsvr-port_9886
[17:49:40] [debug] Registers:
[17:49:40] [debug] EAX: 00000000 EBX: e4c9f0a0 ECX: fc195f38 EDX: 08cc1a38
[17:49:40] [debug] ESI: fc195f38 EDI: 08b33ca8 EBP: fc195e78 ESP: fc195d50
[17:49:40] [debug] EIP: e4c2c0ce EFLAGS: 00010202
[17:49:40] [debug] Stack:
[17:49:40] [debug] ESP+00000000: fc195e68 08b34038 fc195e68 e4d5ab1c
[17:49:40] [debug] ESP+00000020: 3f7d2cae 08b33258 00000000 e4d5ab1c
[17:49:40] [debug] ESP+00000040: fc195ef0 e5036d20 00000010 e4d59ea5
[17:49:40] [debug] ESP+00000060: 00020000 00002710 00000048 0000000a
[17:49:40] [debug] ESP+00000080: 00000000 00000001 00000018 e4e90000
[17:49:40] [debug] ESP+000000a0: 00096798 0000002c 00000015 e4fe2000
[17:49:40] [debug] ESP+000000c0: c0dd5b96 fc195e4c 08bb9238 e4c9f0a0
[17:49:40] [debug] ESP+000000e0: e4e90420 fc195f38 00195f68 43960000
[17:49:40] [debug] ESP+00000100: e4d5cb87 e4fe2000 00000010 e4f43044
[17:49:40] [debug] ESP+00000120: 08c20304 08b33ca8 fc195f68 e4c2e187
[17:49:40] [debug] ESP+00000140: 00000015 00000008 0164dabc e4c8c2f8
[17:49:40] [debug] ESP+00000160: 00000011 00000009 08b33cd0 08c20388
[17:49:40] [debug] ESP+00000180: 08c271c4 08b33cb8 0000001d 00000008
[17:49:40] [debug] ESP+000001a0: 00000672 fffff862 fc195f08 e4c1a701
[17:49:40] [debug] ESP+000001c0: 00000000 00000008 00000002 e4c1b54e
[17:49:40] [debug] ESP+000001e0: 00000008 00000002 fc195f00 00000011
[17:49:40] [debug] ESP+00000200: 44e004fa c501b3aa e4c2de20 e4c9f0a0
[17:49:40] [debug] ESP+00000220: 08b33ca8 08c20304 fc195fc4 fc195fd8
[17:49:40] [debug] ESP+00000240: 00000000 fc195fc4 e4ca08c0 01010000
[17:49:40] [debug] ESP+00000260: 00000000 00000000 00000000 00000000
[17:49:40] [debug] ESP+00000280: 00000000 00000000 00000000 4502c27d
[17:49:40] [debug] ESP+000002a0: 00000000 00000000 00000000 00000000
[17:49:40] [debug] ESP+000002c0: 08c20300 08c202f8 fc196068 e4c7c277
[17:49:40] [debug] ESP+000002e0: 00000000 00000000 00000000 fc196050
[17:49:40] [debug] ESP+00000300: 00289431 2e94fe1e e4c7c15b e4c9f0a0
[17:49:40] [debug] ESP+00000320: 08b33df0 08b38734 fc196088 080d1ce2
[17:49:40] [debug] ESP+00000340: 08b325e0 3baa8eb4 e4d8f2d6 3baa8eb4
[17:49:40] [debug] ESP+00000360: 08b307e0 00000000 fc1961f8 080aa13a
[17:49:40] [debug] ESP+00000380: 00000000 00000000 00000006 00000010
[17:49:40] [debug] ESP+000003a0: e4fe8ad8 e4fdf43c e4fe0b58 01000000
[17:49:40] [debug] ESP+000003c0: 656d6167 65646f6d e4003531 e4fe9414
[17:49:40] [debug] ESP+000003e0: e4fe7e84 e4fe7ef0 e4fe7da0 e4d18243
[17:49:40] [debug] Loaded modules:
[17:49:40] [debug] 00000000 - 00187dc3 sampsvr-port_9886
[17:49:40] [debug] e5017000 - e501750c linux-gate.so.1
[17:49:40] [debug] e5006000 - e500881b /lib32/libdl.so.2
[17:49:40] [debug] e4fea000 - e5004d97 /lib32/libpthread.so.0
[17:49:40] [debug] e4ef8000 - e4ff1ce6 /usr/lib32/libstdc++.so.6
[17:49:40] [debug] e4eb2000 - e4ef6b97 /lib32/libm.so.6
[17:49:40] [debug] e4e95000 - e4eb13c4 /usr/lib32/libgcc_s.so.1
[17:49:40] [debug] e4ce7000 - e4e9c383 /lib32/libc.so.6
[17:49:40] [debug] e5016000 - e5036cf0 /lib/ld-linux.so.2
[17:49:40] [debug] e4ca1000 - e4ce3ac4 plugins/crashdetect.so
[17:49:40] [debug] e4be7000 - e4ca1039 plugins/streamer.so
[17:49:40] [debug] e4bd6000 - e4bdd09f /lib32/librt.so.1
[17:49:40] [debug] e4b64000 - e4bd63eb plugins/mysql.so
[17:49:40] [debug] e4962000 - e4b63208 /usr/lib/libmysqlclient.so.18
[17:49:40] [debug] e4756000 - e47613ef /lib32/libnss_files.so.2
[17:49:40] [debug] e454d000 - e45557c4 plugins/Whirlpool.so
[17:49:40] [debug] e453d000 - e454c1d4 plugins/sscanf.so
[17:49:40] [debug] e4536000 - e453a9bf /lib32/libnss_dns.so.2
[17:49:40] [debug] e101b000 - e1031253 /lib32/libresolv.so.2
Re: Server crashes during object edit -
Kane - 13.06.2017
Note: Without it as a dynamic object, it doesn't crash the server but it doesn't let me edit the object either. The GUI pops up but it doesn't let me move it / adjust.
Re: Server crashes during object edit -
Kane - 14.06.2017
Went through the code and the problem is with EditDynamicObject.
Anyone know why this is happening?
Re: Server crashes during object edit -
AfiqIqbal - 14.06.2017
Where did you put the EditDynamicObject?
Re: Server crashes during object edit -
Kane - 14.06.2017
It's in the post!!!!!
PHP Code:
CarData[realid][carPlaceObject][cslotid] = CreateDynamicObject(GetGunObjectID(gunid), Pos[0], Pos[1], Pos[2], 0.0, 0.0, 0.0, World);
AttachDynamicObjectToVehicle(CarData[realid][carPlaceObject][cslotid], mycar, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
EditDynamicObject(playerid, CarData[realid][carPlaceObject][cslotid]);
Re: Server crashes during object edit -
Kane - 15.06.2017
Anyone?
Re: Server crashes during object edit -
JasonRiggs - 15.06.2017
Are you sure that you're using the latest streamer version??
Re: Server crashes during object edit -
Kane - 15.06.2017
That was the problem apparently. I was on 2.9.0. Latest is 2.9.1.
This fixed the crashing but the GUI is literally frozen and you can't move the object.