Export (attached) as DAE file crashes FreeCAD

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!
User avatar
hedgehog
Posts: 17
Joined: Sun Apr 09, 2017 5:39 am

Export (attached) as DAE file crashes FreeCAD

Post by hedgehog »

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17


Hi, I don't seem to have permission to file a bug - or I can't see the create button/function. Which is strange because I created a bug a few days ago... Anyway, that is why I am going to ask anyone who can confirm this bug to report it via Mantis:

1. Open the attached file in FreeCAD.
2. Export it as DAE file
3. Watch while FreeCAD thinks then crashes.

Appreciate anyone taking and look at this an raising it further.

Best wishes
Hedgehog
Attachments
defect-example.fcstd
(339.14 KiB) Downloaded 86 times
User avatar
kkremitzki
Veteran
Posts: 2515
Joined: Thu Mar 03, 2016 9:52 pm
Location: Illinois

Re: Export (attached) as DAE file crashes FreeCAD

Post by kkremitzki »

You didn't specify what you have selected in the tree view, so I decided to do Shift+B and box select the visible part, which got me a few of the meshes in the tree view. I exported these as a DAE and could reproduce the crash:

Code: Select all

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10792 (Git)
Build type: None
Branch: master
Hash: 3b50a786f351339dd0c791b4e0e0e403f86033f0
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 7.1.0
Like my FreeCAD work? I'd appreciate any level of support via Patreon, Liberapay, or PayPal! Read more about what I do at my blog.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Export (attached) as DAE file crashes FreeCAD

Post by NormandC »

Hello Hedgehog,
hedgehog wrote:Hi, I don't seem to have permission to file a bug
Please read the Bug submission guidelines topic at the very top of this forum. It explains that the first thing to do is to post here before creating a bug report.
hedgehog wrote:Open the attached file in FreeCAD.
How did you create this file? It contains a series of unconnected meshes. This is obviously a model to be 3D printed, in my opinion there should not be multiple separate meshes, but a single one forming a manifold "solid mesh".

I'm not saying this causes the crash, I'm just saying you may have trouble exporting to a valid mesh file to print it.
hedgehog wrote:3. Watch while FreeCAD thinks then crashes.
I didn't get a crash: FreeCAD did seem to hang for a couple of minutes, meanwhile it used up all my available RAM (7GB out of 8) and went and used up half of my swap partition (4,4GB out of 8). :shock: I purchased this desktop PC in 2012 and I've been using one version of Ubuntu or the other, and in all this time this is the first time my swap ever gets used to more than a couple of hundred MBs. Even now after closing FreeCAD and getting my RAM back the swap still uses 700MB, and my system is not very responsive. I'm rebooting as soon as I post this reply! :?

I did save a *.dae file, will report on what it looks like in a few minutes.
Last edited by NormandC on Thu Apr 13, 2017 3:19 am, edited 1 time in total.
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Export (attached) as DAE file crashes FreeCAD

Post by NormandC »

Exported .dae file imports back in FreeCAD in seconds, seemingly identical to the original FCStd file. I'm not attaching it here because it's 1.6MB.

BTW all the meshes together have more than 22,000 faces, it is needless to have so many small facets, no 3D printer will take advantage of such a resolution.

Also, I just found that all the meshes that are labeled "MeshXXX" are invalid as they contain no vertex, no edge nor face.

OS: Ubuntu 16.04.2 LTS
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6707 (Git)
Build type: None
Branch: releases/FreeCAD-0-16
Hash: 5465bc47c95db45e0be85dc0e2872419efadce0f
Python version: 2.7.12
Qt version: 4.8.7
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Export (attached) as DAE file crashes FreeCAD

Post by NormandC »

I just tested export again, this time only selecting the valid meshes. Same thing, FreeCAD starts to use up all my RAM at an astonishingly fast rate.
jmaustpc
Veteran
Posts: 11207
Joined: Tue Jul 26, 2011 6:28 am
Location: Australia

Re: Export (attached) as DAE file crashes FreeCAD

Post by jmaustpc »

NormandC wrote:FreeCAD starts to use up all my RAM at an astonishingly fast rate.

Oh dear, your poor RAM. By the way, what is his name? Ok it's not a Ram exactly but I just got a new young billy goat, he is now named Charlie Clive Junior and he is so quiet and adorable. My children took him for a ride in the wheel burrow yesterday. He is only a few months old and is very cute.

Sorry I couldn't resist the comment.... :lol:
User avatar
yorik
Founder
Posts: 13660
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: Export (attached) as DAE file crashes FreeCAD

Post by yorik »

The DAE export script eating all the memory with big files is not something new...
Since the job is done by pycollada and not ourselves, unfortunately it is hard to solve...
User avatar
NormandC
Veteran
Posts: 18589
Joined: Sat Feb 06, 2010 9:52 pm
Location: Québec, Canada

Re: Export (attached) as DAE file crashes FreeCAD

Post by NormandC »

I never export to COLLADA (had to install the python-collada package), so this explains that. That kind of memory leak is pretty insane!

I see this issue has not been reported to the project: https://github.com/pycollada/pycollada/issues

Since I have no use for COLLADA, I'm not feeling up to reporting it... :oops:
User avatar
hedgehog
Posts: 17
Joined: Sun Apr 09, 2017 5:39 am

Re: Export (attached) as DAE file crashes FreeCAD

Post by hedgehog »

Hi,
Thank you all for your feedback. I'll report this to pycollada. The source of the meshes was someone exporting a DAE file out of SketchUp.

The pycollada issue is here
https://github.com/pycollada/pycollada/issues/64

Thanks again.
Best wishes
Hedgehog
User avatar
hedgehog
Posts: 17
Joined: Sun Apr 09, 2017 5:39 am

Re: Export (attached) as DAE file crashes FreeCAD

Post by hedgehog »

NormandC wrote:Hello Hedgehog,
hedgehog wrote:Hi, I don't seem to have permission to file a bug
Please read the Bug submission guidelines topic at the very top of this forum. It explains that the first thing to do is to post here before creating a bug report.
In my defense I did read that forum post, and understand the need for it.
I understood the first paragraph to mean nearly the opposite of your interpretation.
At best we can agree that the first paragraph does not say you must/should post here before posting a bug.

Best wishes
Hedgehog
Post Reply