Raised This Month: $319 Target: $400
 79%   Almost there!

Source Dedicated Server for Mac OS X


Post New Thread Reply   
 
Thread Tools Display Modes
i1sTTT
New Member
Join Date: May 2014
Old 05-15-2014 , 19:34   Re: Source Dedicated Server for Mac OS X
Reply With Quote #141

Quote:
Originally Posted by asherkin View Post
Nice work DS!
i1sTTT is offline
Send a message via Yahoo to i1sTTT
dv9unknown
Senior Member
Join Date: Aug 2009
Old 05-15-2014 , 21:00   Re: Source Dedicated Server for Mac OS X
Reply With Quote #142

My god. You should do the same for Source SDK 2006 on Linux.
dv9unknown is offline
printf
Junior Member
Join Date: Apr 2013
Old 05-31-2014 , 22:19   Re: Source Dedicated Server for Mac OS X
Reply With Quote #143

I've found that newer versions of dedicated.dylib depend upon a symbol titled '_LOG_GENERAL' that isn't supplied by anything:
Code:
localhost:Counter-Strike Source srcds$ ./srcds_osx -game cstrike
Failed to open dedicated.dylib (dlopen(dedicated.dylib, 2): Symbol not found: _LOG_GENERAL
  Referenced from: /Users/srcds/Library/Application Support/Steam/SteamApps/common/Counter-Strike Source/bin/dedicated.dylib
  Expected in: /Users/srcds/Library/Application Support/Steam/SteamApps/common/Counter-Strike Source/bin/libtier0.dylib
 in /Users/hlds/Library/Application Support/Steam/SteamApps/common/Counter-Strike Source/bin/dedicated.dylib)
localhost:Counter-Strike Source srcds$ nm bin/dedicated.dylib | grep _LOG_GENERAL
         U _LOG_GENERAL
In CS:GO, libtier0.dylib supplies this '_LOG_GENERAL.'
Code:
localhost:bin srcds$ nm csgo-libs-osx/libtier0.dylib | grep _LOG_GENERAL
00015568 S _LOG_GENERAL
When I try to use the libtier0.dylib from CS:GO, it causes more symbol dependency issues:
Code:
localhost:Counter-Strike Source srcds$ ./srcds_osx -game cstrike
Failed to open dedicated.dylib (dlopen(dedicated.dylib, 2): Symbol not found: __ZN7CThread5StartEj
  Referenced from: /Users/srcds/Library/Application Support/Steam/SteamApps/common/Counter-Strike Source/bin/libvstdlib.dylib
  Expected in: /Users/srcds/Library/Application Support/Steam/SteamApps/common/Counter-Strike Source/bin/libtier0.dylib
)
printf is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 05-31-2014 , 23:11   Re: Source Dedicated Server for Mac OS X
Reply With Quote #144

Quote:
Originally Posted by printf View Post
I've found that newer versions of dedicated.dylib depend upon a symbol titled '_LOG_GENERAL' that isn't supplied by anything:
What newer versions are you talking about? CS:S doesn't ship with a dedicated.dylib, but the package for it in the first post provides one. And it still works fine as far as I can tell.

I realize the filename of that package says "tf2" and I'm sorry if that ended up causing confusion, but that's the one you'll want for Counter-Strike: Source.
DS is offline
printf
Junior Member
Join Date: Apr 2013
Old 05-31-2014 , 23:21   Re: Source Dedicated Server for Mac OS X
Reply With Quote #145

Oh, silly me, I was under the impression that you were taking dedicated.dylib from CS:GO! And yes, I was trying to do that to get around some issues I was having, because I thought that it was because my dedicated.dylib library is old.

I am getting this error when I change maps:
Code:
** Unknown exception behavior: 0
Segmentation fault: 11
It seems to happen quite randomly, and I can't figure out what it is that causes it. Anyway, here's some dtrace output:
Code:
 2646/0xffd5:  write(0x14, "u\0", 0x79)          = 121 0
 2646/0xff8a:  __semwait_signal(0xC03, 0x0, 0x1)                 = -1 Err#60
 2646/0xff8a:  sigprocmask(0x1, 0x0, 0xBFFFE9FC)                 = 0x0 0
 2646/0xff8a:  sigaltstack(0x0, 0xBFFFE9F8, 0xBFFFE9FC)          = 0 0
 2646/0xff8a:  sigprocmask(0x1, 0x0, 0xBFFFE8EC)                 = 0x0 0
 2646/0xff8a:  sigaltstack(0x0, 0xBFFFE8E8, 0xBFFFE8EC)          = 0 0
 2646/0xff8a:  recvfrom(0xF, 0x17FB6008, 0x46510)                = -1 Err#35
 2646/0xff8a:  sendto(0xF, 0xBFFB6DC8, 0x386)            = 902 0
 2646/0xff8a:  select(0x1, 0xBFFFE030, 0x0, 0x0, 0xBFFFE028)             = 0 0
 2646/0xff8a:  select(0x1, 0xBFFFE960, 0x0, 0x0, 0xBFFFE958)             = 0 0
 2646/0xffa6:  psynch_cvwait(0xA2F860, 0x2CE010002CF00, 0x0)             = -1 Err#316
 2646/0xff8a:  __semwait_signal(0xC03, 0x0, 0x1)                 = -1 Err#60
 2646/0xff8a:  sigprocmask(0x1, 0x0, 0xBFFFE9FC)                 = 0x0 0
 2646/0xff8a:  sigaltstack(0x0, 0xBFFFE9F8, 0xBFFFE9FC)          = 0 0
 2646/0xff8a:  sigprocmask(0x1, 0x0, 0xBFFFE8EC)                 = 0x0 0
 2646/0xff8a:  sigaltstack(0x0, 0xBFFFE8E8, 0xBFFFE8EC)          = 0 0
 2646/0xff8a:  recvfrom(0xF, 0x17FB6008, 0x46510)                = -1 Err#35
 2646/0xffa0:  sigaction(0x6, 0xB040CCA0, 0x0)           = 0 0
 2646/0xffa0:  mprotect(0xCF93000, 0x1000, 0x3)          = 0 0
 2646/0xffa0:  write_nocancel(0x2, "** Unknown exception behavior: 0\n9\n3010.873535|13622.508789|9795.295898|51.367782|-81.992179
\n3010.954101|13619.911132|9797.002929|50.924659|-84.916801
\n3010.963378|13617.308593|9798.727539|50.700012|-86.489326\n3010.90\0", 0x21)              = 33 0
 2646/0xff8f:  kevent(0x3, 0x0, 0x0)             = -1 Err#4
printf is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 05-31-2014 , 23:50   Re: Source Dedicated Server for Mac OS X
Reply With Quote #146

A few questions.

1. What version of OS X are you running?

2. Are you running any addons like Metamod:Source and SourceMod on this server?

3. And lastly, do you have any crash reports in ~/Library/Logs/DiagnosticReports? The file names should start with srcds_osx_. If you can find any, please upload them. That should hopefully tell me where it's crashing.
__________________
エル・プサイ・コングルゥ

Last edited by DS; 05-31-2014 at 23:50.
DS is offline
printf
Junior Member
Join Date: Apr 2013
Old 06-01-2014 , 00:23   Re: Source Dedicated Server for Mac OS X
Reply With Quote #147

1. I'm running OS X Mountain Lion (10.8.5)

2. Yes, I run both SourceMod and MetaMod with these running:
Spoiler


3. No, I don't even have a directory called ~/Library/Logs/DiagnosticReports. Could that be because I use getty (type >console as username at login) instead of Terminal.app?

OH! I almost forgot to report this:
Code:
Shutdown function ShutdownMixerControls() not in list!!!
./srcds_run: line 376:  2854 Trace/BPT trap: 5       $HL_CMD
That happens every time I 'quit' the server.

And none of this happens on linux, since that's where my server came from

Last edited by printf; 06-01-2014 at 03:16.
printf is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-01-2014 , 03:57   Re: Source Dedicated Server for Mac OS X
Reply With Quote #148

Printf, please give the attached test version of srcds_osx a try. It will still crash, but when it does it will hopefully give me more information about what's going on.

When you try running this, please add the "-nobreakpad" option to the command line and then copy and paste the output you get. It should look something like this:
Spoiler


As to your second message about what happens when you type 'quit', I can't seem to reproduce that on my 10.8.5 system. The message about the "Shutdown function" is harmless, but the "Trace/BPT trap" is interesting and shouldn't be happening either. I'm not quite sure where that is coming from yet.

A couple of additional questions:
1. What is the command line you are using when running the server?

2. Do you have the OS X Steam client on the same machine as the server? If not, did you copy all the libraries (steamclient.dylib, libtier0_s.dylib, etc) as mentioned in the first post?
Attached Files
File Type: zip srcds_osx_dbgtest.zip (19.6 KB, 59 views)
__________________
エル・プサイ・コングルゥ

Last edited by DS; 06-01-2014 at 03:58. Reason: Oops, it's supposed to be -nobreakpad
DS is offline
printf
Junior Member
Join Date: Apr 2013
Old 06-01-2014 , 12:50   Re: Source Dedicated Server for Mac OS X
Reply With Quote #149

1. ./srcds_run -game cstrike -tickrate 200 -debug +map bhop_monster_jam -nobreakpad

2. Yes, I logged into that account with WindowServer once to download CS:S through the steam client.

I got this when it crashed:
Code:
Caught signal 11 (Segmentation fault: 11). Invalid memory access of 0x1d5c30c0 from 0x9437e6c0.
Backtrace:
#0   srcds_osx                           0x0000236e _Z13crash_handleriP9__siginfoPv + 206
#1   libsystem_c.dylib                   0x9437e94b _sigtramp + 43
#2   libsystem_c.dylib                   0x9437e6c0 strlen + 16
#3   game.cstrike.ext.2.css.dylib        0x0bc857df _ZL19CS_GetClientClanTagPN10SourcePawn14IPluginContextEPKi + 399
#4   sourcepawn.jit.x86.dylib            0x122df2b4 _Z14NativeCallbackP12sp_context_sjPi + 100
/Users/buildbot/buildslave_steam/steam_rel_client_osx/build/src/common/steamservice.cpp (50) : Assertion Failed: m_hServiceLib == NULL
Assert( Assertion Failed: m_hServiceLib == NULL ):/Users/buildbot/buildslave_steam/steam_rel_client_osx/build/src/common/steamservice.cpp:50
With the (what appeared to be) XYZ coordinates in the dtrace, I had this itching feeling that something wasn't using memory properly...
printf is offline
DS
SourceMod Developer
Join Date: Sep 2004
Location: WI, USA
Old 06-01-2014 , 18:43   Re: Source Dedicated Server for Mac OS X
Reply With Quote #150

Thanks for that crash output. This was a problem with SourceMod which has now been fixed.

You should get a gamedata file update via the automatic updater upon server start/restart. Otherwise, you can grab the latest 1.5.4 snapshot if you've disabled this.
__________________
エル・プサイ・コングルゥ
DS is offline
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

Forum Jump


All times are GMT -4. The time now is 12:49.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode