Login  Register

Re: Crash when creating more than ~15 jogl/awt windows

Posted by GiGurra on Jun 19, 2011; 1:46am
URL: https://forum.jogamp.org/Crash-when-creating-more-than-15-jogl-awt-windows-tp3054540p3081571.html

Thank you.

I think though I may have embarrassed myself quite hard right now. :)

The issue has been at least partially solved, and it seems to be memory related after all
I was using -Xmx1536m, but for some reason this only gives my JVM a small fraction of this number to work with.
When i lower it to 1024 or 1280 then I can actually more than double the number of screens I can run.

Quite Frustrating!

So (Yes the order is correct, and very interesting!):
with -Xmx1280m I can generate up to about ~100 newt windows before opengl context creation fails
with -Xmx1536m I can generate up to about ~40 newt windows before opengl context creation fails

with -Xmx1280m I can generate up to about ~50 awt windows before opengl context creation fails
with -Xmx1536m I can generate up to about ~20 awt windows before opengl context creation fails

So it seems the first part at least is an issue with the jvm and memory management. I will not pursue this issue further.
I need about 50 and it seems to be possible now.

EDIT: Ok, talking to a friend here who knows some stuff...seems like I have some reading to do ^^. Sry to bother u.

Edit2: -Xmx512m and 150 windows with both AWT and NEWT, no signs of crashing so far. This is excellent !
Seems like pushing heap size higher kills other stuff. This tells me I might also want to try a 64bit JVM