Save File broken - How to fix?

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
SirBlubbalot
Posts: 3
Joined: Thu Aug 15, 2019 9:49 am

Save File broken - How to fix?

Post by SirBlubbalot »

Hi,

I have been working on my first part for a few days now, and it appears that the save file was somehow corrupted.
I exported the part as .stl and saved as .FCStd. The .stl was fine and is displaying correctly, the .FCStd however is nothing like it was when I saved it.
All that is left are some (all?) basic shapes, most of which refuse to display when marked as visible.

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.16131 (Git)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 3129ae4296e40ed20e7b3d460b86e6969acbe1c3
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)

So yeah, any hope of fixing this? Also would be interesting to know how to avoid this in the future.

Attached: Current broken .FCStd (v1.0 final) , last working .FCStd (v0.4 - a few revisions ago, maybe helps) , and current .stl
Attachments
AÜ Gehäuse v1.0 Final Links.stl
(72.15 KiB) Downloaded 25 times
AÜ Gehäuse v0.4.FCStd
(471.45 KiB) Downloaded 24 times
AÜ Gehäuse v1.0 Final.FCStd
(906.43 KiB) Downloaded 23 times
Last edited by SirBlubbalot on Thu Aug 15, 2019 10:54 am, edited 1 time in total.
chrisb
Veteran
Posts: 54165
Joined: Tue Mar 17, 2015 9:14 am

Re: Save File broken - How to fix?

Post by chrisb »

Hi and welcome to the forum!
SirBlubbalot wrote: Thu Aug 15, 2019 9:59 am Attached: Current .FCStd, last working .FCStd
It is helpful if you tell us which one is which.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 54165
Joined: Tue Mar 17, 2015 9:14 am

Re: Save File broken - How to fix?

Post by chrisb »

working: AÜ Gehäuse v0.4.FCStd
broken: AÜ Gehäuse v1.0 Final.FCStd
Reading the file yields an error in report view: "Fatal Error at file /private/tmp/AÜ Gehäuse v1.0 Final.FCStd, line 1842, char 27
Invalid Document.xml: whitespace expected"

later recompute show lots of errors "Not enough shape objects linked".

Are you sure that you have enough disk space available?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
SirBlubbalot
Posts: 3
Joined: Thu Aug 15, 2019 9:49 am

Re: Save File broken - How to fix?

Post by SirBlubbalot »

chrisb wrote: Thu Aug 15, 2019 10:46 am It is helpful if you tell us which one is which.
Sorry, thought that was obvious, edited
chrisb wrote: Thu Aug 15, 2019 10:53 am working: AÜ Gehäuse v0.4.FCStd
broken: AÜ Gehäuse v1.0 Final.FCStd
Reading the file yields an error in report view: "Fatal Error at file /private/tmp/AÜ Gehäuse v1.0 Final.FCStd, line 1842, char 27
Invalid Document.xml: whitespace expected"

later recompute show lots of errors "Not enough shape objects linked".

Are you sure that you have enough disk space available?
The file lives on a Dropbox, both my Computer and the Dropbox have more than enough space
chrisb
Veteran
Posts: 54165
Joined: Tue Mar 17, 2015 9:14 am

Re: Save File broken - How to fix?

Post by chrisb »

The issue seems to come from object "Fusion", where something went out of whack. I looked in Document.xml inside of the FCStd file and found non closed quotes for a Link value:

Code: Select all

                <Property name="Shapes" type="App::PropertyLinkList">
                    <LinkList count="2">
                        <Link value="                    </Property>
                </Properties>
I have no idea how this could have happened, but the experts here may tell you more.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
SirBlubbalot
Posts: 3
Joined: Thu Aug 15, 2019 9:49 am

Re: Save File broken - How to fix?

Post by SirBlubbalot »

Thanks very much, simply deleting that property seems to have fixed it.
TheMarkster
Veteran
Posts: 5512
Joined: Thu Apr 05, 2018 1:53 am

Re: Save File broken - How to fix?

Post by TheMarkster »

In cases like this if you have backups created, such as .FCStd1 files, be sure to *not* save the file again, but instead try renaming of the backup files and seeing if it can be opened.
Post Reply