[ pyopengl-Bugs-2980896 ] Creating ~8000 VBOs crashes python with PyOpenGL-accelerate
"SourceForge.net" <[email protected]> Sun, 04 Apr 2010 03:19:41 +0000
| Newsgroups | gmane.comp.python.opengl.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #2980896, was opened at 2010-04-01 21:51
Message generated for change (Comment added) made by mcfletch
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2980896&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: GL
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Mike C. Fletcher (mcfletch)
Summary: Creating ~8000 VBOs crashes python with PyOpenGL-accelerate
Initial Comment:
Allocating ~8000 VBOs causes python to exit with the message "Fatal Python error: deallocating None" when PyOpenGL-accelerate is installed. It's easy to hit this limit with rapidly changing content, e.g. incoming experimental data. Uninstalling PyOpenGL-accelerate avoids this crash, and the code seems to work fine in that case. This is a reasonable workaround for the moment, but it would be nice to be able to use PyOpenGL-accelerate in the long term.
System: Ubuntu 9.10, AMD_64, PyOpenGL 3.0.1b1, Intel X3100 graphics
Here's a minimal reproduction case:
from OpenGL.arrays import vbo
import numpy as np
data = np.arange(1000).astype(np.float32)
for i in range(1000000):
new_vbo = vbo.VBO(data)
# optional: new_vbo.delete
----------------------------------------------------------------------
>Comment By: Mike C. Fletcher (mcfletch)
Date: 2010-04-03 23:19
Message:
Thanks for the bug report, the test code was perfect for finding the bug.
The code had assumed that setting a data-pointer to None meant that it
would be a NULL pointer, in fact it merely points the pointer at Py_NONE.
bzr head of OpenGL_accelerate has the fix and it will be released with the
next PyOpenGL release.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2980896&group_id=5988
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net