SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 08/09/2017, 10:14 AM   #1701
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 685
Reputation: 51
Default Re: YSF - kurta999's version

When I'm running my server on Windows, R19 works just fine. I try running it on linux and it crashes all the time. I tried the build you provided above, but it was of no help. R18 it is for now then.

Also the VPS is using Ubuntu 16.04.2 LTS.

Here's crashdetect log:
Code:
[11:41:48] [debug] Server crashed due to an unknown error
[11:41:48] [debug] Native backtrace:
[11:41:48] [debug] #0 f7356180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[11:41:48] [debug] #1 f734e064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #2 f734ed64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #3 f7350cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #4 f73554d5 in ?? () from plugins/crashdetect.so
[11:41:48] [debug] #5 f774bbd0 in ?? ()
[11:41:48] [debug] #6 f774bbe9 in ?? ()
[11:41:48] [debug] #7 f73aaea9 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] #8 f73ac407 in abort () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] #9 f7619d35 in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #10 f7617833 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #11 f76178ad in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #12 f7617bce in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #13 f60984bf in _ZNSt10_HashtableItSt4pairIKtSt13unordered_mapIhSsSt4hashIhESt8equal_toIhESaIS0_IKhSsEEEESaISB_ENSt8__detail10_Select1stES5_ItES3_ItENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNSD_10_Hash_nodeISB_Lb0EEE () from plugins/YSF.so
[11:41:48] [debug] #14 f609862a in _ZNSt8__detail9_Map_baseItSt4pairIKtSt13unordered_mapIhSsSt4hashIhESt8equal_toIhESaIS1_IKhSsEEEESaISC_ENS_10_Select1stES6_ItES4_ItENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOt () from plugins/YSF.so
[11:41:48] [debug] #15 f6096bed in ?? () from plugins/YSF.so
[11:41:48] [debug] #16 f72a1052 in sampgdk_SetPlayerObjectMaterialText () from plugins/streamer.so
[11:41:48] [debug] #17 f72f7ef7 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
[11:41:48] [debug] #18 f72fb889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
[11:41:48] [debug] #19 f7300404 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[11:41:48] [debug] #20 f72be1d5 in ProcessTick () from plugins/streamer.so
[11:41:48] [debug] #21 080d1ce2 in ?? () from samp03svr
[11:41:48] [debug] #22 080aef6c in ?? () from samp03svr
[11:41:48] [debug] #23 080aa13a in ?? () from samp03svr
[11:41:48] [debug] #24 f7397637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] Registers:
[11:41:48] [debug] EAX: 00000000 EBX: 000048a9 ECX: 000048a9 EDX: 00000006
[11:41:48] [debug] ESI: 081a18ec EDI: ffad87b4 EBP: ffad8888 ESP: ffad86f8
[11:41:48] [debug] EIP: f774bbe9 EFLAGS: 00000206
[11:41:48] [debug] Stack:
[11:41:48] [debug] ESP+00000000: ffad8888 00000006 000048a9 f73aaea9
[11:41:48] [debug] ESP+00000020: 00000000 ffad8788 f7770a74 00000006
[11:41:48] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+000000c0: f7531cc0 f73e947b f7755a90 f75af32c
[11:41:48] [debug] ESP+000000e0: f776e1b8 f737e250 00000001 00000005
[11:41:48] [debug] ESP+00000100: f7531cc0 f73e461d f7770000 f75c432c
[11:41:48] [debug] ESP+00000120: 081a18ec f737d700 f775a80b f771a000
[11:41:48] [debug] ESP+00000140: 09b94288 f73ac2b0 f73ac2b7 f771a000
[11:41:48] [debug] ESP+00000160: 00000000 f76c7e54 f7770000 f75c432c
[11:41:48] [debug] ESP+00000180: f7619beb f771a000 00000000 474e5543
[11:41:48] [debug] ESP+000001a0: f771a000 f76178ad f7619be0 f7761030
[11:41:48] [debug] ESP+000001c0: f771a000 f7617bce 09ec3120 f76168a6
[11:41:48] [debug] ESP+000001e0: ffad8938 f60984bf 09ec3120 00000000
[11:41:48] [debug] ESP+00000200: f73ee079 f7531780 f7531000 0000002c
[11:41:48] [debug] ESP+00000220: 0100002c 17618187 00000000 09c0cce0
[11:41:48] [debug] ESP+00000240: ffad8988 f609862a ffad896c 09d3fe33
[11:41:48] [debug] ESP+00000260: f60b0000 f60974ee 0000003a 09b94248
[11:41:48] [debug] ESP+00000280: 0921ec90 f60b0000 00000000 ffad89d4
[11:41:48] [debug] ESP+000002a0: ffad89dc 00000001 f7326ae0 ffad8a44
[11:41:48] [debug] ESP+000002c0: 0000001c 09f08448 00000000 001e8200
[11:41:48] [debug] ESP+000002e0: 09ee62d4 09a8234c 00000006 09970434
[11:41:48] [debug] ESP+00000300: ffad8a88 f72a1052 f7326ae0 ffad8a44
[11:41:48] [debug] ESP+00000320: 09970434 0000001e 00000000 ff000000
[11:41:48] [debug] ESP+00000340: 00000000 00000000 407f4000 0000002c
[11:41:48] [debug] ESP+00000360: 00000082 00000070 0000001e 00000000
[11:41:48] [debug] ESP+00000380: 00000000 f73253c0 09970390 00003001
[11:41:48] [debug] ESP+000003a0: 09970404 00000000 00000082 09970434
[11:41:48] [debug] ESP+000003c0: 00000000 00000008 00000009 f7615d76
[11:41:48] [debug] ESP+000003e0: 00000009 ffad8b30 f731553c f7315562
[11:41:48] [debug] Loaded modules:
[11:41:48] [debug] 00000000 - 00187dc3 samp03svr
[11:41:48] [debug] f774b000 - f774bd3b 
[11:41:48] [debug] f773b000 - f773da04 /lib/i386-linux-gnu/libdl.so.2
[11:41:48] [debug] f771e000 - f77396ef /lib/i386-linux-gnu/libpthread.so.0
[11:41:48] [debug] f75a7000 - f7727b4b /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] f7552000 - f75a6010 /lib/i386-linux-gnu/libm.so.6
[11:41:48] [debug] f7535000 - f75511e4 /lib/i386-linux-gnu/libgcc_s.so.1
[11:41:48] [debug] f737f000 - f753bb07 /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] f774c000 - f776f784 /lib/ld-linux.so.2
[11:41:48] [debug] f7338000 - f737aac4 plugins/crashdetect.so
[11:41:48] [debug] f7327000 - f7336344 plugins/sscanf.so
[11:41:48] [debug] f7269000 - f732739a plugins/streamer.so
[11:41:48] [debug] f7260000 - f7267714 /lib/i386-linux-gnu/librt.so.1
[11:41:48] [debug] f7256000 - f725ed1c plugins/Whirlpool.so
[11:41:48] [debug] f6eb2000 - f725aac7 plugins/mysql_static.so
[11:41:48] [debug] f649f000 - f64b02ec /lib/i386-linux-gnu/libnss_files.so.2
[11:41:48] [debug] f6053000 - f6100c5b plugins/YSF.so
[11:41:48] [debug] f643f000 - f6443a38 /lib/i386-linux-gnu/libnss_dns.so.2
[11:41:48] [debug] f6426000 - f643d494 /lib/i386-linux-gnu/libresolv.so.2
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 08/09/2017, 10:54 AM   #1702
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

Show me your ysf.cfg please. I'm going to start to add support for r2-2 soooon.
kurta999 is offline   Reply With Quote
Old 08/09/2017, 12:53 PM   #1703
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 685
Reputation: 51
Default Re: YSF - kurta999's version

I don't think I've really changed anything, but here it is regardless:

Code:
# Protection against fake pickup ids
PickupProtection 0

# Protection against fakekill
DeathProtection 0

# Protection against sproofed dialog ids
DialogProtection 0

# Use redirected YSF's own RPC for spawning
UseCustomSpawn 0

# Allowing remote RCON connections with banned IPs (its very good to enable when you need to unban yourself)
AllowRemoteRCONWithBannedIPs 0

# Use this if you want to use SetMaxPlayers to increase your server slots at runtime
# DANGER: With enabling this option server will allow to connect 1000 players, doesn't matter what is your "maxplayers" value in server.cfg!
IncreaseRakNetInternalPlayers 0

# If the option above isn't enabled this option won't have any effect
# Change raknet internal threads sleeping time, lowering the value migh result in smoother sync - by default is 5ms
RakNetInternalSleepTime 5

# Delay im ms - object will be attached to player after this delay passed, lowering this delay might result in crashes 
AttachObjectDelay 2000

# SA-MP by default doesn't store material info for per-player objects, which made GetPlayerObjectMaterial/MaterialText broken
# If you just use streamer for objects and you don't wanna use those two natives below, then disable this option
StorePlayerObjectsMaterial 0

# With this option you can load YSF on whatever server version, but it can result unwanted behavior
SkipVersionCheck 0
One thing that springs to my mind it could be something dialog related. When I checked the log, the server crashed 2 seconds or so after that, which is approximately the time after which the login dialog would be shown ingame. While this could've been the cause, although this is not consistent.
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 10/09/2017, 10:33 AM   #1704
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

Please try this linux build: https://www.solidfiles.com/v/rGGZpRYnXw35N

This is abosolutely not related to dialogs, it's realed to my coding mistake what I did before with SetObjectMaterialText
kurta999 is offline   Reply With Quote
Old 10/09/2017, 09:21 PM   #1705
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 685
Reputation: 51
Default Re: YSF - kurta999's version

That does make sense, as a material text is one of the first things player get exposed to in my server. I tested the build on a linux pc at home, and it seemed to be fine now. Thank you for the fix.
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 11/09/2017, 07:44 AM   #1706
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

Please after you try it on live server, confirm that does it works really.

Thanks. If do, I'll update the main link.
kurta999 is offline   Reply With Quote
Old 11/09/2017, 08:14 AM   #1707
[WSF]ThA_Devil
Gangsta
 
[WSF]ThA_Devil's Avatar
 
Join Date: Sep 2010
Location: United Kingdom
Posts: 685
Reputation: 51
Default Re: YSF - kurta999's version

This is most odd... When I tried it on the live server nobody could join the server. Everybody's getting kicked:
Quote:
[09:53:06] Kicking ***.***.***.*** because they didn't logon to the game.
It did work on the test linux server though... I have no crash information to provide as it didn't crash, just didn't let anyone to connect.

The odd thing is that it worked just fine on the linux test server, not on the main. I'm not experiencing this kicking with R18 though.
__________________
Quote:
Originally Posted by Shinobu View Post
Somebody save me, I am not a server.
[WSF]ThA_Devil is offline   Reply With Quote
Old 16/09/2017, 08:11 AM   #1708
kurta999
High-roller
 
kurta999's Avatar
 
Join Date: Apr 2009
Location: Slovakia (HU)
Posts: 1,391
Reputation: 579
Default Re: YSF - kurta999's version

Sorry for late response, but I wasn't able to provide another test version sooner.

I would suggest you to test this build on Linux. I've removed something related to connection. I'm curious, that does it helps.
Attached Files
File Type: zip YSF.zip (335.0 KB, 4 views)
kurta999 is offline   Reply With Quote
Old 25/09/2017, 03:02 AM   #1709
Adoniiz
Gangsta
 
Join Date: Mar 2010
Location: Wormhole
Posts: 824
Reputation: 57
Default Re: YSF - kurta999's version

Hey Kurta

I have updated YSF to R19 version and throws me these errors

Code:
[02:43:15] [connection] xxx.xxx.xxx.xxx:xxxxx requests connection cookie.
[02:43:16] [connection] incoming connection: xxx.xxx.xxx.xxx:xxxxx id: 0
[02:43:16] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[02:43:18] [join] Adonis has joined the server (0:xxx.xxx.xxx.xxx:xxxxx)
[02:43:18] [debug] Run time error 7: "Stack underflow"
[02:43:18] [debug]  Stack pointer (STK) is 0x16C7880, stack top (STP) is 0x16C787C
[02:43:18] [debug] AMX backtrace:
[02:43:18] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
[02:43:20] [debug] Run time error 7: "Stack underflow"
[02:43:20] [debug]  Stack pointer (STK) is 0x16C78C0, stack top (STP) is 0x16C787C
[02:43:20] [debug] AMX backtrace:
[02:43:22] [debug] Run time error 7: "Stack underflow"
[02:43:22] [debug]  Stack pointer (STK) is 0x16C78C0, stack top (STP) is 0x16C787C
[02:43:22] [debug] AMX backtrace:
[02:43:26] [debug] Run time error 7: "Stack underflow"
[02:43:26] [debug]  Stack pointer (STK) is 0x16C78BC, stack top (STP) is 0x16C787C
[02:43:26] [debug] AMX backtrace: .......

SO: Ubuntu 16.04
__________________
Adoniiz 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
[GameMode] [GM] - [RnD] Street Racers `N Drifters (New Version - latest version) Johny_Rocker Gamemode Scripts 23 10/12/2015 09:53 AM
How to convert server files from 0.3e version into 0.3c version Sajed Scripting Help 2 29/10/2013 07:48 PM
[FilterScript] [FS]New LSPD - Version 0.3 - Bugfix Version Dalenor Filterscripts 46 08/12/2010 01:36 PM
about changing version of sa-mp but with old script version Sfinx_17 Help Archive 3 22/10/2009 12:05 PM


All times are GMT. The time now is 03:57 AM.


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