Maybe it can help...

sram...@japc17:~/Bureau/pythonOCC-0.4-samples/Level1/Animation$ LIBGL_DEBUG=verbose python animation.py
Display3d class initialization starting ...
libGL: OpenDriver: trying /usr/lib/dri/tls/i965_dri.so
libGL: OpenDriver: trying /usr/lib/dri/i965_dri.so
Graphic device created.
Xw_Window created.
Viewer created.
libGL: Can't open configuration file /etc/drirc: Aucun fichier ou dossier de ce type.
Erreur de segmentation



Le 02/11/2010 09:45, Sébastien Ramage a écrit :
Hi Thomas,

I have try your patch, but it doesn't change anything...


Hi all,

I'm not sure whether this Intel problem comes from OCC or pythonOCC. I
suspect a part of the initialization code of pythonOCC 0.4 (file
Display3d.cpp) to be not really optimized. After diving into the Salome
source code, I recently committed changes to this file (
http://code.google.com/p/pythonocc/source/diff?spec=svn1055&r=1039&format=side&path=/trunk/src/wrapper/Visualization/Display3d.cpp&old_path=/trunk/src/wrapper/Visualization/Display3d.cpp&old=1025 <http://code.google.com/p/pythonocc/source/diff?spec=svn1055&r=1039&format=side&path=/trunk/src/wrapper/Visualization/Display3d.cpp&old_path=/trunk/src/wrapper/Visualization/Display3d.cpp&old=1025>)
and moved the lights initialization (and made them optional) to the
OCCViewer.py script (
http://code.google.com/p/pythonocc/source/diff?spec=svn1055&r=1039&format=side&path=/trunk/src/addons/Display/OCCViewer.py&old_path=/trunk/src/addons/Display/OCCViewer.py&old=909 <http://code.google.com/p/pythonocc/source/diff?spec=svn1055&r=1039&format=side&path=/trunk/src/addons/Display/OCCViewer.py&old_path=/trunk/src/addons/Display/OCCViewer.py&old=909>
).

I guess it may fix this issue but it has to be tested on Linux platforms
with Intel graphic driver.

Best Regards,


_______________________________________________
Pythonocc-users mailing list
Pythonocc-users@gna.org
https://mail.gna.org/listinfo/pythonocc-users

Reply via email to