Powerino73 / heekscad

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

Compatibility with opencascade-6.8 and boost-1.58 #403

Closed GoogleCodeExporter closed 9 years ago

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

As for boost, with version 1.58, I'm getting "ImportError: 
libboost_python.so.1.57.0: cannot open shared object file: No such file or 
directory" when executing "Post-Process" to generate NC.

Reverting to boost-1.57 resolve the 2nd issue. 

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

GoogleCodeExporter commented 9 years ago
Could you run gdb and show us both backtraces ?

Original comment by neomil...@gmail.com on 7 May 2015 at 8:14

GoogleCodeExporter commented 9 years ago
I'm not that well verse in linux debugging

opencascade:

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

I'm encountering a separate issue when running heekscnc from bash which wasn't 
there before, hence I can't use gdb to get the backtrace for boost. Below is 
the full message from the UI prompt when run from the Menu (I'm using Cinnamon).
1st Prompt:
Traceback (most recent call last):
  File "/tmp/post.py", line 6, in <module>
    import area
ImportError: libboost_python.so.1.57.0: cannot open shared object file: No such 
file or directory

2nd Prompt:
Traceback (most recent call last):
  File "/usr/lib/heekscnc/backplot.py", line 8, in <module>
    machine_module = __import__('nc.' + reader, fromlist = ['dummy'])
  File "/usr/lib/heekscnc/nc/iso_read.py", line 8, in <module>
    import nc_read as nc
  File "/usr/lib/heekscnc/nc/nc_read.py", line 7, in <module>
    import area
ImportError: libboost_python.so.1.57.0: cannot open shared object file: No such 
file or directory

The error I'm getting when running from bash:
Starting program: /usr/local/bin/heekscad 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
17:08:15: Warning: Mismatch between the program and library build versions 
detected.
The library used 3.0 (wchar_t,compiler with C++ ABI 1008,wx 
containers,compatible with 2.8),
and your program used 3.0 (wchar_t,compiler with C++ ABI 1002,wx 
containers,compatible with 2.8).
17:08:15: Debug: Adding duplicate image handler for 'PNG file'
./src/gtk/bitmap.cpp(626): assert "image.IsOk()" failed in wxBitmap(): invalid 
image

(heekscad:15640): Gtk-WARNING **: Theme file for default has no name

(heekscad:15640): Gtk-WARNING **: Theme file for default has no directories

libgnutls.so.28: cannot open shared object file: No such file or directory
Failed to load module: /usr/lib/gio/modules/libgiognutls.so
backtrace
[New Thread 0x7fffe26ea700 (LWP 15644)]

Program received signal SIGTRAP, Trace/breakpoint trap.
0x00007fffefe08609 in raise () from /usr/lib/libpthread.so.0
(gdb) backtrace
#0  0x00007fffefe08609 in raise () from /usr/lib/libpthread.so.0
#1  0x00007ffff7327f88 in wxGUIAppTraits::ShowAssertDialog(wxString const&) () 
from /usr/lib/libwx_gtk2u_core-3.0.so.0
#2  0x00007ffff799b342 in ?? () from /usr/lib/libwx_baseu-3.0.so.0
#3  0x00007ffff799bd50 in wxAppConsoleBase::OnAssertFailure(wchar_t const*, 
int, wchar_t const*, wchar_t const*, wchar_t const*) ()
   from /usr/lib/libwx_baseu-3.0.so.0
#4  0x00007ffff72e5650 in wxApp::OnAssertFailure(wchar_t const*, int, wchar_t 
const*, wchar_t const*, wchar_t const*) ()
   from /usr/lib/libwx_gtk2u_core-3.0.so.0
#5  0x00007ffff799b7cb in ?? () from /usr/lib/libwx_baseu-3.0.so.0
#6  0x00007ffff7997be0 in wxOnAssert(char const*, int, char const*, char 
const*, char const*) () from /usr/lib/libwx_baseu-3.0.so.0
#7  0x00007ffff72e8692 in wxBitmap::wxBitmap(wxImage const&, int) () from 
/usr/lib/libwx_gtk2u_core-3.0.so.0
#8  0x0000000000694f5b in CHeeksFrame::MakeMenus() ()
#9  0x000000000068b674 in CHeeksFrame::CHeeksFrame(wxString const&, wxPoint 
const&, wxSize const&) ()
#10 0x00000000006544ec in HeeksCADapp::OnInit() ()
#11 0x0000000000676849 in wxAppConsoleBase::CallOnInit() ()
#12 0x00007ffff7a30912 in wxEntry(int&, wchar_t**) () from 
/usr/lib/libwx_baseu-3.0.so.0
#13 0x0000000000650e72 in main ()

Thanks guys for looking into this :)

Original comment by faulty....@gmail.com on 7 May 2015 at 9:15

GoogleCodeExporter commented 9 years ago
Ok, thank you!

We need to split this issue : it contains two different issues, so I'll close 
this issue and set it as 'Invalid'.

Please open two differents issues with corresponding backtrace.

Thanks 

Original comment by neomil...@gmail.com on 7 May 2015 at 9:33

GoogleCodeExporter commented 9 years ago
Done, thank you

Original comment by faulty....@gmail.com on 7 May 2015 at 10:19