Opening an fcstd file that contains an iges import causes memory overflow and system crash

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
thomas-neemann
Veteran
Posts: 11915
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Opening an fcstd file that contains an iges import causes memory overflow and system crash

Post by thomas-neemann »

GeneFC wrote: Fri Aug 19, 2022 2:12 pm ....

thanks for the cooperation. defective import files can always occur again. freecad is not to blame for that. freecad should not crash and certainly not crash the entire system. If this error cannot be fixed or is not fixed, I would recommend doing imports (under linux) in a virtual box
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Opening an fcstd file that contains an iges import causes memory overflow and system crash

Post by TheMarkster »

No crash here, same error:

<Part> ViewProviderExt.cpp(1267): Cannot compute Inventor representation for the shape of g3_20#G3_body003: NCollection_Array1::Value

The wait cursor remained after the file was finished loading until I moved the mouse cursor, leading me to think the loading had not yet finished.

Code: Select all

OS: Windows 10 (10.0)
Word size of FreeCAD: 64-bit
Version: 0.21.29485 (Git)
Build type: Release
Branch: master
Hash: a236ca843fdd6674afb6d7ed1454fbd3b547f5ea
Python 3.8.13, Qt 5.12.9, Coin 4.0.0, Vtk 9.1.0, OCC 7.5.3
Locale: English/United States (en_US)
Installed mods: 
  * A2plus 0.4.56a (Disabled)
  * Assembly4 0.12.3
  * BOLTSFC
  * CurvedShapes 1.0.4
  * Curves 0.3.0
  * DynamicData 2.46.0
  * fasteners
  * FCGear
  * frame 0.1.0
  * FreeCAD_mcm_addon
  * gears
  * hfcInventorMentorA
  * InvGears
  * lattice2
  * Manipulator
  * MeshRemodel 1.8919.0
  * POV-Ray-Rendering
  * sheetmetal 0.2.54
  * ThreadProfile 1.82.0
TheMarkster
Veteran
Posts: 5513
Joined: Thu Apr 05, 2018 1:53 am

Re: Opening an fcstd file that contains an iges import causes memory overflow and system crash

Post by TheMarkster »

I tried running it in a debugger inside a Virtualbox VM (Ubuntu guest, windows host). I got the same error message in the report view. I could not see anything in the 3d view, but could see the bodies in the combo view. Entire guest OS became unresponsive for a few seconds, then FreeCAD simply closed. The debugger did not present the location of the crash as it usually does. In the console the message "Killed" was displayed. My guess is the system killed FreeCAD due to out of memory issues, but that's only a guess. I have 5177MB allocated to the guest, 16GB system total.
User avatar
thomas-neemann
Veteran
Posts: 11915
Joined: Wed Jan 22, 2020 6:03 pm
Location: Osnabrück DE 🇩🇪
Contact:

Re: Opening an fcstd file that contains an iges import causes memory overflow and system crash

Post by thomas-neemann »

TheMarkster wrote: Fri Aug 19, 2022 6:09 pm ...
thanks for the cooperation
Gruß Dipl.-Ing. (FH) Thomas Neemann

https://www.youtube.com/@thomasneemann5 ... ry=freecad
Post Reply