Joined: Mar 25, 2022
Post Count: 18
Status:
Offline
ZipException: invalid entry CRC on opening the sh3d file
com.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) at java.xml/com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragm entScannerImpl.java:534) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:888) at java.xml/com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:824) at java.xml/com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141) at java.xml/com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1216) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:635) at java.xml/com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:324) at java.xml/javax.xml.parsers.SAXParser.parse(SAXParser.java:197) at com.eteks.sweethome3d.io.DefaultHomeInputStream.readHomeXML(Unknown Source) at com.eteks.sweethome3d.io.DefaultHomeInputStream.readHome(Unknown Source) ... 10 more
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.
Italy
Joined: Nov 17, 2021
Post Count: 452
Status:
Offline
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.
France
Joined: Nov 7, 2005
Post Count: 9420
Status:
Offline
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
Italy
Joined: Nov 17, 2021
Post Count: 452
Status:
Offline
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
Joined: Mar 25, 2022
Post Count: 18
Status:
Offline
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?