Jump to content

Frequent Startup Crashes on Linux Due To Improper Screen Resolution


Recommended Posts

Hi all - 

I was having some real headaches with KSP crashing, even after a clean install. The game would start, maybe, and make it through varying stages of the loading process and then crash, requiring a hard reset of the computer. This happened both starting through Steam and through the command line via KSP.x86_64. I have pulseaudio installed and am running 64-bit Debian linux. Setting LC_ALL=C did not solve the problem, nor did starting with the command line option -force-glcore. 

I solved the problem by manually editing two config files. My issue appeared to be caused by the screen resolution being improperly set in these config files. The key indication of this was the file ~/.config/unity3d/Squad/Kerbal Space Program/Player.log: there's a line there that read something to the effect of the screen resolution being set to some insane value like 0x4096 or something equally crazy, and complaining that this was improper (yeah, I'll say!).

I solved the problem as follows using a text editor:

  1. Find your machine's actual native resolution.
  2. Set this resolution in the width and height lines in the following file, along with Fullscreen to "1": ~/.config/unity3d/Squad/Kerbal Space Program/prefs
  3. Set this resolution in the width and height lines in the following file, along with Fullscreen=True: ~/.local/share/Steam/steamapps/common/Kerbal Space Program/settings.cfg

No more bad crashes after this. I hope this helps someone else - I did quite a bit of google searching before figuring out this fix...

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...