paperweight icon indicating copy to clipboard operation
paperweight copied to clipboard

applyPatches on a fork of a fork fails with java.util.zip.ZipException: invalid code lengths set

Open Malfrador opened this issue 2 years ago • 1 comments

When trying to use applyPatches to build a fork of a fork (Pufferfish in this case), paperweight fails with a java.util.zip.ZipException: invalid code lengths set.

My build.gradle.kts: https://pastes.dev/r8nL5VhW6X Full log with --info --stacktrace: https://pastes.dev/zJxfUUBTSb Running gradle with --debug was not possible due to gradle running out of memory (even though I gave it 16 GB using org.gradle.jvmargs= in gradle.properties

Gradle is running in WSL2 with openjdk 17.0.2. McDevImports.txt is empty and there are no patches currently. Building Paper itself in the same environment works fine, as does building a direct fork of paper

The .zip and .jar files in .gradle\caches\paperweight\upstreams\paper\.gradle\caches\paperweight\taskCache seem to be valid according to 7zips "Test zip file" feature.

Malfrador avatar Apr 13 '22 21:04 Malfrador

I have this issue too.

AlexisBG06 avatar Jun 25 '22 16:06 AlexisBG06