[ pyopengl-Bugs-1737282 ] Seg fault on Ubuntu Fiesty x86-64 - 3.0.0a6

"SourceForge.net" <[email protected]> Thu, 15 Jan 2009 22:01:23 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #1737282, was opened at 2007-06-14 10:38
Message generated for change (Comment added) made by dogwynn
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1737282&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GLUT
Group: v3.0.0
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Seg fault on Ubuntu Fiesty x86-64 - 3.0.0a6

Initial Comment:
With 
Python 2.5,Python-2.5.tar.bz2
numpy, numpy-1.0.tar.gz
PyOpenGL, PyOpenGL-3.0.0a6.tar.gz

OpenGL-ctypes/OpenGL/tests$ python test_glutwindow.py 
newArguments ['test_glutwindow.py']
Segmentation fault (core dumped)


This occurs on line 78
glutInitDisplayMode( GLUT_DOUBLE | GLUT_RGB )

----------------------------------------------------------------------

Comment By: David O'Gwynn (dogwynn)
Date: 2009-01-15 16:01

Message:
Confirm that this causing problem on CentOS as well.

--------------------------------
Background
--------------------------------
>>] uname -a
Linux ... 2.6.18-92.el5 #1 SMP Tue Jun 10 18:51:06 EDT 2008 x86_64 x86_64
x86_64 GNU/Linux

 >>] /sbin/lspci | grep VGA
01:00.0 VGA compatible controller: nVidia Corporation NV41GL [Quadro FX
1400] (rev a2)

 >>] lsb_release -rd
Description:    CentOS release 5.2 (Final)
Release:        5.2
--------------------------------

This is a problem with PyOpenGL's wrapping of glut/freeglut somehow. The
functions can be called directly via ctypes with no errors on my system.

>>] python
Python 2.6 (r26:66714, Nov 21 2008, 10:53:09) 
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from ctypes import *
>>> glut = cdll.LoadLibrary('libglut.so')
>>> glut.glutInit(pointer(c_int(0)),pointer(c_char_p('')))
234
>>> glut.glutInitDisplayMode(c_int(2)) # GLUT_DOUBLE | GLUT_RGB
344264064
>>> wID = glut.glutCreateWindow(c_char_p('test window'))
freeglut Unable to create direct context rendering for window 'test
window'
This may hurt performance.
>>> print wID
1
>>> 


This correctly initializes a rendering context and pops up a window.

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2009-01-06 18:15

Message:
this also happened to me on Ubuntu 32bit. The problem was calling
"glutInitDisplayMode" before "glutCreateWindow". If you call it the other
way round it works. For more info look at launchpad:
https://bugs.edge.launchpad.net/debian/+source/pyopengl/+bug/289925

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2008-07-08 23:54

Message:
Logged In: NO 

I receive the segmentation fault on my 64 bit Hardy Heron on an AMD64-2x,
but it happens at the import OpenGL.GL statement, and it goes away if I run
as root:  'sudo python test_glutwindow.py'.  I have tried to reinstall all
opengl components but it still segfaults on import OpenGL.GL.

----------------------------------------------------------------------

Comment By: hippodriver (hippodriver)
Date: 2008-05-03 05:34

Message:
Logged In: YES 
user_id=1981020
Originator: NO

I get the same error on Fedora 9 AMD64 and Arch Linux ia32.
Here are the library versions:
a) Fedora 9
- PyOpenGL-3.0.0-0.5.b1.fc9.noarch
- freeglut-2.4.0-14.fc9.x86_64
- python-2.5.1-25.fc9.x86_64
b) Arch Linux 03052008
- python 2.5.2-2
- python-opengl 3.0.0b1-1
- freeglut 2.4.0-3


----------------------------------------------------------------------

Comment By: hippodriver (hippodriver)
Date: 2008-05-03 04:16

Message:
Logged In: YES 
user_id=1981020
Originator: NO

I get the same error on Fedora 9 AMD64 and Arch Linux ia32.
Here are the library versions:
a) Fedora 9
- PyOpenGL-3.0.0-0.5.b1.fc9.noarch
- freeglut-2.4.0-14.fc9.x86_64
- python-2.5.1-25.fc9.x86_64
b) Arch Linux 03052008
- python 2.5.2-2
- python-opengl 3.0.0b1-1
- freeglut 2.4.0-3


----------------------------------------------------------------------

Comment By: Mike C. Fletcher (mcfletch)
Date: 2008-04-06 19:45

Message:
Logged In: YES 
user_id=34901
Originator: NO

I can't reproduce the bug on a 64-bit Gentoo AMD64 machine running Python
2.5.1 and current CVS head against media-libs/freeglut-2.4.0-r1 .  That is,
the script runs here (I develop on this amd64 Gentoo box normally).  Can
you give more details about your library versions?

----------------------------------------------------------------------

Comment By: Nobody/Anonymous (nobody)
Date: 2007-10-25 05:58

Message:
Logged In: NO 

What's going on this bug is still present in Ubuntu Gutsy (64 bits
version), are pyopengl abandoned? or is there a secret bugfix? Nothing has
happened with this bug for 4 month.

A segfault on 64-bits Linux has to be considered a quite severe bug.

I'm very new to Python but I need it for a course in 3d rendering at
school so if there is some debugging I can do please let me know, but I
think it's quite easy to reproduce.

/Björn


----------------------------------------------------------------------

Comment By: Gary Orser (orser)
Date: 2007-06-14 12:53

Message:
Logged In: YES 
user_id=82696
Originator: NO

Forgot to add:

The script I used to build this python, generates a python that doesn't
seg fault on Fiesty 32bit.
It also seg faults, on SuSE 10.1 64 bit.

This must be some sort of 64 bit issue.

----------------------------------------------------------------------

Comment By: Gary Orser (orser)
Date: 2007-06-14 10:48

Message:
Logged In: YES 
user_id=82696
Originator: NO

Forgot to add:

The script I used to build this python, generates a python that doesn't
seg fault on Fiesty 32bit.
It also seg faults, on SuSE 10.1 64 bit.

This must be some sort of 64 bit issue.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=1737282&group_id=5988

------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net
_______________________________________________
PyOpenGL-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyopengl-devel