Project

General

Profile

Bug #5976

Mac OS X Textures bug

Added by evansche about 9 years ago. Updated over 8 years ago.

Status:
Needs Clarification
Severity:
Low
Assignee:
-
Category:
Camera
Target version:
-
Start date:
11/20/2015
% Done:

0%

Version:
Platform:
OSX
Expansion:
Language:
English (US)
Mod Related:
No
Votes:
Arrow u r green
Arrow d r red

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.

ksp-105-macosx-graphics.png (3.33 MB) ksp-105-macosx-graphics.png [email protected] evansche, 11/20/2015 05:57 AM
KSP.log (192 KB) KSP.log [email protected] evansche, 11/20/2015 08:29 PM
settings.cfg (23.3 KB) settings.cfg [email protected] evansche, 11/20/2015 08:29 PM
KSP.log (195 KB) KSP.log [email protected] evansche, 11/21/2015 01:42 AM
KSP.log (174 KB) KSP.log [email protected] evansche, 11/21/2015 01:51 AM
KSP.log (239 KB) KSP.log [email protected] evansche, 11/21/2015 02:05 AM
Screen Shot 2015-11-20 at 5.57.30 PM.png (2.66 MB) Screen Shot 2015-11-20 at 5.57.30 PM.png [email protected] evansche, 11/21/2015 02:05 AM
Screen Shot 2015-11-20 at 6.03.10 PM.png (3.2 MB) Screen Shot 2015-11-20 at 6.03.10 PM.png [email protected] evansche, 11/21/2015 02:05 AM
Screen Shot 2015-11-24 at 2.28.59 PM.png (4.91 MB) Screen Shot 2015-11-24 at 2.28.59 PM.png [email protected] evansche, 11/25/2015 12:23 AM
settings.cfg (23.3 KB) settings.cfg [email protected] evansche, 11/25/2015 12:24 AM
KSP.log (187 KB) KSP.log [email protected] evansche, 11/25/2015 12:24 AM
KSP.log (183 KB) KSP.log [email protected] evansche, 11/25/2015 01:30 AM
Player.log (477 KB) Player.log [email protected] evansche, 11/25/2015 10:41 PM
Player.log (461 KB) Player.log [email protected] evansche, 11/26/2015 04:02 AM
KSP.log (173 KB) KSP.log [email protected] evansche, 11/26/2015 04:02 AM
settings.cfg (23.8 KB) settings.cfg [email protected] evansche, 11/26/2015 04:02 AM
Screen Shot 2015-11-26 at 1.33.34 PM.png (97.1 KB) Screen Shot 2015-11-26 at 1.33.34 PM.png Screen-shot of game graphics settings, w no option for PPFX. evansche, 11/26/2015 09:35 PM
8820
8828
8829
8877
8895

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

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

8828
8829

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

8877

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

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

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

8895

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.

http://forum.kerbalspaceprogram.com/index.php?/topic/126828-devnote-tuesday-forums-letters-and-development/

#21 Updated by TriggerAu over 8 years ago

  • Status changed from Need More Info to Needs Clarification

Also available in: Atom PDF