Re: [PyOpenGL-Users] Python 3 crash when running on optimus card
Brought to you by:
mcfletch
|
From: Mike C. F. <mcf...@vr...> - 2014-03-05 05:10:43
|
On 14-03-03 05:09 PM, Ákos Tóth wrote:
> Hi,
>
> I recently started using pyOpenGL with Python 3.3 on Ubuntu 13.10. I
> am in the unfortunate situation of owning a laptop with a switchable
> (Optimus technology) dedicated video card. With the most recent
> version of pyOpenGL (3.1.0b1) installed, the program crashes quite
> seriously when running the line "from OpenGL.GL import *" - to the
> point where Ubuntu actually opens an error dialog for this. This
> problem is specific to Python 3 with optirun - in C++, OpenGL works on
> the optimus card without any hiccups, and version 3.0.2 with Python
> 2.7 also works without a problem.
>
> Tests concluded so far:
> - Python 2.7, pyOpenGL and accelerate version 3.0.2 with or without
> optirun. No problems.
> - Python 3.3, pyOpenGL and accelerate version 3.1.0b1 without optirun
> - no problems but the intel card only supports openGL contexts up to
> version 3.1, which is far behind what I require.
> - Python 3.3, pyOpenGL and accelerate version 3.1.0b1 with optirun,
> crash on import. In the pastebin link below is the output of python3
> -vvvvvc "from OpenGL.GL import *".
Could you also test 2.7 + PyOpenGL 3.1.0b1 so we can see whether we have
a problem with PyOpenGL 3.1 + Optimus or just with PyOpenGL 3.1 +
Optimus + Python 3.x. Testing PyOpenGL 3.1.0b1 without the Accelerate
module on Python 2.7 would also help to narrow down failure cases.
If you could do a trace of the import to see what line fails, that would
help. To do that, create a file with just the import statement, then run:
python -m trace --trace -f yourfile.py
it should print out each line as it executes and the last line printed
should be the one that causes the crash.
The most likely cause of a crash is that we have something doing GL
calls before there's a GL context.
Thanks,
Mike
--
________________________________________________
Mike C. Fletcher
Designer, VR Plumber, Coder
http://www.vrplumber.com
http://blog.vrplumber.com
|