The following forum message was posted by rekveld at http://sourceforge.net/projects/pydev/forums/forum/293649/topic/4739830:
Hi Fabio, I've been playing around a bit in a new workspace and I found my error is relatively simple to reproduce after your previous message: this file: http://python-gtkglext1.sourcearchive.com/documentation/1.1.0-4/coolwave_8py-sou rce.html is one of the examples that comes with PyGTKGLExt. If I start adding lines like glEnable(GL_WORLDPEACE) I can see in the systemmonitor that the java thread starts going up to 100% and memory usage starts increasing rapidly. (Strange is that just now I tried again after giving Eclipse a lot less memory (in order to give you a smaller heapdump) and then it also happens, but it takes muuuuch longer to reach the Out of Memory point, and sometimes I don't have the patience to get there. That is not what I expected, but not a solution I guess, it does slow everything down.) I am on Python 2.6.6 using pygtkglext-1.1.0, pyOpenGL 3.0.1, pyGTK 2.0, what else would you need to know ? What I just discovered is that in the import section it says [code]from gtk.gtkgl.apputils import * from OpenGL.GL import *[/code] and gtk.gtkgl.apputils imports/redefines (I don't know which, I guess the latter) A LOT of the definitions in OpenGL.GL I suspect that might have to do with the problem ? It is confusing to use wildcard imports like in this example; in my own project I import all the OpenGL stuff I need from gtk.gtkgl.apputils, and only two functions from OpenGL.GLU, nothing at all from OpenGL.GL. (I even tried importing all the OpenGL definitions one by one, without a wildcard, but that did not change anything). I hope this gives you enough info to reproduce ? Or should I try excluding libs from my interpreter ? many thanks, Joost. ------------------------------------------------------------------------------ All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 _______________________________________________ Pydev-users mailing list Pydev-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pydev-users