Chrent / heekscad

Automatically exported from code.google.com/p/heekscad
Other
0 stars 0 forks source link

Compatibility with opencascade-6.8 #404

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I'm running on Arch Linux and recently updated to opencascade-6.8.0 from 6.7.1. 
I'm getting "Segmentation fault (core dumped)" when starting heekscad. When I 
downgrade to opencascade-6.7.1, heekscad started without any issue.

Below is the gdb backtrace:
Starting program: /usr/local/bin/heekscad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff68c3258 in Handle_Standard_Transient::BeginScope() () from 
/opt/opencascade/lib/libTKernel.so.0
(gdb) backtrace
#0  0x00007ffff68c3258 in Handle_Standard_Transient::BeginScope() () from 
/opt/opencascade/lib/libTKernel.so.0
#1  0x00000000005b1ef8 in 
Handle_Standard_Transient::Handle_Standard_Transient(Standard_Transient const*) 
()
#2  0x00000000005b247f in Handle_MMgt_TShared::Handle_MMgt_TShared(MMgt_TShared 
const*) ()
#3  0x00000000005f2177 in 
Handle_Geom_Geometry::Handle_Geom_Geometry(Geom_Geometry const*) ()
#4  0x00000000005f219d in Handle_Geom_Curve::Handle_Geom_Curve(Geom_Curve 
const*) ()
#5  0x00000000005f21c3 in 
Handle_Geom_BoundedCurve::Handle_Geom_BoundedCurve(Geom_BoundedCurve const*) ()
#6  0x000000000064b8af in 
Handle_Geom_BSplineCurve::Handle_Geom_BSplineCurve(Geom_BSplineCurve const*) ()
#7  0x000000000064b5c7 in __static_initialization_and_destruction_0 ()
#8  0x000000000064b5f0 in 
_GLOBAL__sub_I__ZN14CTangentialArcC2ERK6gp_PntRK6gp_VecS2_ ()
#9  0x00000000007b245d in __libc_csu_init ()
#10 0x00007fffef8de78f in __libc_start_main () from /usr/lib/libc.so.6
#11 0x000000000059f7c9 in _start ()

I found this but not sure if it's relevant 
http://dev.opencascade.org/index.php?q=node/939

Original issue reported on code.google.com by faulty....@gmail.com on 7 May 2015 at 10:11

GoogleCodeExporter commented 8 years ago
Do you use HeeksCNC plugin with HeeksCAD ?

Original comment by neomil...@gmail.com on 7 May 2015 at 11:45

GoogleCodeExporter commented 8 years ago
Yes, I mainly use HeeksCNC, should I be reporting the issue somewhere else?

Original comment by faulty....@gmail.com on 7 May 2015 at 11:47

GoogleCodeExporter commented 8 years ago
If I update to opencascade-6.8.0, compiling latest heekscad will result in the 
following error

/home/faulty/build/heeks/heekscad/interface/Geom.cpp: In function ‘gp_Trsf 
make_matrix(const double*)’:
/home/faulty/build/heeks/heekscad/interface/Geom.cpp:1168:107: error: no 
matching function for call to ‘gp_Trsf::SetValues(const double&, const 
double&, const double&, const double&, const double&, const double&, const 
double&, const double&, const double&, const double&, const double&, const 
double&, double, double)’
  tr.SetValues(m[0], m[1], m[2], m[3], m[4], m[5], m[6], m[7], m[8], m[9], m[10], m[11], 0.0001, 0.00000001);
                                                                                                           ^
/home/faulty/build/heeks/heekscad/interface/Geom.cpp:1168:107: note: candidate 
is:
In file included from /opt/opencascade/inc/BRepAdaptor_Curve.hxx:13:0,
                 from /home/faulty/build/heeks/heekscad/src/stdafx.h:76,
                 from /home/faulty/build/heeks/heekscad/interface/Geom.cpp:5:
/opt/opencascade/inc/gp_Trsf.hxx:207:26: note: void 
gp_Trsf::SetValues(Standard_Real, Standard_Real, Standard_Real, Standard_Real, 
Standard_Real, Standard_Real, Standard_Real, Standard_Real, Standard_Real, 
Standard_Real, Standard_Real, Standard_Real)
   Standard_EXPORT   void SetValues (const Standard_Real a11, const Standard_Real a12, const Standard_Real a13, const Standard_Real a14, const Standard_Real a21, const Standard_Real a22, const Standard_Real a23, const Standard_Real a24, const Standard_Real a31, const Standard_Real a32, const Standard_Real a33, const Standard_Real a34) ;
                          ^
/opt/opencascade/inc/gp_Trsf.hxx:207:26: note:   candidate expects 12 
arguments, 14 provided
interface/CMakeFiles/heeksintf.dir/build.make:77: recipe for target 
'interface/CMakeFiles/heeksintf.dir/Geom.cpp.o' failed
make[2]: *** [interface/CMakeFiles/heeksintf.dir/Geom.cpp.o] Error 1
CMakeFiles/Makefile2:75: recipe for target 
'interface/CMakeFiles/heeksintf.dir/all' failed
make[1]: *** [interface/CMakeFiles/heeksintf.dir/all] Error 2
Makefile:136: recipe for target 'all' failed
make: *** [all] Error 2

Original comment by faulty....@gmail.com on 8 May 2015 at 7:32