Jump to content

Crashes in Editors


Recommended Posts

Linux Mint 17.2 x64

Native Steam/Default KSP

I'm getting crashes in both the SPH and VAB upon selecting a new part to add. This is repeatable for me, selecting any command module and then attempting to add a MK16 parachute produces a crash immediately upon selecting the parachute from the parts list. My ksp log doesn't show anything of interest but Player.log has the following entry multiple times at the end of the file:

NullReferenceException: Object reference not set to an instance of an object
at ModuleParachute.SetConvectiveStats () [0x00000] in <filename unknown>:0
at ModuleParachute.FixedUpdate () [0x00000] in <filename unknown>:0

(Filename: Line: -1)

This isn't the only sequence of events that leads to a crash but it is an easy one to replicate.

Edited by SatanSoldier
Link to comment
Share on other sites

There's no obvious cause here so you're going to have to test a few things.

First, verify your game files in Steam, to make sure any corrupt or missing files are replaced.

If that doesn't solve it, test the KSP.x86 and then the KSP.x86_64 in the game folder directly, this removes any interference from Steam and also any issue with starting KSP remotely (desktop shortcut).

If it still crashes, try uninstalling the Catalyst/FGLRX driver, rebooting and running KSP with the built-in xorg Radeon driver.

Link to comment
Share on other sites

This is a known issue for some Linux users. (It's actually a problem in windows too, but only log spams and doesn't crash.) There is no stock fix or workaround for this right now, except the obvious "don't use parachutes."

You might be able to flush this out by launching a craft without a parachute, then revert to the editor and add one on. I doubt this will work, but I don't have linux to verify.

If you aren't opposed to add-ons, you can download my StockBugFix add-on which fixes this issue. Specifically, you are looking for ModuleParachuteFix.

http://forum.kerbalspaceprogram.com/threads/97285

Cheers,

-Claw

Link to comment
Share on other sites

There's no obvious cause here so you're going to have to test a few things.

First, verify your game files in Steam, to make sure any corrupt or missing files are replaced.

If that doesn't solve it, test the KSP.x86 and then the KSP.x86_64 in the game folder directly, this removes any interference from Steam and also any issue with starting KSP remotely (desktop shortcut).

If it still crashes, try uninstalling the Catalyst/FGLRX driver, rebooting and running KSP with the built-in xorg Radeon driver.

Well, that's interesting. The x86_64 executable doesn't seem to produce the crash. I guess I'll just stick to using the 64bit version, though I thought that was supposed to be the less stable one.

Link to comment
Share on other sites

That actually suggests you're missing a 32bit library, I noticed you're on a 64bit version of Linux so it'll have 64bit versions of the libraries that KSP needs installed, rather than 32bit versions.

If you open a terminal in the KSP folder and use this line;

ldd KSP.x86 | grep "not found"

It'll say if anything's missing, but will also detect the 64bit versions of some things.

Your log listed fglrx in the stack trace, so most likely you're missing the 32bit version of mesa, some parts of which are still needed by 32bit KSP.

If you run this line in a terminal;

sudo apt-get install libgl1-mesa-glx:i386

It'll install the bits you need so KSP.x86 will work.

Or just stick to KSP.x86_64 which you can make Steam open for you by adding this;

%command%_64

To the Steam launch options for KSP.

Edited by sal_vager
Link to comment
Share on other sites

Well, that's interesting. The x86_64 executable doesn't seem to produce the crash.

In that case, it it still producing the errors (but no crash)? You can open the debug dialogue to watch (MOD+F12).

Also, sal is much more the expert on Linux, so there might be more to it. I just know this bug has hit other Linux users and also shows up in Windows. It's just that the windows error doesn't cause a crash, and the error often stops (for that craft) after launch and revert. But the 32 vs 64-bit thing at least explains to me why it's only some folks.

Cheers,

-Claw

Edited by Claw
Link to comment
Share on other sites

That actually suggests you're missing a 32bit library, I noticed you're on a 64bit version of Linux so it'll have 64bit versions of the libraries that KSP needs installed, rather than 32bit versions.

If you open a terminal in the KSP folder and use this line;

ldd KSP.x86 | grep "not found"

It'll say if anything's missing, but will also detect the 64bit versions of some things.

Your log listed fglrx in the stack trace, so most likely you're missing the 32bit version of mesa, some parts of which are still needed by 32bit KSP.

If you run this line in a terminal;

sudo apt-get install libgl1-mesa-glx:i386

It'll install the bits you need so KSP.x86 will work.

Or just stick to KSP.x86_64 which you can make Steam open for you by adding this;

%command%_64

To the Steam launch options for KSP.

ldd reported nothing, and apt-get says that library is already installed. I'll stick to x64, so thank you for the launch option switch, that was my next question.

At this point I will consider this resolved, thank you both for your assistance.

Edited by SatanSoldier
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...