Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeCad crashes trying to import this file #59

Open
bitingsock opened this issue Aug 28, 2022 · 6 comments
Open

FreeCad crashes trying to import this file #59

bitingsock opened this issue Aug 28, 2022 · 6 comments

Comments

@bitingsock
Copy link

Installed from the Addon Manager.

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods: 
  * InventorLoader 1.3.0
  * sheetmetal 0.2.56

crash.log
Fully parametric ball bearing.zip

@jmplonka
Copy link
Owner

jmplonka commented Oct 25, 2022

It's because of an access violation caused by trying to generate a cone surface out of a revoluted line.
eg:

import Part
V = App.Vector
apex = V(0.0, 0.0, -65.00000000000001)
center = V(0.0, 0.0, -26.25)
major = V(38.75, 0.0, 0.0)
axis = V(0.0, 0.0, -1.0)
line = Part.Line(apex, center + major).toShape()
line.revolve(center, axis, 360.0)

@jmplonka
Copy link
Owner

According to Chris_G, line has to be created not with Part.Line but rather with Part.LineSegment.

@luzpaz
Copy link
Contributor

luzpaz commented Oct 26, 2022

Can freecad python interpreter be adjusted to recognize this an output recommended command instead of crashing ?

@numericOverflow
Copy link

I've got a similar issue. FreeCad 0.20.1 crashes whenever I try to import the attached *.f3d file.

crash.log

f3d_files.zip
The "Holder_v13.f3d" crashes freecad
"Front_Rev_1_v9.f3d" doesn't crash freecad, but nothing gets converted.

OS: Windows 10 Version 2009
Word size of FreeCAD: 64-bit
Version: 0.20.1.29410 (Git)
Build type: Release
Branch: releases/FreeCAD-0-20
Hash: f5d13554ecc7a456fb6e970568ae5c74ba727563
Python 3.8.10, Qt 5.15.2, Coin 4.0.1, Vtk 8.2.0, OCC 7.6.3
Locale: English/United States (en_US)
Installed mods:

  • Dracula 0.0.2
  • InventorLoader 1.3.0

@luzpaz
Copy link
Contributor

luzpaz commented Apr 2, 2023

@tomate44 do you mind weighing in again ?

Edit: #59 (comment)

@tomate44
Copy link

tomate44 commented Apr 3, 2023

It is a OCCT crash that seem to happen here :
https://github.com/FreeCAD/FreeCAD/blob/master/src/Mod/Part/App/TopoShape.cpp#L2579
I tried to put the crashing function into a try/catch block, without luck.
A more skilled dev should have a look.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants