Bug #5976
Mac OS X Textures bug
0%
Description
KSP on Mac:
v1.0.5
Plain stock game. No mods.
Late-2013 27â iMac
NVIDIA GeForce GTX 780M 4096 MB
OS: OS X 10.9.5 (13F1134)
Long-standing issue since v1.0 or maybe even v.9x
Game loads fine, but upon first instance of switching from gameplay back to KSC, or an assembly-building view it is obvious that some graphics textures are out of place.
Sometimes the game is stall playable (able to enter into gameplay mode again, with ongoing texture issues, and sometimes the game hangs on next attempt to enter gameplay once again.
Example screen-shot of strange texture behavior that is still allowing functional gameplay, attached.
History
#1 Updated by sal_vager about 9 years ago
- Status changed from New to Need More Info
Hi evansche, can you provide more info please, such as your settings.cfg and Player.log (or KSP.log if you can't locate the player.log)
More info here http://bugs.kerbalspaceprogram.com/projects/ksp/wiki
Also please experiment with your graphics settings to determine if this only occurs at certain resolutions and screen modes.
#2 Updated by evansche about 9 years ago
- File KSP.log KSP.log added
- File settings.cfg settings.cfg added
More info:
KSP build 1028
Logs attached.
I almost always try to play:
full-screen, @ 2560x1440
Terrain Detail: High
SM3 Terrain Shaders: Yes
Terrain Scatters: Yes
Scatter density: 100%
Fantastic Render Quality Level
Texture Quality: Full Res
Fallback Shaders: No
Edge Highlighting: No
Surface FX: Yes
Underwater FX: Yes
AA: None
Pixel Light Count: 8
Shadow Cas: 4
Can always reproduce within 20-30 mins of gametime at these settings.
I will try to reproduce with different settings, but the ones here are my preference.
#3 Updated by evansche about 9 years ago
Replicated with graphics set to 1280x720 and 4xAA. Hard freeze when transitioning back to SPH from a flight crash in gameplay/flight mode.
#4 Updated by evansche about 9 years ago
And ... a relatively quick mid-fligth game-freeze once I tried these graphics resolution settings:
SCREEN_RESOLUTION_WIDTH = 1344
SCREEN_RESOLUTION_HEIGHT = 756
ANTI_ALIASING = 2
(no other changes)
#5 Updated by evansche about 9 years ago
- File KSP.log KSP.log added
- File Screen Shot 2015-11-20 at 6.03.10 PM.png Screen Shot 2015-11-20 at 6.03.10 PM.png added
- File Screen Shot 2015-11-20 at 5.57.30 PM.png Screen Shot 2015-11-20 at 5.57.30 PM.png added
And one more: issue replicated with these settings too:
SCREEN_RESOLUTION_WIDTH = 1600
SCREEN_RESOLUTION_HEIGHT = 900
FULLSCREEN = True
ANTI_ALIASING = 2
Not a hard freeze this time, but graphics issues popped up quickly. In flight mode these graphics troubles seem related to the sun and shadow-casting: when I speed up time they move accordingly. But the graphics issues persist into SPH view too.
#6 Updated by evansche about 9 years ago
And finally, we just replicated the issue quickly in windowed mode (same textures problem).
SCREEN_RESOLUTION_WIDTH = 1600
SCREEN_RESOLUTION_HEIGHT = 900
FULLSCREEN = False
ANTI_ALIASING = 2
#7 Updated by sal_vager about 9 years ago
Thanks, though I can't replicate it here as I don't have a Mac, it's likely related to the other Mac graphics issues that have been reported recently, some players have had multicolor effects in the VAB/SPH while others have completely broken terrain shading.
Most of those reports have stated they use Intel gfx hardware though.
Also your log from the freeze just stops, KSP didn't have a chance to write to the KSP.log but may have written to the player.log, if it freezes again the player.log would be more useful.
Something I do see however is a very old graphics driver (2013).
SM: 30 (OpenGL 2.1 [2.1 NVIDIA-8.26.29 310.40.55f01])
This is all I could find on this driver, it's not available separately for OSX, https://www.nvidia.com/object/freebsd-x64-310.40-driver
You say you're on Mavericks, would you be able to update and see if that fixes this ?
#8 Updated by evansche about 9 years ago
I may just have to upgrade to the latest OSX in order for KSP to work smoothly...
#9 Updated by evansche about 9 years ago
- File Screen Shot 2015-11-24 at 2.28.59 PM.png Screen Shot 2015-11-24 at 2.28.59 PM.png added
- File KSP.log KSP.log added
- File settings.cfg settings.cfg added
Issue persists into El Capitan, OSX v10.11.1. See attached for context and screen-shot example.
SCREEN_RESOLUTION_WIDTH = 2560
SCREEN_RESOLUTION_HEIGHT = 1440
FULLSCREEN = True
QUALITY_PRESET = 5
ANTI_ALIASING = 1
TEXTURE_QUALITY = 0
and aside, I cannot locate any file "player.log" on this iMac. There's no ~Library/Logs/Unity/player.log...
#10 Updated by evansche about 9 years ago
Crash report from recent hard crash when switching from flight/gameplay to SPH ATTACHED
#11 Updated by evansche about 9 years ago
...AAAAAND another hang. Spinning pizza-wheel of death, frozen screen, and jet-engine sound stuck on loop in the background. This was with a Gull derivative plane in mid-flight. See latest ksp.log
#12 Updated by sal_vager about 9 years ago
I can't read OSX logs, it might as well be Swahili and if there's something in there explaining this I'll not be able to find it.
I see the update to el capitan did update the gfx driver, to the slightly less ancient 310.42, the latest unix (not OSX unfortunately) driver is 352.63, I have no idea why Apple use such old drivers :/
https://www.nvidia.com/download/driverResults.aspx/95163/en-us
Your last KSP.log where it hung also just stops with no errors, you really need to post the Player.log next time, as that log will often contain more detail including the stack trace.
The log before (the one you posted with the OSX log) does show a null reference exception however.
[EXC 14:29:07.007] NullReferenceException
UnityEngine.Component.get_transform ()
SpriteRoot.set_ClippingRect (Rect3D value)
AutoSpriteControlBase.set_ClippingRect (Rect3D value)
UIListItemContainer.set_ClippingRect (Rect3D value)
UIScrollList.ClipItems ()
UIScrollList.ScrollListTo_Internal (Single pos)
UIScrollList.UpdateContentExtents (Single change)
UIScrollList.PositionItems ()
UIScrollList.RemoveItem (Int32 index, Boolean destroy, Boolean doEasing)
UIScrollList.RemoveItem (IUIListObject item, Boolean destroy, Boolean doEasing)
UIScrollList.RemoveItem (IUIListObject item, Boolean destroy)
ApplicationLauncher.RemoveApplication (.ApplicationLauncherButton button)
UIApp.OnDestroy ()
This isn't in the other logs, ApplicationLauncher is the notification area in the top right of the flight scene, but the rest appear to be built-in Unity classes and functions.
Have you tested a completely fresh install yet ?
#13 Updated by evansche about 9 years ago
- File Player.log Player.log added
Player.log attached. Sorry for not understanding earlier how to retrieve this file. It didn't show up with a Spotlight search.
#14 Updated by sal_vager about 9 years ago
If I may ask, what is the method you used to find the file? It'd be useful to know an easy way that I can share with others.
Also, the player.log has some new info.
KSP malloc: *** mach_vm_map(size=4198400) failed (error code=3)
- error: can't allocate region
- set a breakpoint in malloc_error_break to debug
KSP malloc: *** mach_vm_map(size=2101248) failed (error code=3)- error: can't allocate region
- set a breakpoint in malloc_error_break to debug
Receiving unhandled NULL exception
Obtained 12 stack frames.
malloc is short for "memory allocate" and is a C/C++ function ( https://en.wikipedia.org/wiki/C_dynamic_memory_allocation ) which the engine uses to dynamically manage memory.
This isn't limited to KSP, it can be an issue in any software written in C/C++ that is trying to use more memory than is available, such as the Unity engine which is written in C++.
A search shows the same error in a variety of other software ( https://duckduckgo.com/?q=malloc%3A+***+mach_vm_map+failed+%28error+code%3D3%29&t=canonical ).
This doesn't look to be the cause of the graphical issue, as this just results in a crash or freeze, the only things I can suggest are to reduce your texture quality so less memory is demanded by KSP, or try to free up RAM on your system.
OSX can be very memory hungry and likes to keep apps in RAM in case the user goes back to them, so it may be an idea to monitor the memory used by the system as a whole while playing KSP.
#15 Updated by evansche about 9 years ago
Player.log: I followed the instructions mentioned on http://bugs.kerbalspaceprogram.com/projects/ksp/wiki :
Mac OSX: Open Console, on the left side of the window there is a menu that says 'files'. Scroll down the list and find the Unity drop down, under Unity there will be Player.log Aka Files>~/Library/Logs>Unity>Player.log
This worked, and I could easily navigate to the Player.log file. I was surprised to find that my user's ~/Library directory was hidden, making it and its contents invisible to Mac OS X Spotlight search.
As for malloc and RAM starvation, this Mac has 16GB and I never get close to running out of real memory. Nonetheless, I'll try running KSP with reduced texture quality (grumble) to see if the game plays more reliably.
#16 Updated by evansche about 9 years ago
- File Player.log Player.log added
- File KSP.log KSP.log added
- File settings.cfg settings.cfg added
And another quick crash (upon switching from KSP view to SPH view). This was with textures at half-res. Logs attached.
#17 Updated by jonnyp about 9 years ago
- Severity changed from Normal to Low
Evansche, Have you got PPFX enabled in your graphics settings? If so could you try turning that off and seeing if you still have problems?
#18 Updated by evansche about 9 years ago
Sorry jonnyp, I'm afraid the game (totally stock 1.0.5 build 1028) says I don't have the necessary hardware support for PPFX. See screen-shot of setting screen, attached.
#19 Updated by evansche almost 9 years ago
Hi all,
I see this bug's status is set to Needs More Info. Is there anything else I can do to help clarify and confirm this trouble?
#20 Updated by sal_vager almost 9 years ago
Well, if you can figure out what conditions cause this that'd be great, it doesn't look to be affecting many players but all these graphical issues have been on OSX so far.
Right now I don't know if this is KSP, Unity, OSX, old drivers, a faulty gfx card or anything else, and it may be resolved in 1.1 due to the terrain shader rewrite, see the devnotes for details.
#21 Updated by TriggerAu over 8 years ago
- Status changed from Need More Info to Needs Clarification