-
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 to desktop and corrupted save after Phobos flyby #3375
Comments
This set of repro steps is the shortest I've managed, but this is I believe the fourth time I've managed to get the game to crash after this Mars encounter. I've loaded various quicksaves from before this encounter and they all play as normal, but once I take this probe through various maneuvers at Mars, the game dies. I'm not sure if it's Phobos in particular, or just a specific amount of time in system doing manuevers, but my usual sequence has been to capture, do some orbit adjustments to get into plane, do a Deimos flyby, then do a Phobos flyby, then adjust my final Mars orbit, and scene change back to KSC and crash. The second time that sequence crashed, I started breaking it down into parts with quicksaves after each major maneuver or flyby. |
I was able to replay the journal and to reproduce the crash. No idea where it comes from yet, but I should be able to find the bug, ultimately. Thanks for taking the time to give us enough data that we can properly investigate this issue. I am curious to understand what you did with the vessel named |
That vessel is definitely the one that is having the issue, after I finish with that vessel in Mars is when I experience the crash. FYI last night, I basically gave up on that mission, and just left it orbiting Mars while I continued on with the game, and had no problems. I did a bunch of variations of the mission with that vessel trying to narrow down the repro case, but they all boil down to:
Most of the burns ended up needing a manual correction as Mechjeb was just not hitting the target. I think the probe might not have CoT and CoM lined up properly. And then I would often do a small rcs correction to point back to the sun and spin up. So definitely "lots of small burns" in the craft history. I did notice that watching the map view as it approaches Phobos, the prediction was not stable at all, even with the craft completely shut down and making no changes, the trajectory prediction would skitter back and forth a ton. |
Correction to my previous comment: I am not sure if I am able to reproduce the crash. More investigations needed. |
(Lest we forget: this is probably the same thing as #3331. It is also probably likewise fiendishly difficult to reproduce; I don’t think we’ll get anywhere without weeks of shipping test builds to someone who can reproduce the issue.) |
I can 100% reproduce this crash at will with that save file and repro steps I sent you. If necessary I can make a backup of my whole installation to make sure some later update or change doesn't hide the problem, or I could zip up all the non-squad mods in my install and send that. |
For what it's worth I had a very similar problem the night of June 7th. I had sent a probe to Mars and was performing a capture burn, however on attempting to scene switch after the capture completed KSP froze. This happened 2 (3?) times in succession, and I gave up and called it a night (I had a quicksave just prior to capture). When I tried again the following night, loading the quicksave, all was well. Attached are the logs from that playsession. I also present the state of my save repo after that play session (with the relevant quicksave, attempting to capture with Mariner 6). https://github.com/NathanKell/LCDev/tree/0504b44ace734c2d1a5ccfaf77240157b74d67dd and here is when I tried the first time to capture (rest of the stream is the capture, crash, try again, etc). https://youtu.be/8CCjPp6ASJI?t=7312 (before that time is me setting up the maneuver). |
Another bit of info that may be of use: last night, I left that probe in it's condition of the save I sent, eg about 9 hours out on a trajectory for a Phobos flyby, and just ignored it, I went to the tracking center and ran a Venus lander instead, warping several weeks into the future in the process. Today I've resumed that save, and decided to take a backup and then hop over to Mars Recon R8-BTU and see if it would kill my save again. I was able to to perform the three burns to get into it's final Mars polar orbit, and the scene change back to the KSC and continue on. So whatever issue it was, it was transitory, and advancing past that time/flyby in another scene worked. |
Here is my zipped gamedata folder, minus Squad https://drive.google.com/file/d/1f_Y9WLIIJ3W8k2sybxp_CBRzWDIrERJ1/view?usp=sharing Repro steps were in a txt file in the first share, and covered above. |
It appears that the save is actually fine and that it's running into a (useless, obsolete) size check. The thing that confused me tremendously is that the maximum allowed size is 512 MiB (before compression) and no save that we have seen ever comes close to that number. However, quite interestingly, this one does (one vessel has a serialization of 250 MiB) but the compressors are surprisingly efficient so the final size of the save is much smaller (90 MiB). The first order of business is to remove the check. However, this will only kick the can down the road as there is a hard limit of 2 GiB, and people will get there, ultimately. I need to understand where the humongous save comes from, but I suspect that it's all checkpoints, and that we are running into the situation described by this note, i.e., lots of tiny trajectory segments separated by checkpoints. This will need to be fixed, but it's tricky code so it will take a little while. |
Would that also explain very long save times? Since I too experienced this issue some amount, and my saves also take 5+s on a very fast rig, I'm wondering if they're related. |
I have a repeatable crash scenario, performed with journaling active and all the relevant files and repro steps included in the linked zip.
Step 1: Load the game using quicksave "quicksave.sfs" I had made a copy of this and renamed it persistent.sfs for simplicity.
This quicksave should put you in command of a probe in Mars orbit with a maneuver planned to arrange a Phobos flyby
Step 2: Run the maneuver, and probably perform a small correction afterwards, to get a ~14km approach to Phobos
You might need to cheat electricity or just de-queue sending of data, this probe is a bit marginal on electricity and if the panels rotate away from the sun during warp, it goes dead
Step 3: At various points, I made quicksaves, tried scene transitions, etc. Everything was working until after the Phobos flyby.
Step 4: After the Phobos flyby, I created quicksave "Phobos pass". Note how much larger this quicksave is than the previous files.
Anecdotally as I've been trying to get a good repro of this, if the quicksave generated is around 63mb or lower, I can expect to be able to scene change successfully, in the instances where the quicksave is over 72mb, the game is going to crash on scene change and I will not be able to re-load that save.
Step 5: Attempt a scene change after the flyby. The game will crash to desktop with no alerts, dialogs, etc.
The text was updated successfully, but these errors were encountered: