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
save file can not be loaded #5205
Comments
Save file incompatibility between compiled version and development version is to be expected with a savegame bump. Additionally, it's possible that there is an error in the save file, or that an incompatibility between two development versions was created. We intentionally make no guarantees that save files are compatible between two development versions, and only strive to maintain a "best effort" compatibility with the previous stable build. Without a save file and more detailed information about which build the save was created with and the build that cannot load it, we cannot even attempt to diagnose and resolve the issue you are experiencing. |
Just to repeat what I mentioned in IRC, that I think current master aught to be compatible with pioneer from November 2020, and onwards. |
I think I managed to load a new save sometimes perhaps something that can't be saved wasn't created in that station/world. Here's a back trace after running gdb with Looks like gcc first is complaining about missing I've done a /bootstrap & make, from current master, e9fb865 (june 7)
|
Running the provided savefile against some CBOR validation tools, it looks like the issue is on the serialization side; the produced save file is unable to be read by the official CBOR tools. |
I seem to be having a similar issue with 20210203, which blocks the update I planned to provide to Mageia users (from 20200203). Any save file created with 20210203 seems to be corrupted. For comparison, the file size between 2020 and 2021 saves changed significantly:
(I did also try to remove Steps to reproduce:
|
For completeness sake, could you provide information about which compiler (and version) you're using to compile Pioneer? One user has reported they cannot reproduce the problem with a prebuilt 20210203 binary but can reproduce it with later development versions compiled locally, which makes me think this is caused by a compatibility issue between the json library and newer versions of GCC... |
Sure, I'm using GCC 11.1:
|
@akien-mga / @jimishol I'd appreciate it if you can test the linked pull request; it appears the issue is caused by a GCC 11 optimization that makes our accidental use of UB break in the specific case of converting JSON data to CBOR output. |
I didn't know how to properly handle the linked PR, so, since it was only 4 lines to be added, i copied pasted them editing my local same files. After compilation, save load work fine, once again!!. |
I confirm the fix too with #5218 👍 |
Thank you for confirming! Glad to have it fixed! We'll likely issue a small intermediary release with this and a few other QOL fixes soon. |
On today's compilation, save button works but, load button remains inactive. Continue button finds errors on autosaved file (_exit file i believe). May be the bug is related with the disappearance of edit and delete custom logs despite that their disappearance occurred several weeks before today.
Now i play with the precompiled version 20210213
Through lua interpreter i manage to get my money, ship and equipment back but NOT my crew that was trained enough to have his statistics well above 10% than i can find now. (It is not clear to me if his training was because he got orders to drive the ship or he was just selftrained on my ship).
So, before getting to next precompiled version, pls fix at least saves if not the custom logs too.
I don't paste save file because i believe this bug happens to anyone.
The text was updated successfully, but these errors were encountered: