[bug] Fillet Ok on Debian, Failed on OS X

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
User avatar
nemesis
Posts: 372
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

[bug] Fillet Ok on Debian, Failed on OS X

Post by nemesis »

hello.
I think I found a Drawback on the OS X released build,

OSX information :
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6698 (Git)
Build type: Release
Branch: (detached from ca7c5d3)
Hash: ca7c5d31a4d61f32a25b71025b14641a6e378328
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17


Debian information (on a virtual machine in vrtualbox) :
deb from here

OS: Debian GNU/Linux 8.4 (jessie)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6688 (Git)
Build type: None
Branch: master
Hash: 7ee0afbf7ac26dadb391e277a9ce278e3c4bee4c
Python version: 2.7.9
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.7.0


I know this is not exactly the same commit, my concern is that the OS X one is the more recent (and supposed to be the released one)

the file I used is available here

when I try to modify the las Fillet, the modification seams Ok, but after 2 or 3 seconds free cad freeze. doesn't happen in Debian.
by the way, I started the design of this part on OS X 0.16 6692 (git) and just updated to the last version yesterday (As I saw a Release version)

so I use the "freecad -l" and here is the result :

Code: Select all

FreeCAD 0.16, Libs: 0.16R6698 (Git)
© Juergen Riegel, Werner Mayer, Yorik van Havre 2001-2015
  #####                 ####  ###   ####  
  #                    #      # #   #   # 
  #     ##  #### ####  #     #   #  #   # 
  ####  # # #  # #  #  #     #####  #   # 
  #     #   #### ####  #    #     # #   # 
  #     #   #    #     #    #     # #   #  ##  ##  ##
  #     #   #### ####   ### #     # ####   ##  ##  ##

Fasteners workbench Loaded
2016-04-10 14:30:52.511 FreeCAD[4961:220516] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
2016-04-10 14:30:53.407 FreeCAD[4961:220516] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
2016-04-10 14:30:54.462 FreeCAD[4961:220516] modalSession has been exited prematurely - check for a reentrant call to endModalSession:
Coin warning in cc_glglue_instance(): Error when setting up the GL context. This can happen if there is no current context, or if the context has been set up incorrectly.
*** Abort *** an exception was raised, but no catch was found.
	... The exception is:SIGSEGV 'segmentation violation' detected. Address 0
no error message if I do the same on debian
wmayer
Founder
Posts: 20242
Joined: Thu Feb 19, 2009 10:32 am
Contact:

Re: [bug] Fillet Ok on Debian, Failed on OS X

Post by wmayer »

I know this is not exactly the same commit, my concern is that the OS X one is the more recent (and supposed to be the released one)
With
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.6699 (Git)
Build type: Release
Branch: master
Hash: 19bc5077c89347a620f22a0aeb78c5422ee4473d
Python version: 2.7.6
Qt version: 4.8.5
Coin version: 4.0.0a
OCC version: 6.6.0

it works well. So, it's not related to the FreeCAD revision number but very likely to the used occ version. Unfortunately, it often happens with occ that things in newer versions don't work any more that worked perfectly in older versions.
User avatar
nemesis
Posts: 372
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: [bug] Fillet Ok on Debian, Failed on OS X

Post by nemesis »

:cry:
wmayer wrote:Unfortunately, it often happens with occ that things in newer versions don't work any more that worked perfectly in older versions.
so I try with this version:

OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.6726 (Git)
Build type: Release
Branch: (detached from 8aaae0b)
Hash: 8aaae0ba2225d052d580e504d73707cb60e91717
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17

basically, fillet don't work, but the good point is that Freecad didn't freeze. so I'm going to try to find the problematic edge....
hope this is specific to my part and one problematic edge.

[edit : false, that's the same, it froze as the main release.]
User avatar
nemesis
Posts: 372
Joined: Tue Mar 25, 2014 11:24 pm
Location: France, Lyon

Re: [bug] Fillet Ok on Debian, Failed on OS X

Post by nemesis »

new try with :
OS: Windows 7
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6697 (Git)
Build type: Release
Branch: master
Hash: 00c8ad4698a7fe81353aa81bd5a5130eab5999f8
Python version: 2.7.8
Qt version: 4.8.6
Coin version: 4.0.0a
OCC version: 6.8.0.oce-0.17

and it works great.
I think I'm going to erase all my freecad install on the Imac, and all the preference and givi a new try. OCC is the same, but Coin is different.
ian.rees
Posts: 696
Joined: Sun Jun 15, 2014 3:28 am
Contact:

Re: [bug] Fillet Ok on Debian, Failed on OS X

Post by ian.rees »

I turned down the fillet radii to 0.3mm and got BRep_API: command not done in the Report view once, then the next time I tried got a crash. Sorry, don't have time to look into this further tonight (or likely tomorrow):

Code: Select all

(lldb) bt 10
* thread #1: tid = 0x6ae194, 0x000000011d8133e0 libTKGeomBase.10.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6502, queue = 'com.apple.main-thread', stop reason = EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0)
  * frame #0: 0x000000011d8133e0 libTKGeomBase.10.dylib`AdvApp2Var_ApproxF2var::mma2fnc_(int*, int*, int*, double*, AdvApp2Var_EvaluatorFunc2Var const&, double*, int*, int*, double*, int*, int*, int*, int*, int*, double*, int*, double*, int*, double*, double*, double*, double*, double*, double*, double*, int*) + 6502
    frame #1: 0x000000011d819243 libTKGeomBase.10.dylib`AdvApp2Var_Iso::MakeApprox(AdvApp2Var_Context const&, double, double, double, double, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Node&, AdvApp2Var_Node&) + 3211
    frame #2: 0x000000011d808786 libTKGeomBase.10.dylib`AdvApp2Var_ApproxAFunc2Var::ComputeConstraints(AdvApprox_Cutting const&, AdvApprox_Cutting const&, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&) + 528
    frame #3: 0x000000011d8079b9 libTKGeomBase.10.dylib`AdvApp2Var_ApproxAFunc2Var::ComputePatches(AdvApprox_Cutting const&, AdvApprox_Cutting const&, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&) + 151
    frame #4: 0x000000011d805b3e libTKGeomBase.10.dylib`AdvApp2Var_ApproxAFunc2Var::AdvApp2Var_ApproxAFunc2Var(int, int, int, Handle_TColStd_HArray1OfReal const&, Handle_TColStd_HArray1OfReal const&, Handle_TColStd_HArray1OfReal const&, Handle_TColStd_HArray2OfReal const&, Handle_TColStd_HArray2OfReal const&, Handle_TColStd_HArray2OfReal const&, double, double, double, double, GeomAbs_IsoType, GeomAbs_Shape, GeomAbs_Shape, int, int, int, int, AdvApp2Var_EvaluatorFunc2Var const&, AdvApp2Var_Criterion const&, AdvApprox_Cutting&, AdvApprox_Cutting&) + 550
    frame #5: 0x000000011d37f080 libTKGeomAlgo.10.dylib`GeomPlate_MakeApprox::GeomPlate_MakeApprox(Handle_GeomPlate_Surface const&, AdvApp2Var_Criterion const&, double, int, int, GeomAbs_Shape, double) + 852
    frame #6: 0x000000011b88edac libTKFillet.10.dylib`ChFi3d_Builder::PerformMoreThreeCorner(int, int) + 113366
    frame #7: 0x000000011b8c5c5b libTKFillet.10.dylib`ChFi3d_FilBuilder::PerformTwoCorner(int) + 3953
    frame #8: 0x000000011b808954 libTKFillet.10.dylib`ChFi3d_Builder::PerformFilletOnVertex(int) + 674
    frame #9: 0x000000011b8071c8 libTKFillet.10.dylib`ChFi3d_Builder::Compute() + 2064
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.16.6692 (Git)
Build type: Debug
Branch: master
Hash: 87293fac9bb85c5f5e0ebf563374e27d565116ae
Python version: 2.7.11
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 6.8.0.oce-0.17
Post Reply