|
Sweet Home 3D Forum » List all forums » » Forum: Features use and tips » » » Thread: ZipException: invalid entry CRC on opening the sh3d file |
|
| Print at Dec 20, 2025, 3:22:15 PM | |
| Posted by shellie222 at Apr 5, 2022, 4:26:21 PM |
ZipException: invalid entry CRC on opening the sh3d filecom.eteks.sweethome3d.model.RecorderException: Can't read home from /home/test/house.sh3d at com.eteks.sweethome3d.io.HomeFileRecorder.readHome(Unknown Source) at com.eteks.sweethome3d.viewcontroller.HomeController$29.call(Unknown Source) at com.eteks.sweethome3d.viewcontroller.HomeController$29.call(Unknown Source) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at com.eteks.sweethome3d.viewcontroller.ThreadedTaskController$1.run(Unknown Source) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.util.zip.ZipException: invalid entry CRC (expected 0xfb8b804d but got 0x93c7f7bb) at java.base/java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:410) at java.base/java.util.zip.ZipInputStream.read(ZipInputStream.java:199) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityManager$RewindableInputStream.read(XMLEntityManager.java:3062) at java.xml/com.sun.org.apache.xerces.internal.impl.io.UTF8Reader.read(UTF8Reader.java:303) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.load(XMLEntityScanner.java:1699) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLEntityScanner.skipSpaces(XMLEntityScanner.java:1433) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$TrailingMiscDriver.next(XMLDocumentScannerImpl.java:1374) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:605)I guess my file is somehow broken - how can I fix it? I already tried each of the sweethome3d files in work directory, but neither of them worked. I can though unzip the file and inspect the xml it contains. Any chance to repair from there on? |
| Posted by Daniels118 at Apr 5, 2022, 4:47:42 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file Maybe just few of the files contained in the sh3d archive are corrupted, but the program don't allow a partial loading. Try to unzip the sh3d file and zip it again using any zip program, then change the file extension from zip to sh3d. During unzip the program may also inform you about which files are corrupted, allowing for a deeper analysis. In any case don't try to alter the corrupted files, always work on a copy. |
| Posted by shellie222 at Apr 5, 2022, 5:28:29 PM |
Re: ZipException: invalid entry CRC on opening the sh3d filesame error on opening, different hashes though (which is not uncommon amongst different compressors) no errors during the process though btw. i did not update java/sh3d or anything |
| Posted by Daniels118 at Apr 5, 2022, 6:12:24 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file Can you share your sh3d file? |
| Posted by shellie222 at Apr 6, 2022, 10:55:33 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file sure: http://ix.io/3UrP |
| Posted by Puybaret at Apr 6, 2022, 11:21:58 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file The file you proposed isn't a ZIP file, it doesn't even start by PK magic number. ---------------------------------------- Emmanuel Puybaret, Sweet Home 3D creator |
| Posted by Daniels118 at Apr 6, 2022, 11:23:26 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file Is this the broken file or the one you repacked? 7zip does not show any CRC error and I can open it in SH3D without getting any error on screen nor in the console output. This could depend by a different configuration. I'm running SH3D 6.2a on OpenJDK 11.0.10 64 bit on Windows 10 Home. I have saved back your file using my SH3D installation, please check if it works: http://ix.io/3UrT |
| Posted by shellie222 at Apr 6, 2022, 11:49:05 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file Puybaret: it does curl -s http://ix.io/3UrP|base64 -d|xxd|head -n1 Daniels118: the broken |
| Posted by shellie222 at Apr 6, 2022, 11:52:53 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file it seems, I can not modify my post: i checked your file (9371de37fd1f74aba736459b2c7ca24b) - it does not work either (same error) what did you do though? |
| Posted by shellie222 at Apr 6, 2022, 11:54:44 AM |
Re: ZipException: invalid entry CRC on opening the sh3d file |
| Posted by shellie222 at Apr 6, 2022, 11:57:15 AM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file i also removed .etekssorry for the multiposts |
| Posted by Daniels118 at Apr 6, 2022, 12:44:48 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file what did you do though? I just opened it, then I've selected File->Save as. Are you able to create a new file, save it, and open it back without getting errors? Maybe you have updated your JDK and the new version has a different/bad zip implementation. You could try to start SH3D pointing to a different JDK. Anyway, don't worry, your files aren't corrupted :) |
| Posted by dorin at Apr 6, 2022, 1:30:16 PM |
|
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 |
| Posted by shellie222 at Apr 6, 2022, 2:11:49 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file Daniels, huh, unexpectedly Im not able to do so - i just tried that twice I did not update java since I installed sweethome3d - and it flawlessly worked before (opening and saving) I dont know what could have caused the now permanent misbehaviour - is there some debugging function ? As said, the repository version can not be the problem here - it worked before (no changes in java/sweethome packages happened). |
| Posted by shellie222 at Apr 6, 2022, 2:47:46 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file i tried openjre8 11 and 17 - all yield the same result however I can load the demos |
| Posted by Daniels118 at Apr 6, 2022, 4:33:32 PM |
|
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? |
| Posted by shellie222 at Apr 6, 2022, 4:56:43 PM |
|
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 |
| Posted by Daniels118 at Apr 6, 2022, 5:12:06 PM |
|
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. |
| Posted by shellie222 at Apr 6, 2022, 6:30:42 PM |
|
Re: ZipException: invalid entry CRC on opening the sh3d file I would not have thought that did the trick apparently |
|
|
Current timezone is GMT Dec 20, 2025, 3:22:15 PM |