Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Random Crashes #2134

Closed
MorePortal opened this issue Apr 14, 2019 · 3 comments
Closed

Random Crashes #2134

MorePortal opened this issue Apr 14, 2019 · 3 comments

Comments

@MorePortal
Copy link

KSP crashes randomly, but sometimes it crashes while, for example, I'm quicksaving

FATAL and INFO files (for 6 crashes):
https://gist.github.com/MorePortal/1e2d0374db97c98ff121b0236b3a56a6

My GameData:
2019-04-14 18 46 13
2019-04-14 18 47 12
2019-04-14 18 48 44

@pleroy
Copy link
Member

pleroy commented Apr 14, 2019

Could you give us a save?

@MorePortal
Copy link
Author

Sorry, something went wrong.

@pleroy
Copy link
Member

pleroy commented Apr 14, 2019

There is evidence that serialization of the plugin (in other words, saves) are happening on multiple threads. See for instance, at the end of the first INFO file:

I0413 22:02:10.190436 15844 interface.cpp:933] Begin plugin serialization
I0413 22:02:18.273274 15844 interface.cpp:933] Begin plugin serialization
I0413 22:03:47.253558  6304 interface.cpp:933] Begin plugin serialization

where the number before the source file name is the thread id. This should never ever happen: both KSP and Unity are single threaded. I grep'd several months of my logs and didn't see anything like that.

My suspicion is that some of the (many) mods that you are using is causing saves to happen on a thread different from the main thread. This is sure to lead to the kind of corruption that you are seeing.

Unless you can reproduce the problem with only Principia installed, I am going to conclude that some other mod is the cause of the problem.

Sorry, something went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants