Hello Duong,

On Wed, Feb 23, 2011 at 2:08 PM, Duong Dang <dang.duong@gmail.com> wrote:
On Wed, Feb 23, 2011 at 4:53 PM, Ian Mallett <geometrian@gmail.com> wrote:
> On Wed, Feb 23, 2011 at 8:38 AM, Alejandro Segovia <asegovi@gmail.com>
> wrote:
>>
>> Hello Duong,
>>
>> On Wed, Feb 23, 2011 at 11:55 AM, Duong Dang <dang.duong@gmail.com> wrote:
>>>
>>> Hello there,
>>>
>>> We are having a problem with PyOpenGL on a Ubuntu 10.04 machine with a
>>> Intel GMA945 graphics card. The following code works in C++, but its
>>> counterpart seg-faults in python. Any idea why that is?
>>
>> I can't reproduce the problem on an NVIDIA video card,
>
> Nor I.

Thanks for testing, we also tried
http://www.opengl.org/resources/code/samples/redbook/hello.c
and
http://bazaar.launchpad.net/~mcfletch/pyopengl-demo/trunk/annotate/head:/PyOpenGL-Demo/redbook/hello.py

which should be identical. The c program displays a white square just
fine but the python script seg faults again on the Intel card.
On another PC with a nvidia card, both programs work fine.

Do you have any other information on the crash? What OS are you running the script on? If you're on Linux, maybe you could record and inspect a valgrind dump. I don't know of any equivalent tools for Windows.

Alejandro.-


--
Alejandro Segovia Azapian
Director, Algorithmia: Visualization & Acceleration
http://web.algorithmia.net