Hi Marcos,

That's what I thought : it comes from the OpenGl driver ("from
/usr/lib/dri/i915_dri.so").

I think it comes from the way I init the viewer : just after the Viewer is
created, I set up default OCC lights:

myV3dViewer->SetDefaultLights();
myV3dViewer->SetLightOn();

I will try to move this out from the C++ Display3d.cpp file to pure python.
It will be easier to bug and, most important, to fix. Don't know yet how I
can test the modification I make : I don't have a Linux machine with this
specific graphic hardware. The best would be that you compile pythonocc
yourself and test if. The latest revision of the svn trunk is much more
convenient to build and it can be done easily.

Regards,

Thomas

2010/5/14 Marcos Elgueta Soulat <m.a.elguetasou...@gmail.com>

> Hi Thomas,
>
> I will resume in the same order than you, according to your description, I
> notice something (the segmentation fault)
>
> If I sum up:
> - I run Ubuntu 10.04 on  a machine with an Intel chipset graphic hardware,
> - I installed pythonocc-0.4,
> - I properly set up the CSF_GraphicShr env variable,
> - when I try to create a graphic Window from the SimpleGui.py module, I
> have a black window and you have to kill the process. (I run again the gdb
> session an I get segfault in the trace or segmentation fault, it is the same
> right?):
>
> *This is the trace (of gdb session):*
>
> m...@maes:~$ export CSF_GraphicShr=/usr/lib/libTKOpenGl-6.3.0.so
> m...@maes:~$ gdb python
> GNU gdb (GDB) 7.1-ubuntu
> Copyright (C) 2010 Free Software Foundation, Inc.
> License GPLv3+: GNU GPL version 3 or later <
> http://gnu.org/licenses/gpl.html>
> This is free software: you are free to change and redistribute it.
> There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
> and "show warranty" for details.
> This GDB was configured as "i486-linux-gnu".
> For bug reporting instructions, please see:
> <http://www.gnu.org/software/gdb/bugs/>...
> Reading symbols from /usr/bin/python...(no debugging symbols found)...done.
> (gdb) r
> Starting program: /usr/bin/python
> [Thread debugging using libthread_db enabled]
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> from OCC.Display.SimpleGui import *
> >>> display, start_display, add_menu, add_function_to_menu = init_display()
> Display3d class initialization starting ...
> Graphic device created.
> Xw_Window created.
> Viewer created.
>
> Program received signal SIGSEGV, Segmentation fault.
> 0xaee68990 in intel_region_buffer () from /usr/lib/dri/i915_dri.so
> (gdb)
>
> *this is the trace (of set the CSF_GraphicShr)*
>
> m...@maes:~$ python
> Python 2.6.5 (r265:79063, Apr 16 2010, 13:09:56)
> [GCC 4.4.3] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import os
> >>> os.environ['CSF_GraphicShr']
> '/usr/lib/libTKOpenGl-6.3.0.so' <http://libtkopengl-6.3.0.so/>
>
>
> - on my machine, I can run Salome 5.1.3 without any problem.
>
> Regards.
>
> Marcos.
>
>
>
>
>
> _______________________________________________
> Pythonocc-users mailing list
> Pythonocc-users@gna.org
> https://mail.gna.org/listinfo/pythonocc-users
>
>
_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to