Romania
Joined: Apr 24, 2014
Post Count: 630
Status:
Offline
Re: ZipException: invalid entry CRC on opening the sh3d file
Wile You are under linux I recommend You to use the official version from this site (forget the repository versions ) Eventually read this post
After that I'll be able to help You.
Anyway Your file 3UrP maybe need a extension like sh3d or zip or tgz
---------------------------------------- A computer program does what you tell it to do, not what you want it to do. Murphy's Law When all else fails, read the instructions. Murphy's Law If you don't like "AS IS", DIY. Dorin's law
Italy
Joined: Nov 17, 2021
Post Count: 452
Status:
Offline
Re: ZipException: invalid entry CRC on opening the sh3d file
however I can load the demos
This isn't so weird since demos are embedded within the jars, so as long the application starts it will always be able to load the demos.
It could be that the JDKs use some native system call to handle compressed files (but not the jars), so a system update or other software installation could affect the JVM behaviour. Have you update your OS or any other application?
Joined: Mar 25, 2022
Post Count: 18
Status:
Offline
Re: ZipException: invalid entry CRC on opening the sh3d file
yes I updated several packages like kernel and libzip but as I can uncompress the files outside sweethome3d I wouldnt suspect a problem with external packages explicitly the crc checksum error would have to occur if it was system issue
Italy
Joined: Nov 17, 2021
Post Count: 452
Status:
Offline
Re: ZipException: invalid entry CRC on opening the sh3d file
Sorry, but I have to contradict you :) There are 2 ways a zip can be opened: - as a file, meaning a determined amount of data, which you can access randomly; - as a stream, meaning a flow of data which you can read only sequentially.
SH3D uses the latter (ZipInputStream is mentioned in the stacktrace). It is well(?) know that this way of opening zip files may cause problems... I won't report the details here, but you if you are interested you can learn more here: https://commons.apache.org/proper/commons-compress/zip.html
So you may try rollback the libzip upgrade. This isn't a solution, but if we can identify the bug we can find a workaround and possibily fix it in the future. Please also post the version of the libzip you're using.