Re: [PyOpenGL-Users] access violation when calling glGenFramebuffers
Brought to you by:
mcfletch
|
From: Patrick D. <pyo...@pd...> - 2013-04-03 17:14:58
|
As I'm trying to get my program fit for the future, I would like to
avoid "downgrading" to 32 bit python.
I tracked the problem a bit further:
I replaced
self.framebuffer_id = glGenFramebuffers(1);
with
fbo = ctypes.c_uint(1)
OpenGL.raw.GL.EXT.framebuffer_object.glGenFramebuffersEXT(1,
ctypes.byref(fbo))
self.framebuffer_id = int(fbo.value)
I'm not sure if the code is ctype-wise correct but I think that doesn't
make a real difference for the error:
Traceback (most recent call last):
...
File "C:\Users\Patrick\Dev\PCT\open_gl_widgets.py", line 203, in __init__
OpenGL.raw.GL.EXT.framebuffer_object.glGenFramebuffersEXT(1,
ctypes.byref(fbo))
File "C:\Python27\lib\site-packages\OpenGL\platform\baseplatform.py",
line 379, in __call__
return self( *args, **named )
WindowsError: exception: access violation writing 0xFFFFFFFFE812A790
Could anyone from the developers please help me track down the problem
further? I'm very happy to assist in fixing this problem!
Cheers,
Patrick
Am 03.04.2013 17:50, schrieb Cyrille Rossant:
> I had a similar problem with a similar configuration and a similar
> graphics card. I couldn't solve the problem, so I ended up removing my
> whole 64 bits Python distribution and reinstalling everything with
> Python 32 bits... and it worked.
>
> Cyrille
>
>
> 2013/4/3 Patrick Dietrich <pyo...@pd...
> <mailto:pyo...@pd...>>
>
> Hi everyone,
>
> I have a problem when calling glGenFramebuffers on Windows 7 64 bit:
>
> Traceback (most recent call last):
> ...
> File "C:\Users\Patrick\Dev\PCT\open_gl_widgets.py", line 197,
> in __init__
> self.framebuffer_id = glGenFramebuffers(1);
> File "latebind.pyx", line 32, in
> OpenGL_accelerate.latebind.LateBind.__call__
> (src\latebind.c:667)
> File "wrapper.pyx", line 308, in
> OpenGL_accelerate.wrapper.Wrapper.__call__ (s
> rc\wrapper.c:5356)
> File
> "C:\Python27\lib\site-packages\OpenGL\platform\baseplatform.py",
> line 379
> , in __call__
> return self( *args, **named )
> WindowsError: exception: access violation writing 0xFFFFFFFFEA94A760
>
> My PyOpenGL version is 3.0.2, including PyOpenGL_accelerate 3.0.2. I
> have installed both packages with the windows installers (AMD64
> versions). My graphics adaptor is an Intel HD Graphics 4000 for which
> I'm using the newest drivers (version 9.17.10.2843).
>
> Calling bool(glGenFramebuffers) just before the call to
> glGenFramebuffers returns True. I have also tried to use the extension
> version glGenFramebuffersEXT but with the same result.
>
> What might be the problem and how can I work around it?
> How can I access the low level C-routines of OpenGL?
>
> Cheers,
> Patrick
>
>
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> PyOpenGL Homepage
> http://pyopengl.sourceforge.net
> _______________________________________________
> PyOpenGL-Users mailing list
> PyO...@li...
> <mailto:PyO...@li...>
> https://lists.sourceforge.net/lists/listinfo/pyopengl-users
>
>
|