Server crashes during object edit
#1

PHP Code:
Streamer_Update(playerid);
CarData[realid][carPlaceObject][cslotid] = CreateDynamicObject(GetGunObjectID(gunid), Pos[0], Pos[1], Pos[2], 0.00.00.0World);
AttachDynamicObjectToVehicle(CarData[realid][carPlaceObject][cslotid], mycar0.00.00.00.00.00.0);
EditDynamicObject(playeridCarData[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] [debugServer crashed due to an unknown error
[23:01:53] [debugNative 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 
Reply
#2

Are you compiling your script with debug flags(-d3)?
Reply
#3

I'm not, but when I do, the results are no different.
PHP Code:
[17:49:40] [debugServer crashed due to an unknown error
[17:49:40] [debugNative 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] [debugRegisters:
[
17:49:40] [debugEAX00000000 EBXe4c9f0a0 ECXfc195f38 EDX08cc1a38
[17:49:40] [debugESIfc195f38 EDI08b33ca8 EBPfc195e78 ESPfc195d50
[17:49:40] [debugEIPe4c2c0ce EFLAGS00010202
[17:49:40] [debugStack:
[
17:49:40] [debugESP+00000000fc195e68 08b34038 fc195e68 e4d5ab1c
[17:49:40] [debugESP+000000203f7d2cae 08b33258 00000000 e4d5ab1c
[17:49:40] [debugESP+00000040fc195ef0 e5036d20 00000010 e4d59ea5
[17:49:40] [debugESP+0000006000020000 00002710 00000048 0000000a
[17:49:40] [debugESP+0000008000000000 00000001 00000018 e4e90000
[17:49:40] [debugESP+000000a000096798 0000002c 00000015 e4fe2000
[17:49:40] [debugESP+000000c0c0dd5b96 fc195e4c 08bb9238 e4c9f0a0
[17:49:40] [debugESP+000000e0e4e90420 fc195f38 00195f68 43960000
[17:49:40] [debugESP+00000100e4d5cb87 e4fe2000 00000010 e4f43044
[17:49:40] [debugESP+0000012008c20304 08b33ca8 fc195f68 e4c2e187
[17:49:40] [debugESP+0000014000000015 00000008 0164dabc e4c8c2f8
[17:49:40] [debugESP+0000016000000011 00000009 08b33cd0 08c20388
[17:49:40] [debugESP+0000018008c271c4 08b33cb8 0000001d 00000008
[17:49:40] [debugESP+000001a000000672 fffff862 fc195f08 e4c1a701
[17:49:40] [debugESP+000001c000000000 00000008 00000002 e4c1b54e
[17:49:40] [debugESP+000001e000000008 00000002 fc195f00 00000011
[17:49:40] [debugESP+0000020044e004fa c501b3aa e4c2de20 e4c9f0a0
[17:49:40] [debugESP+0000022008b33ca8 08c20304 fc195fc4 fc195fd8
[17:49:40] [debugESP+0000024000000000 fc195fc4 e4ca08c0 01010000
[17:49:40] [debugESP+0000026000000000 00000000 00000000 00000000
[17:49:40] [debugESP+0000028000000000 00000000 00000000 4502c27d
[17:49:40] [debugESP+000002a000000000 00000000 00000000 00000000
[17:49:40] [debugESP+000002c008c20300 08c202f8 fc196068 e4c7c277
[17:49:40] [debugESP+000002e000000000 00000000 00000000 fc196050
[17:49:40] [debugESP+0000030000289431 2e94fe1e e4c7c15b e4c9f0a0
[17:49:40] [debugESP+0000032008b33df0 08b38734 fc196088 080d1ce2
[17:49:40] [debugESP+0000034008b325e0 3baa8eb4 e4d8f2d6 3baa8eb4
[17:49:40] [debugESP+0000036008b307e0 00000000 fc1961f8 080aa13a
[17:49:40] [debugESP+0000038000000000 00000000 00000006 00000010
[17:49:40] [debugESP+000003a0e4fe8ad8 e4fdf43c e4fe0b58 01000000
[17:49:40] [debugESP+000003c0656d6167 65646f6d e4003531 e4fe9414
[17:49:40] [debugESP+000003e0e4fe7e84 e4fe7ef0 e4fe7da0 e4d18243
[17:49:40] [debugLoaded modules:
[
17:49:40] [debug00000000 00187dc3 sampsvr-port_9886
[17:49:40] [debuge5017000 e501750c linux-gate.so.1
[17:49:40] [debuge5006000 e500881b /lib32/libdl.so.2
[17:49:40] [debuge4fea000 e5004d97 /lib32/libpthread.so.0
[17:49:40] [debuge4ef8000 e4ff1ce6 /usr/lib32/libstdc++.so.6
[17:49:40] [debuge4eb2000 e4ef6b97 /lib32/libm.so.6
[17:49:40] [debuge4e95000 e4eb13c4 /usr/lib32/libgcc_s.so.1
[17:49:40] [debuge4ce7000 e4e9c383 /lib32/libc.so.6
[17:49:40] [debuge5016000 e5036cf0 /lib/ld-linux.so.2
[17:49:40] [debuge4ca1000 e4ce3ac4 plugins/crashdetect.so
[17:49:40] [debuge4be7000 e4ca1039 plugins/streamer.so
[17:49:40] [debuge4bd6000 e4bdd09f /lib32/librt.so.1
[17:49:40] [debuge4b64000 e4bd63eb plugins/mysql.so
[17:49:40] [debuge4962000 e4b63208 /usr/lib/libmysqlclient.so.18
[17:49:40] [debuge4756000 e47613ef /lib32/libnss_files.so.2
[17:49:40] [debuge454d000 e45557c4 plugins/Whirlpool.so
[17:49:40] [debuge453d000 e454c1d4 plugins/sscanf.so
[17:49:40] [debuge4536000 e453a9bf /lib32/libnss_dns.so.2
[17:49:40] [debuge101b000 e1031253 /lib32/libresolv.so.2 
Reply
#4

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.
Reply
#5

Went through the code and the problem is with EditDynamicObject.

Anyone know why this is happening?
Reply
#6

Where did you put the EditDynamicObject?
Reply
#7

It's in the post!!!!!
PHP Code:
CarData[realid][carPlaceObject][cslotid] = CreateDynamicObject(GetGunObjectID(gunid), Pos[0], Pos[1], Pos[2], 0.00.00.0World);
                
AttachDynamicObjectToVehicle(CarData[realid][carPlaceObject][cslotid], mycar0.00.00.00.00.00.0);

EditDynamicObject(playeridCarData[realid][carPlaceObject][cslotid]); 
Reply
#8

Anyone?
Reply
#9

Are you sure that you're using the latest streamer version??
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)