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

Manual Saves Trip Java Exception in Zip Function #132

Open
mchappee opened this issue Nov 21, 2024 · 7 comments
Open

Manual Saves Trip Java Exception in Zip Function #132

mchappee opened this issue Nov 21, 2024 · 7 comments

Comments

@mchappee
Copy link

Opening a non-autosave yields this error:

java.util.zip.ZipException: invalid bit length repeat
at java.base/java.util.zip.InflaterInputStream.read(InflaterInputStream.java:181)
at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:412)
at java.base/java.io.InputStream.readNBytes(InputStream.java:412)
at java.base/java.util.zip.ZipInputStream.readNBytes(ZipInputStream.java:274)
at java.base/java.io.InputStream.readAllBytes(InputStream.java:349)
at java.base/java.util.zip.ZipInputStream.readAllBytes(ZipInputStream.java:234)
at com.crschnick.pdxu.io/com.crschnick.pdxu.io.savegame.ZipSavegameStructure.parseInput(ZipSavegameStructure.java:67)
at com.crschnick.pdxu.io/com.crschnick.pdxu.io.savegame.ModernHeaderCompressedSavegameStructure.parse(ModernHeaderCompressedSavegameStructure.java:89)
at com.crschnick.pdxu.app/com.crschnick.pdxu.app.savegame.SavegameStorage.importSavegameData(SavegameStorage.java:679)
at com.crschnick.pdxu.app/com.crschnick.pdxu.app.savegame.SavegameStorage.importSavegame(SavegameStorage.java:601)
at com.crschnick.pdxu.app/com.crschnick.pdxu.app.savegame.FileImportTarget$StandardImportTarget.lambda$importTarget$0(FileImportTarget.java:244)
at com.crschnick.pdxu.app/com.crschnick.pdxu.app.core.TaskExecutor.lambda$submitTask$2(TaskExecutor.java:70)
at com.crschnick.pdxu.app/com.crschnick.pdxu.app.core.TaskExecutor.lambda$submitTask$4(TaskExecutor.java:90)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:572)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:317)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1144)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:642)
at java.base/java.lang.Thread.run(Thread.java:1583)

@crschnick
Copy link
Owner

Can you share the save?

@mchappee
Copy link
Author

I should have included that this is on Mac OSX with Apple silicon. Sorry, it's early. The saved game is too large, even compressed, so I've made it available here: https://www.mattshouse.com/Empress_Catherine_of_Britannia_1219_10_13.ck3

@crschnick
Copy link
Owner

Do you have any setting configured to save differently? Looking at my reference, your save reports the wrong compression type compared to what it actually is. Your save reports 2:

, but should actually be 0

@mchappee
Copy link
Author

I didn't change or see any settings that would have modified how CK3 saves the file. I currently can't save from PDX-Unlimited because the game files are "read-only", though they are not read-only on disk. (see attached)
CK3-reeadonly

@crschnick
Copy link
Owner

That means that they are ironman encrypted. If you click on the melt button, it should create an editable copy.

@mchappee
Copy link
Author

Sorry, I didn't mean to hijack the initial problem of the Zip functionality, but thanks for the tip. The autosaves import correctly, but the manual saves throw the Zip exception. No external modifications required. CK3 1.14.1 from Steam. Mac OSX 15.1 on Apple silicon with M4 processor.

@crschnick
Copy link
Owner

And that Zip error happens for all manual saves?

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