Page 1 of 1

Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 14:11
by danielb1981
Hi Guys,

My first post here, so thanks for reading, I hope I get it right... I've been searching for my answer all weekend but couldn't find anything specific. I hoped I'm just overlooking something simple.

After much trial and error and helpful online guides I managed to get spring to install on my mac.

The problem I have is running in fullscreen mode is the following error, when loading typing "spring" or "spring -f" in the terminal.

Could not set video mode:
Error setting OpenGL fullscreen: invalid fullscreen drawable

If I run "spring -w" then it works but windowed, which sucks as hot corners open, etc, etc. Plus I also find fullscreen feels better". I can't even find anyone else having this issue.

It seems to be an X11 issue, but I am a complete noob with messing around in the terminal on mac, if it weren't for working with Ubuntu for the last few months at the office I doubt I would even have gotten this far.

Any help would really be appreciated.

Dan

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 14:25
by jK
check the infolog.txt it contains all valid fullscreen resolutions of your system.

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 14:58
by danielb1981
Thanks for your fast response. I checked that but it seems like it should be fine.

I have included my Log output. and also my config file.

Any further help is much appreciated

Code: Select all

LogOutput initialized.
Spring 0.82.7.1
Build date/time: Jul 24 2011 22:03:31
Available log subsystems: Sound, VFS-detail, VFS, ArchiveScanner, unit, CollisionVolume
Enabled log subsystems: Sound, 
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
using default configuration source "/Users/Dan/.springrc"
[CMyMath::Init] CPU SSE mask: 126, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  1
	SSE 4.1:  1,  SSE 4.2:  0
	SSE 4.0A: 0,  SSE 5.0A: 0
	using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Mac OS X
OS: 64bit native mode
Using read-write data directory: /Users/Dan/.spring/
Using read-only data directory: /opt/local/share/games/spring/
Scanning: /opt/local/share/games/spring/base
Scanning: /Users/Dan/.spring/maps
Scanning: /Users/Dan/.spring/games
Supported Video modes: 1280x800, 1152x720, 1024x768, 1024x640, 800x600, 800x500, 720x480, 640x480
ERROR Could not set video mode:
Error setting OpenGL fullscreen: invalid fullscreen drawable

Code: Select all

3DTrees=1
AdvSky=1
AdvUnitShading=1
AllowAdditionalPlayers=1
AtiHacks=0
AutohostIP=127.0.0.1
AutohostPort=0
BuildIconsFirst=0
BuildWarnings=0
CamFreeAngVelTime=1
CamFreeAutoTilt=150
CamFreeEnabled=0
CamFreeFOV=45
CamFreeGoForward=0
CamFreeGravity=-500
CamFreeGroundOffset=16
CamFreeInvertAlt=0
CamFreeScrollSpeed=500
CamFreeSlide=0.5
CamFreeTiltSpeed=150
CamFreeVelTime=1.5
CamMode=5
CamModeName=
CamTimeExponent=4.0
CamTimeFactor=1.0
ColorElev=1
CompressTextures=0
CrossAlpha=0.5
CrossMoveScale=1
CrossSize=12
CubeTexSizeReflection=256
CubeTexSizeSpecular=256
CubeTexSpecularExponent=100
DepthBufferBits=24
DisplayDebugPrefixConsole=0
DoubleClickTime=200
DualScreenMode=0
DynamicSky=0
ExtraTextureUpdateRate=45
FPSEnabled=1
FPSFOV=45
FPSMouseScale=0.01
FPSScrollSpeed=10
FSAA=0
FixAltTab=0
FontFile=fonts/FreeSansBold.otf
FontOutlineWeight=25
FontOutlineWidth=3
FontSize=23
Fullscreen=0
FullscreenEdgeMove=1
GrassDetail=3
GroundDecals=1
GroundDetail=40
GroundLODScaleReflection=1
GroundLODScaleRefraction=1
GroundLODScaleUnitReflection=1
GroundNormalTextureHighPrecision=0
GroundScarAlphaFade=0
GuiOpacity=0.8
HardwareThreadCount=0
Headless=0
HighResLos=0
InfoConsoleGeometry=0.26 0.96 0.41 0.205
InfoMessageTime=400
InitialNetworkTimeout=0
InputTextGeo=0.26 0.73 0.02 0.028
InvertMouse=0
InvertQueueKey=0
JoystickEnabled=1
JoystickUse=0
LODScale=1.000
LODScaleReflection=1.000
LODScaleRefraction=1.000
LODScaleShadow=1.000
Language=fr
LastSelectedMap=NOTA Supreme Battlefield
LastSelectedMod=NOTA v1.66
LastSelectedScript=Skirmish AI: HughAI 0.1
LastSelectedSetting=AllowAdditionalPlayers
LinkBandwidth=0
LogSubsystems=
LuaAutoEnableUserWidgets=1
LuaModUICtrl=1
LuaShaders=1
MaxNanoParticles=2500
MaxParticles=1000
MaxSounds=128
MaximumTransmissionUnit=0
MetalMapPalette=0
MiddleClickScrollSpeed=0.01
MiniMapButtonSize=16
MiniMapCursorScale=-0.5
MiniMapDrawCommands=1
MiniMapDrawProjectiles=1
MiniMapFullProxy=1
MiniMapGeometry=2 2 200 200
MiniMapIcons=1
MiniMapMarker=1
MiniMapUnitExp=0.25
MiniMapUnitSize=2.5
MouseDragScrollThreshold=0.3
MoveWarnings=0
NetworkTimeout=0
NoHelperAIs=0
NoSound=0
NormalMapping=1
OrbitControllerEnabled=1
OrbitControllerOrbitSpeed=0.25
OrbitControllerPanSpeed=2
OrbitControllerZoomSpeed=5
OscStatsSenderDestinationAddress=127.0.0.1
OscStatsSenderDestinationPort=6447
OscStatsSenderEnabled=0
OverheadEnabled=1
OverheadFOV=45
OverheadScrollSpeed=10
OverheadTiltSpeed=1
PitchAdjust=1
ReconnectTimeout=0
ReflectiveWater=1
RotOverheadEnabled=1
RotOverheadFOV=45
RotOverheadMouseScale=0.01
RotOverheadScrollSpeed=10
SMFTexAniso=0.0
ScrollWheelSpeed=25
SetCoreAffinity=0
ShadowMapSize=2048
Shadows=0
ShowClock=1
ShowFPS=1
ShowHealthBars=1
ShowMTInfo=1
ShowPlayerInfo=1
ShowRezBars=1
ShowSpeed=1
SimpleMiniMapColors=0
SmallFontFile=fonts/FreeSansBold.otf
SmallFontOutlineWeight=10
SmallFontOutlineWidth=2
SmallFontSize=14
SmoothEnabled=1
SmoothFOV=45
SmoothLines=0
SmoothPoints=0
SmoothScrollSpeed=10
SmoothTiltSpeed=1
SpeedControl=0
SpringData=
StencilBufferBits=8
TWEnabled=1
TWFOV=45
TWScrollSpeed=10
TeamHighlight=1
TeamNanoSpray=1
TextureLODBias=0
TooltipGeometry=0.0 0.0 0.41 0.1
TooltipOutlineFont=1
TreeRadius=1408
UnitIconDist=250
UnitLodDist=1000
UnitTransparency=0.7
UseDistToGroundForIcons=0.95
VSync=-1
Version=2
WhiteListAdditionalPlayers=1
WindowPosX=32
WindowPosY=32
WindowState=0
WindowedEdgeMove=1
XResolution=1280
YResolution=800
address=
name=Dan
snd_volbattle=100
snd_volgeneral=100
snd_volmaster=60
snd_volmusic=100
snd_volui=100
snd_volunitreply=100

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 15:02
by danielb1981
This is what my terminal says:

Notice in the "spring -f" attempt:

Code: Select all

<Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x4273080
Thanks again.

Dan


Working windowed:

Code: Select all

Daniel-Brummitts-MacBook-Pro:~ Dan$ spring -w
using default configuration source "/Users/Dan/.springrc"
[CMyMath::Init] CPU SSE mask: 126, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  1
	SSE 4.1:  1,  SSE 4.2:  0
	SSE 4.0A: 0,  SSE 5.0A: 0
	using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Mac OS X
OS: 64bit native mode
LogOutput initialized.
Spring 0.82.7.1
Build date/time: Jul 24 2011 22:03:31
Available log subsystems: Sound, VFS-detail, VFS, ArchiveScanner, unit, CollisionVolume
Enabled log subsystems: Sound, 
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /Users/Dan/.spring/
Using read-only data directory: /opt/local/share/games/spring/
Scanning: /opt/local/share/games/spring/base
Scanning: /Users/Dan/.spring/maps
Scanning: /Users/Dan/.spring/games
Supported Video modes: 1280x800, 1152x720, 1024x768, 1024x640, 800x600, 800x500, 720x480, 640x480
Video mode set to 1024x640/32bit (windowed)
[f=0000000] SDL:  1.2.14
[f=0000000] GL:   2.1 NVIDIA-7.2.9
[f=0000000] GL:   NVIDIA Corporation
[f=0000000] GL:   NVIDIA GeForce 9400M OpenGL Engine
[f=0000000] GLSL: 1.20
[f=0000000] GLEW: 1.6.0
[f=0000000] Joysticks found: 0
[f=0000000] Joystick 0 not found
Not working in fullscreen:

Code: Select all

Daniel-Brummitts-MacBook-Pro:~ Dan$ spring -f
using default configuration source "/Users/Dan/.springrc"
[CMyMath::Init] CPU SSE mask: 126, flags:
	SSE 1.0:  1,  SSE 2.0:  1
	SSE 3.0:  1, SSSE 3.0:  1
	SSE 4.1:  1,  SSE 4.2:  0
	SSE 4.0A: 0,  SSE 5.0A: 0
	using streflop SSE FP-math mode, CPU supports SSE instructions
OS: Mac OS X
OS: 64bit native mode
LogOutput initialized.
Spring 0.82.7.1
Build date/time: Jul 24 2011 22:03:31
Available log subsystems: Sound, VFS-detail, VFS, ArchiveScanner, unit, CollisionVolume
Enabled log subsystems: Sound, 
Enable or disable log subsystems using the LogSubsystems configuration key
  or the SPRING_LOG_SUBSYSTEMS environment variable (both comma separated).
  Use "none" to disable the default log subsystems.
Using read-write data directory: /Users/Dan/.spring/
Using read-only data directory: /opt/local/share/games/spring/
Scanning: /opt/local/share/games/spring/base
Scanning: /Users/Dan/.spring/maps
Scanning: /Users/Dan/.spring/games
Supported Video modes: 1280x800, 1152x720, 1024x768, 1024x640, 800x600, 800x500, 720x480, 640x480
Jul 25 13:59:41 Daniel-Brummitts-MacBook-Pro.local spring[1237] <Warning>: CGDisplayBaseAddress is obsolete and returning NULL for display 0x4273080
ERROR Could not set video mode:
Error setting OpenGL fullscreen: invalid fullscreen drawable


Daniel-Brummitts-MacBook-Pro:~ Dan$ 

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 16:29
by jK
sorry, must be some system+SDL incompability then, no chance for us to fix this.

btw you can type "/grabinput" in the chat console to lock the mouse not to leave the window.

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 16:44
by danielb1981
Thanks, Bummer... but appreciate the info.

The /grabinput you suggest should at least make it playable.

Dan

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 25 Jul 2011, 17:23
by danielb1981
If anyone reading this has got spring working on A MBP 2.53 GHz using Lion I'd love to know then I'll bother to find out whats wrong with my system.

:)

Thanks!

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 14 Nov 2011, 17:32
by daftalx
Could you try again with the official bundle and report back?

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 26 Nov 2011, 07:15
by Belmakor
I just had a chance to try the 0.84 official app build on my MacBook Air, running Lion. It crashes during the game startup phase:

Code: Select all

[f=0000000] Loading Radar Icons
[f=0000000] Error: Segmentation fault (SIGSEGV) in spring 84.0
[f=0000000] Error: Stacktrace:
[f=0000000] Error:   <0> 0   libsystem_c.dylib                   0x00007fff9819fcfa _sigtramp + 26
[f=0000000] Error:   <1> 1   libIL.1.dylib                       0x0000000101202cb6 _ZNSt6vectorI12UTXENTRYNAMESaIS0_EE14_M_fill_insertEN9__gnu_cxx17__normal_iteratorIPS0_S2_EEmRKS0_ + 810822
[f=0000000] Error:   <2> 2   spring                              0x000000010039071e _ZN5boost16exception_detail19error_info_injectorINS_10lock_errorEED2Ev + 53294
[f=0000000] Error:   <3> 3   spring                              0x000000010034a21d _ZN5boost16exception_detail19error_info_injectorINS_21thread_resource_errorEED2Ev + 2139453
[f=0000000] Error:   <4> 4   spring                              0x000

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 26 Nov 2011, 11:01
by hoijui
http://springrts.com/phpbb/viewtopic.ph ... 51#p505951
-> try LoadingMT=0 in spring settings

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 27 Nov 2011, 06:51
by Belmakor
hoijui wrote:-> try LoadingMT=0 in spring settings
Oooh (does a quick test), that worked. Game loaded and I could move the commander around and do stuff. Will test more extensively later.

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 28 Nov 2011, 01:07
by dizekat
re: fullscreen
http://www.ultimaaiera.com/blog/apples- ... sed-games/

Apple has deprecated carbon and started breaking the functionality. Now you should use cocoa (via objective c) to make your fullscreen window. I'm using GLFW rather than SDL, the advantage being that GLFW is a fair bit smaller and simpler and easier to make fixes for (it doesn't do all the unnecessary stuff for direct access to frame-buffer in fullscreen mode), as well as does actually use Cocoa on OS X.

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 28 Nov 2011, 08:16
by daftalx
dizekat wrote:re: fullscreen
http://www.ultimaaiera.com/blog/apples- ... sed-games/

Apple has deprecated carbon and started breaking the functionality. Now you should use cocoa (via objective c) to make your fullscreen window. I'm using GLFW rather than SDL, the advantage being that GLFW is a fair bit smaller and simpler and easier to make fixes for (it doesn't do all the unnecessary stuff for direct access to frame-buffer in fullscreen mode), as well as does actually use Cocoa on OS X.
According to the same post, latest SDL builds have been fixed to accommodate this issue. That actually makes more sense than forcing all SDL apps to opt out...
As soon as an official build gets in the wild, I'll make sure it feeds your lion ;)

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 28 Nov 2011, 10:25
by dizekat
The thing is you have to do such stuff in advance... it was deprecated for ages, and on apple deprecated means - we broke it a bit and will break it even more in next release. That's why GLFW switched from carbon to cocoa before Lion happened. The Lion happened on July 20th, the SDL is still 'fixes in mercurial'.

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 28 Nov 2011, 20:47
by daftalx
Ok. Shame on SDL. We got that.
I for one don't know the other lib enough to pronounce a fair judgement, I will though stay moderate by saying that a framework which is slow to catch up on things doesn't necessarily fail on all other aspects...

Edit: not mentionning the dev time it takes to switch frameworks... And to be honest, for how many users at this very moment ?

Re: Spring on Mac OS X 10.7 (Lion)

Posted: 04 Dec 2011, 11:40
by dizekat
Well yes, that's the issue. It's best if OS X port maintainer builds the latest SDL.
SDL is not really a "framework" as far as spring is concerned... it's just glue code, the only purpose of which is to make spring run well on supported operating systems. SDL is ok-ish under windows and linux.