-
Notifications
You must be signed in to change notification settings - Fork 69
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
Crash during flight planning on Linux #2722
Comments
Thanks for reporting the problem, but I don't see that there is much that we can do about it. There is no Principia code on the failing stack, and no indication of any misbehaving caused by Principia in the logs. My guess is that this is a bug in Mono, based on the following message at the end of
Googling that message leads to a Xamarin defect that was never fixed as far as I can tell. It doesn't help that Unity have their own fork of Mono, so it's impossible to tell which bugs have been fixed and which haven't. I can completely believe that Principia triggers some Mono bugs that itself leads to an |
Understandable. If I get any ideas where to look I'll see if I can fix it (or at least find a workaround). Thanks for the pointer to the Mono bug - seems like this should be fixed (or at least worked around) by using something other than Boehm for the GC. Maybe I'll try to swap out the Unity version of Mono for something closer to what's provided on Arch (but this will probably open up a whole new can of worms - after all, Unity probably had a reason for providing their own fork). One last comment though: If this is a bug in the forked Unity version of Mono, I'd expect it to happen on Ubuntu as well - after all, both systems are using the same code in this case. Did you have any reports of weird crashes in flight planning on Ubuntu? |
Just in case anybody hits the same problem: Increasing vm.max_map_count as outlined here seems to help. |
@rkunze I'm getting it on Kubuntu as well so nothing to do with arch. |
Setup: KSP 1.10.1 with Breaking Grounds and Making History, Principia Gateaux (no other mods beside Principia) on 64bit Arch Linux.
I can reproducibly crash KSP by starting a new sandbox game, F12-cheating a stock craft into LKO (100km orbit), and trying to set up a free return trajectory around the Mun using the Principia flight planner.
Flight planning goes smoothly for a couple of minutes, but after about 5 minutes (usually when I get to fine-tuning the trajectory) KSP gets a sigabrt and crashes.
Logs are at https://gist.github.com/rkunze/ae6eb6c0f187f917aa031161986ad417, but (at least for me) don't provide any insight into what went wrong.
Post mortem analysis of the dumped core with gdb gives this stack trace for the thread that caused the sigabrt:
Other threads state at the time of the crash:
Since the crash apparently occurred inside a GC thread, my first suspicion was a memory issue. But at the time of the crash, KSP had allocated only around 7.5 of the available 16 GB.
The text was updated successfully, but these errors were encountered: