FreeCAD 0.19 makes huge files

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!
bruce
Posts: 47
Joined: Sun Aug 11, 2019 8:46 pm

FreeCAD 0.19 makes huge files

Post by bruce »

I've been working on a design in FreeCAD. All of a sudden yesterday, the file size produced by the program was 21MB, today it has grown to 24MB.

The design is not overly complicated.

I'm not sure how to reproduce the problem, other than to supply the offending files.

The file takes quite a while to open, but does eventually do so.

I'm not able to attach either of the files to this post as they are both too large. Below are dropbox links to the files
https://www.dropbox.com/s/6dcnmryph8v8j ... FCStd?dl=0
https://www.dropbox.com/s/qrrnwxb0gm3do ... FCStd?dl=0

Thanks in advance for your time.

Bruce

OS: Debian GNU/Linux bullseye/sid (GNOME/gnome)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.24291 (Git) AppImage
Build type: Release
Branch: (HEAD detached at 0.19.2)
Hash: 7b5e18a0759de778b74d3a5c17eba9cb815035ac
Python version: 3.8.8
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.4.0
Locale: English/Canada (en_CA)
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 makes huge files

Post by chrisb »

bruce wrote: Fri May 07, 2021 10:06 pm The file takes quite a while to open, but does eventually do so.
The first file loads already since 15 minutes. Is this normal or should I kill FreeCAD?

Edit: It is finally loaded.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 makes huge files

Post by chrisb »

If I turn the TechDraw view very slightly the size drops from 22MB to 2.1MB - which still seems rather big for this model, even after removeing the mesh. Loading time is 5 seconds.
Attachments
SnipScreenshot-16907a.png
SnipScreenshot-16907a.png (15.39 KiB) Viewed 1489 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bruce
Posts: 47
Joined: Sun Aug 11, 2019 8:46 pm

Re: FreeCAD 0.19 makes huge files

Post by bruce »

If I turn the TechDraw view very slightly the size drops from 22MB to 2.1MB
I've deleted all the Techdraw view entirely and saved the file, it is still 21MB for me.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 makes huge files

Post by chrisb »

If I delete the Page, file size drops from 2218996 to 2214761 bytes. You can open https://owncloud.gwdg.de/index.php/s/ft ... C/download and check what happens on a recompute. Please report back, the space to provide the file is limited.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
User avatar
kwahoo
Posts: 680
Joined: Fri Nov 29, 2013 3:09 pm
Contact:

Re: FreeCAD 0.19 makes huge files

Post by kwahoo »

1. Open your file with an archive manager (FcStd is just a ZIP).
2. Delete all the huge 32MiB *.brp files
3. Save the FcStd file, and open it in FreeCAD
4. Recompute all object, and save.
5. Check if there is any visual difference.
bracket19.FCStd
(1.4 MiB) Downloaded 35 times
bruce
Posts: 47
Joined: Sun Aug 11, 2019 8:46 pm

Re: FreeCAD 0.19 makes huge files

Post by bruce »

@chrisb
You can open https://owncloud.gwdg.de/index.php/s/ft ... C/download and check what happens on a recompute. Please report back, the space to provide the file is limited.
Downloaded the file, opened and recomputed. The file size is now 2.6 MB (2,575,756 bytes).

@kwahoo
1. Open your file with an archive manager (FcStd is just a ZIP).
2. Delete all the huge 32MiB *.brp files
3. Save the FcStd file, and open it in FreeCAD
4. Recompute all object, and save.
5. Check if there is any visual difference.
I did this and FreeCAD refused to open the file after I deleted all the > 30MB *.brp files. The following error was provided by FreeCAD:

Code: Select all

10:25:23  Fatal Error at file /home/bruce/3d prints/Bruce/XB6 Modem bracket/bracketx.FCStd, line 1, char 1
10:25:23  Exception message is: 
10:25:23  invalid document structure
10:25:23  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: Error reading compression file: /home/bruce/3d prints/Bruce/XB6 Modem bracket/bracketx.FCStd
10:32:29  Fatal Error at file /home/bruce/3d prints/Bruce/XB6 Modem bracket/bracketx.FCStd, line 1, char 1
10:32:29  Exception message is: 
10:32:29  invalid document structure
10:32:29  Traceback (most recent call last):
  File "<string>", line 1, in <module>
<class 'OSError'>: Error reading compression file: /home/bruce/3d prints/Bruce/XB6 Modem bracket/bracketx.FCStd
I downloaded the bracket19.FCStd file that you attached - I cannot see any problems or changes to the model that I supplied. I supposed I must have done something incorrect when I deleted the >32MB *.brp files from my original archive.
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 makes huge files

Post by chrisb »

Just for the record. My OCC version is newer:

OS: macOS 10.16
Word size of FreeCAD: 64-bit
Version: 0.20.24825 (Git)
Build type: Release
Branch: master
Hash: ccc4151b3020969450325466e385850783795325
Python version: 3.9.2
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.1
Locale: C/Default (C)
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
bruce
Posts: 47
Joined: Sun Aug 11, 2019 8:46 pm

Re: FreeCAD 0.19 makes huge files

Post by bruce »

Is there enough here to open a bug up? Do I need to create a more detailed reproduction scenario?

Thanks
Bruce
chrisb
Veteran
Posts: 53922
Joined: Tue Mar 17, 2015 9:14 am

Re: FreeCAD 0.19 makes huge files

Post by chrisb »

bruce wrote: Wed May 12, 2021 1:17 am Is there enough here to open a bug up?
Not yet. Is there anyone out there having a newer OCC version on a Linux system?
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply