Print at Feb 2, 2026, 12:33:41 AM
Posted by AeowynFraser at Feb 18, 2016, 5:16:36 AM
Unable to open file
I downloaded the update today, and shortly afterward was unable to open my file. I'd try and open my file and in doing so it would shut the program down and I'd get this:

I am on a iMac and my Java is up to date.


I am including a copy of the file which I've downloaded to MediaFire:
http://www.mediafire.com/download/71gg18fflzx...Castle_Redraft_Alt_3.sh3d
----------------------------------------


Posted by Puybaret at Feb 18, 2016, 9:23:22 AM
Re: Unable to open file
Ouch! 4.5 GB! It is huge. I'm going to check.
As you reported you had the same problem with the previous version, I guess this has nothing to do with the new version 5.2 released yesterday.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by Puybaret at Feb 18, 2016, 3:24:14 PM
Re: Unable to open file
I fixed your file. Please download it with the link I sent you by email.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by AeowynFraser at Feb 18, 2016, 8:21:30 PM
Re: Unable to open file
Thank you so much!
I downloaded and opened the file and it came up real quick. I saved it to my computer - replacing the original - and then closed out the program. I then opened clicked on the file and it opened just fine.
I'm just a little curious; why wouldn't it open?
----------------------------------------


Posted by Puybaret at Feb 18, 2016, 8:32:45 PM
Re: Unable to open file
Great it works! smile
I guess the program didn't have enough memory to handle such a huge file.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by AeowynFraser at Feb 20, 2016, 8:44:03 PM
Re: Unable to open file
One more question. What should I do to insure that it doesn't happen again?
----------------------------------------


Posted by okh at Feb 20, 2016, 9:16:47 PM
Re: Unable to open file
You may want to purge some of the big objects / textures from your file. 4,5 GB really is enormous. Or to put it differently, biggest SH33D file I ever made was just a couple of MB - 1/1000 of yours. And that had a LOT of detail. It is likely you have some very big objects / textures that you should remove - or just move to another file (temporarily).

Apart from your gut feeling, there is no way of determining where the really big objects are from within SH3D. But you could try to explore a copy of the file to give you a hint. One way of going about that is described in thread 6105.

ok

Posted by Puybaret at Feb 20, 2016, 9:22:26 PM
Re: Unable to open file
What should I do to insure that it doesn't happen again?
just use the version 5.2 smile
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by AeowynFraser at Feb 20, 2016, 9:35:50 PM
Re: Unable to open file
Thank you, both okh and Puybaret.
I'm currently going through my furniture library to see if deleting some items will help free up some memory in the program. Also, when I save it, I'm clicking on "Save and compress"; after doing that it seems the file is now 29.7 MB. That is smaller than 4.5 GB right? I'm not sure the which is bigger, megabytes or gigabytes.
I have replaced version 5.1 on my computer with version 5.2 so there's no chance of my using the older version for it now.
----------------------------------------


Posted by AeowynFraser at Feb 20, 2016, 9:37:34 PM
Re: Unable to open file
I had also "fooled around" with modifying floor plans that I'd seen online using the program and saved those to my computer. If I were to delete those, would that help me with avoiding this problem as well?
----------------------------------------


Posted by Puybaret at Feb 20, 2016, 10:42:00 PM
Re: Unable to open file
Actually, if I was able to fix AeowynFraser's file and avoid it happens again in version 5.2, it's not by chance but because Mazoola's report gave me the hints to resolve this issue. Following this experience, here's a way to fix a buggy file by yourself:
- make a copy of your sh3d file to be sure that you won't lose anything
- change its .sh3d extension by .zip
- unzip the file with default system tool
- open the ContentDigests file found among all the unzipped files with a text editor
- in that file, look for ".jpg" or ".png". If you find no occurrence, stop now, there's no space to save in your sh3d file (or not because of the current case)
- for each occurrence of a ".jpg" or ".png" image, delete all the files found in the folder and parent folders of the referenced image, except in the unzipped folder itself and the image itself. For exemple, if you find jpg in a line "Name: 117/110/texture.jpg", remove all the files found in folder "117" except the sub folder "110", and all files found in "117/110" sub folder except the file "texture.jpg".
- once done, delete the ContentDigests file (if you keep it, Sweet Home 3D will report an error when it checks the consistency of the opened sh3d file you'll rebuild)
- zip the remaining files and folders together with the archive creation tool of the system (caution: the file Home and the files numberered 1, 2, 3, 4... should appear at the root of the zipped file)
- change the .zip extension to .sh3d
- voila! You've got a lighter file.

If required, I could program a small utility that automates these steps, but as I don't know how many people are annoyed by this issue, I don't know if it could worth it.
----------------------------------------
Emmanuel Puybaret, Sweet Home 3D creator

Posted by okh at Feb 20, 2016, 10:59:25 PM
Re: Unable to open file
..29.7 MB. That is smaller than 4.5 GB right?
Right, you just downsized to less than 1% smile GB (GigiByte) is 1000 MB (MegaByte) - roughly speaking (actually a bit more).

Just to make sure, the libraries in the software will not make a difference. The point - in your case - are the items in the plan itself (the furniture list bottom left pane).
.. "fooled around" with modifying floor plans that I'd seen online using the program and saved those to my computer. If I were to delete those, would that help me with avoiding this problem as well?
If I understand correctly, no, that will not make a difference - at least not if you do not open many files at the same time.

But you may be in the clear now. That said, always good to save changes in a new file. That way you can always go back to the last one if you bloat your file by accident.

Posted by HawkDawg at Feb 26, 2016, 1:46:44 PM
Re: Unable to open file
I mentioned this in another topic but figured I'd mention it here too.

Just for informative purposes, 7zip (which is free) will open sh3f files, as well as sh3d files, without the need to convert to zip format. wink
----------------------------------------
Hawk