SA-MP Forums

Go Back   SA-MP Forums > SA-MP > Bug Reports

Reply
 
Thread Tools Display Modes
Old 03/09/2018, 06:43 PM   #11
NeXTGoD
Little Clucker
 
NeXTGoD's Avatar
 
Join Date: Jul 2018
Posts: 45
Reputation: 4
Default Re: Server crash when destroyvehicle

Quote:
Originally Posted by RogueDrifter View Post
Show server logs using crashdetect.
Code:
[03/09/2018 16:05:40] OnPlayerSpawn(1)
[03/09/2018 16:05:40] CountdownPlayer(1,3)
[03/09/2018 16:05:43] OnVehicleDeath(4)
[03/09/2018 16:05:43] CountdownPlayer(1,2)
[03/09/2018 16:05:43] [debug] Server crashed due to an unknown error
[03/09/2018 16:05:44] [debug] Native backtrace:
[03/09/2018 16:05:44] [debug] #0 b7355ed6 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] #1 b734e210 in _ZN18CrashDetectHandler20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] #2 b734f05c in _ZN18CrashDetectHandler20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] #3 b734fbb6 in _ZN18CrashDetectHandler7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] #4 b73555c2 in ?? () from plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] #5 b76fe600 in __kernel_rt_sigreturn () from linux-gate.so.1
[03/09/2018 16:05:44] [debug] #6 0814b4bc in ?? () from ./samp8888_6551
[03/09/2018 16:05:44] [debug] #7 0814cccf in ?? () from ./samp8888_6551
[03/09/2018 16:05:44] [debug] #8 080af078 in ?? () from ./samp8888_6551
[03/09/2018 16:05:44] [debug] #9 080aa13a in ?? () from ./samp8888_6551
[03/09/2018 16:05:44] [debug] #10 b7396723 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[03/09/2018 16:05:44] [debug] #11 0804b4e1 in ?? () from ./samp8888_6551
[03/09/2018 16:05:44] [debug] Registers:
[03/09/2018 16:05:44] [debug] EAX: 447a0000 EBX: 0a2ff5b0 ECX: 00000000 EDX: c511ac1b
[03/09/2018 16:05:44] [debug] ESI: 00000004 EDI: 0a2ff67b EBP: bfcc5028 ESP: bfcc5000
[03/09/2018 16:05:44] [debug] EIP: 0814b4bc EFLAGS: 00010246
[03/09/2018 16:05:44] [debug] Stack:
[03/09/2018 16:05:44] [debug] ESP+00000000: 0a2ff5bc 00000000 00000040 00000000
[03/09/2018 16:05:44] [debug] ESP+00000020: 00000002 0a37cf18 bfcc5048 0814cccf
[03/09/2018 16:05:44] [debug] ESP+00000040: 00000000 08159c53 bfcc5078 080af078
[03/09/2018 16:05:44] [debug] ESP+00000060: 081a18b4 00000000 00000000 004c4b40
[03/09/2018 16:05:44] [debug] ESP+00000080: 0a168e78 08159c53 00000006 08159c6d
[03/09/2018 16:05:44] [debug] ESP+000000a0: bfcc50bc b76646d6 b76c8000 b76302f3
[03/09/2018 16:05:44] [debug] ESP+000000c0: 00010000 000022b8 00000032 0163044b
[03/09/2018 16:05:44] [debug] ESP+000000e0: b76c8000 b76c8000 b76c95a0 b75d60a9
[03/09/2018 16:05:44] [debug] ESP+00000100: 080494b0 b76c9784 b74edd64 081a1880
[03/09/2018 16:05:44] [debug] ESP+00000120: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+00000140: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+00000160: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+00000180: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+000001a0: b74ed3a4 b7720000 081505cb b74ed000
[03/09/2018 16:05:44] [debug] ESP+000001c0: 00000001 bfcc5254 bfcc525c b770de9a
[03/09/2018 16:05:44] [debug] ESP+000001e0: 080494b0 b74ed000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+00000200: 00000000 00000000 00000001 0804b4c0
[03/09/2018 16:05:44] [debug] ESP+00000220: 00000001 0804b4c0 00000000 0804b4e1
[03/09/2018 16:05:44] [debug] ESP+00000240: 081505b0 b770e350 bfcc524c 0000001c
[03/09/2018 16:05:44] [debug] ESP+00000260: bfcc5eb1 bfcc5ec1 bfcc5ee6 bfcc5ef0
[03/09/2018 16:05:44] [debug] ESP+00000280: bfcc5f62 bfcc5f6f bfcc5fa6 bfcc5fc5
[03/09/2018 16:05:44] [debug] ESP+000002a0: 00000021 b76fe000 00000010 bfebfbff
[03/09/2018 16:05:44] [debug] ESP+000002c0: 00000003 08048034 00000004 00000020
[03/09/2018 16:05:44] [debug] ESP+000002e0: 00000008 00000000 00000009 0804b4c0
[03/09/2018 16:05:44] [debug] ESP+00000300: 0000000d 000003e8 0000000e 000003e8
[03/09/2018 16:05:44] [debug] ESP+00000320: 0000001f bfcc5fe8 0000000f bfcc534b
[03/09/2018 16:05:44] [debug] ESP+00000340: c40c55b9 d0b79f9a 6964cb19 00363836
[03/09/2018 16:05:44] [debug] ESP+00000360: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+00000380: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+000003a0: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+000003c0: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] ESP+000003e0: 00000000 00000000 00000000 00000000
[03/09/2018 16:05:44] [debug] Loaded modules:
[03/09/2018 16:05:44] [debug] 00000000 - 00187d1f samp8888_6551
[03/09/2018 16:05:44] [debug] b7700000 - b7700704 linux-gate.so.1
[03/09/2018 16:05:44] [debug] b76e8000 - b76ea81f /lib/i386-linux-gnu/libdl.so.2
[03/09/2018 16:05:44] [debug] b76cd000 - b76e72f3 /lib/i386-linux-gnu/libpthread.so.0
[03/09/2018 16:05:44] [debug] b7553000 - b76d63b3 /usr/lib/i386-linux-gnu/libstdc++.so.6
[03/09/2018 16:05:44] [debug] b750e000 - b7551ab7 /lib/i386-linux-gnu/libm.so.6
[03/09/2018 16:05:44] [debug] b74f1000 - b750d3c4 /lib/i386-linux-gnu/libgcc_s.so.1
[03/09/2018 16:05:44] [debug] b737d000 - b74f8ddb /lib/i386-linux-gnu/libc.so.6
[03/09/2018 16:05:44] [debug] b76ff000 - b771fd6c /lib/ld-linux.so.2
[03/09/2018 16:05:44] [debug] b7337000 - b7378e08 plugins/crashdetect.so
[03/09/2018 16:05:44] [debug] b7272000 - b7336bcf plugins/streamer.so
[03/09/2018 16:05:44] [debug] b76f2000 - b76f9093 /lib/i386-linux-gnu/librt.so.1
[03/09/2018 16:05:44] [debug] b703b000 - b7278854 plugins/YSF.so
[03/09/2018 16:05:44] [debug] b702e000 - b7039790 plugins/sscanf.so
[03/09/2018 16:05:44] [debug] b7028000 - b702b5d8 plugins/MapAndreas.so
[03/09/2018 16:05:44] [debug] b6fe5000 - b6ff03ef /lib/i386-linux-gnu/libnss_files.so.2
__________________
.

My SAMP Server:



.
NeXTGoD is offline   Reply With Quote
Old 07/09/2018, 10:26 PM   #12
NeXTGoD
Little Clucker
 
NeXTGoD's Avatar
 
Join Date: Jul 2018
Posts: 45
Reputation: 4
Default Re: Server crash when destroyvehicle

Quote:
Originally Posted by RogueDrifter View Post
Show server logs using crashdetect.
UPDATE: Day 4 has passed without any crashes, so I think I've fixed it with ( vehicleid != INVALID_VEHICLE_ID ) check before destroying the vehicle.
__________________
.

My SAMP Server:



.
NeXTGoD is offline   Reply With Quote
Old 09/09/2018, 04:33 AM   #13
ashleymeah
Little Clucker
 
ashleymeah's Avatar
 
Join Date: Sep 2013
Location: London, UK
Posts: 9
Reputation: 0
Default Re: Server crash when destroyvehicle

This is interesting, this is a few years ago but I ran a script that did this with no issue but another option here to stay clear of this issue is to destroy the vehicle in "OnVehicleSpawn" with a variable to allow the first spawn.
__________________


samp.nl-roleplay.com || Join us on discord ! || https://discord.gg/CPgjBfU
ashleymeah is offline   Reply With Quote
Old 09/09/2018, 06:24 AM   #14
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,469
Reputation: 525
Default Re: Server crash when destroyvehicle

Quote:
Originally Posted by ashleymeah View Post
This is interesting, this is a few years ago but I ran a script that did this with no issue but another option here to stay clear of this issue is to destroy the vehicle in "OnVehicleSpawn" with a variable to allow the first spawn.
No, the solution is to check for the invalid vehicle before destroying it obviously...
Sew_Sumi is offline   Reply With Quote
Old 10/09/2018, 01:13 AM   #15
Graber
Big Clucker
 
Graber's Avatar
 
Join Date: Mar 2013
Location: Germany
Posts: 106
Reputation: 111
Default Re: Server crash when destroyvehicle

The original error shows a vehicle being destroyed inside a foreach loop, in other words, removing an item from an iterator inside a loop, which is known with YSI to cause problems.

Although maybe the error could be a result of a SA-MP bug, but first a repro should be made without any other includes.
Graber is offline   Reply With Quote
Old 16/09/2018, 09:17 AM   #16
AmigaBlizzard
Huge Clucker
 
Join Date: Jul 2012
Posts: 320
Reputation: 60
Default Re: Server crash when destroyvehicle

Or you could set a flag for that vehicle and destroy it under OnVehicleSpawn in case the flag was set.
AmigaBlizzard is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Crash detect , server crash Debug. whats wrong? MarwanCartman Server Support 4 10/05/2015 11:14 AM
[HELP]Server Crash - Located crash line with CrashDETECT - Guest4390857394857 Server Support 4 05/09/2014 04:37 AM
DestroyVehicle crash. MP2 Bug Reports 2 24/01/2013 07:02 PM
Fatal Game crash, Not client or server crash SourceCode Scripting Help 3 11/10/2011 05:13 PM
'SERVER: Unknown command' after used DestroyVehicle(); Faust Help Archive 12 25/02/2009 04:16 PM


All times are GMT. The time now is 12:19 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.