Download

Online

Gallery

Blog

  Index  | Recent Threads  | List Attachments  | Search
 Welcome Guest  |  Register  |  Login
Login Name  Password
 

Sweet Home 3D Forum



No member browsing this thread
Thread Status: Active
Total posts in this thread: 19
Posts: 19   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Post new Thread
Author
Previous Thread This topic has been viewed 2836 times and has 18 replies Next Thread
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
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.

Any chance to repair from there on?
[Apr 5, 2022, 4:26:21 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 406
Status: Offline
Reply to this Post  Reply with Quote 
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.
[Apr 5, 2022, 4:47:42 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
Re: ZipException: invalid entry CRC on opening the sh3d file


mv home.sh3d p/test.zip
cd p
unzip test.zip
rm test.zip
zip -r home.sh3d *


same 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
[Apr 5, 2022, 5:28:29 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 406
Status: Offline
Reply to this Post  Reply with Quote 
Re: ZipException: invalid entry CRC on opening the sh3d file

Can you share your sh3d file?
[Apr 5, 2022, 6:12:24 PM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
Re: ZipException: invalid entry CRC on opening the sh3d file

sure: http://ix.io/3UrP
[Apr 6, 2022, 10:55:33 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Puybaret
Expert
Member's Avatar

France
Joined: Nov 7, 2005
Post Count: 9178
Status: Offline
Reply to this Post  Reply with Quote 
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 developer
[Apr 6, 2022, 11:21:58 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Daniels118
Advanced Member
Member's Avatar

Italy
Joined: Nov 17, 2021
Post Count: 406
Status: Offline
Reply to this Post  Reply with Quote 
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
[Apr 6, 2022, 11:23:26 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
Re: ZipException: invalid entry CRC on opening the sh3d file

Puybaret: it does
curl -s http://ix.io/3UrP|base64 -d|xxd|head -n1
00000000: 504b 0304 1400 0808 0800 b89c 7e54 0000 PK..........~T..


Daniels118: the broken

curl -s http://ix.io/3UrP|base64 -d|md5sum
df57875ab20992ee800fa83fcace7c2a -

java -version
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+3)
OpenJDK 64-Bit Server VM (build 11.0.15+3, mixed mode)

pacman -Q sweethome3d
sweethome3d 6.6-4

[Apr 6, 2022, 11:49:05 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
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?
[Apr 6, 2022, 11:52:53 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
shellie222
Newbie




Joined: Mar 25, 2022
Post Count: 18
Status: Offline
Reply to this Post  Reply with Quote 
Re: ZipException: invalid entry CRC on opening the sh3d file


cat .eteks/sweethome3d/preferences.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd">
<properties>
<comment>Portable user preferences 3.0</comment>
<entry key="newWallThickness">7.62</entry>
<entry key="navigationPanelVisible">true</entry>
<entry key="gridVisible">true</entry>
<entry key="ignoredActionTip#1">CREATE_WALLS</entry>
<entry key="autoCompletionProperty#3">HomePieceOfFurnitureName</entry>
<entry key="language">en</entry>
<entry key="ignoredActionTip#2">CREATE_LABELS</entry>
<entry key="ignoredActionTip#3">CREATE_POLYLINES</entry>
<entry key="ignoredActionTip#4">CREATE_DIMENSION_LINES</entry>
<entry key="newWallBaseboardHeight">6.35</entry>
<entry key="roomFloorColoredOrTextured">false</entry>
<entry key="autoCompletionStrings#1">Basement,Ground floor,1st floor,2nd floor,3rd floor</entry>
<entry key="recentTextureImage#2">file:Texture-3-11126769014854438696.pref</entry>
<entry key="newWallBaseboardThickness">0.9525</entry>
<entry key="autoCompletionProperty#2">RoomName</entry>
<entry key="autoCompletionStrings#3">Front door,Door,Box,Triangle,Window,Round door frame,Curve staircase</entry>
<entry key="recentTextureImage#1">file:Texture-3-12060349776260716247.pref</entry>
<entry key="autoCompletionProperty#1">LevelName</entry>
<entry key="autoCompletionStrings#2">Bathroom,Bedroom,Kitchen,Living room</entry>
<entry key="observerCameraSelectedAtChange">true</entry>
<entry key="rulersVisible">true</entry>
<entry key="recentTextureName#2">Small bricks</entry>
<entry key="furnitureCatalogViewedInTree">true</entry>
<entry key="recentTextureName#1">Grey tiles</entry>
<entry key="recentColors">#6F3400,#CF0027</entry>
<entry key="recentTextureWidth#1">31.5</entry>
<entry key="recentTextureHeight#1">31.5</entry>
<entry key="recentTextureWidth#2">23.0</entry>
<entry key="recentHomes#1">/home/test/house.sh3d</entry>
<entry key="recentTextureHeight#2">14.9</entry>
<entry key="newHomeWallHeight">243.84</entry>
<entry key="newWallPattern">hatchUp</entry>
<entry key="magnetismEnabled">true</entry>
<entry key="extensibleUnit">METER</entry>
<entry key="autoSaveDelayForRecovery">600000</entry>
<entry key="furnitureModelIconSize">128</entry>
<entry key="furnitureViewedFromTop">false</entry>
<entry key="defaultValueAddedTaxPercentage">0.2</entry>
<entry key="valueAddedTaxEnabled">false</entry>
<entry key="wallPattern">hatchUp</entry>
<entry key="newFloorThickness">12.0</entry>
<entry key="recentTextureCreator#1">eTeks</entry>
<entry key="recentTextureCreator#2">eTeks</entry>
<entry key="aerialViewCenteredOnSelectionEnabled">false</entry>
<entry key="checkUpdatesEnabled">true</entry>
</properties>

[Apr 6, 2022, 11:54:44 AM] Show Printable Version of Post    View Member Profile    Send Private Message [Link] Report threatening or abusive post: please login first  Go to top 
Posts: 19   Pages: 2   [ 1 2 | Next Page ]
[ Jump to Last Post ]
Show Printable Version of Thread  Post new Thread

    Get Sweet Home 3D at SourceForge.net. Fast, secure and Free Open Source software downloads
   
© Copyright 2006-2024 eTeks - All rights reserved