2013/5/15 Uwe Schlifkowitz <schlifkow...@intales.com> > Hello all, > > I installed oce-0.12 and pythonocc from the pythonocc-master zip archive. > Now i have a segmentation fault when trying to display something. The > output is attached below. > > Has anyone experienced similar? > I wonder if this is the result of simply installing over a previous > install of oce/pythonocc. How can i cleanly uninstall everything and > restart from scratch? > > Best regards, > Uwe > > ~$ gdb python > (gdb) r > Starting program: /usr/bin/python > [Thread debugging using libthread_db enabled] > Using host libthread_db library "/lib/x86_64-linux-gnu/** > libthread_db.so.1". > Python 2.7.3 (default, Aug 1 2012, 05:14:39) > [GCC 4.6.3] on linux2 > Type "help", "copyright", "credits" or "license" for more information. > >>> from OCC.Display.SimpleGui import init_display > >>> display, start_display, add_menu, add_function_to_menu = init_display() > [New Thread 0x7fffd846d700 (LWP 20007)] > [New Thread 0x7fffd7c6c700 (LWP 20008)] > ###### 3D rendering pipe initialisation ##### > Display3d class initialization starting ... > > Program received signal SIGSEGV, Segmentation fault. > 0x00007fffd6e656d6 in Handle_Standard_Transient::**BeginScope() () from > /usr/local/lib/libTKernel.so.7 > (gdb) bt > #0 0x00007fffd6e656d6 in Handle_Standard_Transient::**BeginScope() () > from /usr/local/lib/libTKernel.so.7 > #1 0x00007fffd724106d in > OpenGl_GraphicDriver::Begin(**Handle_Aspect_**DisplayConnection > const&) () > from /usr/local/lib/libTKOpenGl.so.**7 > #2 0x00007fffe676894e in > Graphic3d_GraphicDevice::**Graphic3d_GraphicDevice(char > const*, Xw_TypeOfMapping, int, unsigned int) () from > /usr/local/lib/libTKV3d.so.4 > #3 0x00007fffe7e66172 in Display3d::Init(int) () > from /usr/lib/python2.7/dist-**packages/OCC/_Visualization.so > #4 0x00007fffe7e622d3 in _wrap_Display3d_Init () > from /usr/lib/python2.7/dist-**packages/OCC/_Visualization.so > #5 0x000000000049d585 in PyEval_EvalFrameEx () > #6 0x000000000049f1c0 in PyEval_EvalCodeEx () > #7 0x00000000004983b8 in PyEval_EvalFrameEx () > #8 0x0000000000498602 in PyEval_EvalFrameEx () > #9 0x000000000049f1c0 in PyEval_EvalCodeEx () > #10 0x00000000004983b8 in PyEval_EvalFrameEx () > #11 0x000000000049f1c0 in PyEval_EvalCodeEx () > #12 0x00000000004a9d0f in PyRun_InteractiveOneFlags () > #13 0x00000000004aa075 in PyRun_InteractiveLoopFlags () > #14 0x00000000004aa328 in PyRun_AnyFileExFlags () > #15 0x00000000004aa8bd in Py_Main () > #16 0x00007ffff68cc76d in __libc_start_main (main=0x41b980 <main>, argc=1, > ubp_av=0x7fffffffd618, > init=<optimised out>, fini=<optimised out>, rtld_fini=<optimised out>, > stack_end=0x7fffffffd608) > at libc-start.c:226 > #17 0x000000000041b9b1 in _start () > (gdb) > > > -- > Uwe Schlifkowitz -- Software Engineer > INTALES GmbH Engineering Solutions > Innsbrucker Str. 1 > A-6161 Natters > >
Hi, pythonocc current master needs oce-0.12, as you mentioned. ABI number of oce-0.12 libs is 6. Then the pythonocc _Standard.so library should be linked against libTKernel.so.6. It looks like you compiled/installed the current oce master (0.13-dev). Thomas
_______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users