Profile GL_DEFAULT is not available on null, but: []

Dear all,

one of my user is experiencing the following error:


    at javax.media.opengl.GLProfile.get(GLProfile.java:643)
    at javax.media.opengl.GLProfile.getDefault(GLProfile.java:466)
    at javax.media.opengl.GLProfile.getDefault(GLProfile.java:474)
    at jfrog.Displayer.<init>(Displayer.java:117)
    at jfrog.Displayer.main(Displayer.java:166)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.sun.javaws.Launcher.executeApplication(Launcher.java:1914)
    at com.sun.javaws.Launcher.executeMainClass(Launcher.java:1847)
    at com.sun.javaws.Launcher.doLaunchApp(Launcher.java:1609)
    at com.sun.javaws.Launcher.run(Launcher.java:138)
    at java.lang.Thread.run(Thread.java:680) 

Displayer line 117, is the first one of that block, it doesn’t seems to be very complex…

 
   	GLProfile glp = GLProfile.getDefault();    	
    	GLCapabilities caps = new GLCapabilities(glp);
    	caps.setDoubleBuffered(true);
    	//caps.setStereo(true);
    	System.out.printf("%s\n", caps.toString());
    	GLCanvas canvas = new GLCanvas(caps);

the user is running on a mac, but I don’t have more details…

anyone has any experience about this?

Thanks in advance for sharing the tricks,
Loic

Have u tried with


GLProfile glp = GLProfile.getMaxFixedFunc();

Are the libraries and jars correctly linked?

Which version of JOGL 2 do you use? Can you tell us more about the hardware?

so far I have been using build:2.0-b41-20110916 and http://jogamp.org/deployment/v2.0-rc4/jogl-all-awt.jnlp for deployement,
should I need to update to a more recent build ?

I will try with:
GLProfile.getMaxFixedFunc();
(and ask info about user’s hardware)

thanks,
Loic

Maybe give a try to the latest dev build. You should talk about your problem on the official forum of JogAmp, some contributors of JOGL don’t come often here except me.

Ok, I’ve tried


GLProfile glp = GLProfile.getMaxFixedFunc();

but the problem is still there:

More info about the user’s configuration:
OS = “Leopard”
Version : Mac OS X 10.5.8 (9L31a)
Kernel Version : Darwin 9.8.0

same user has been sucesfully using my program on a “snow leopard” system

where is the “official” jogl forum? I tought it was this one…

thanks,
Loic

The official forum for JOGL and it’s parent library, JOGAMP, is here: http://forum.jogamp.org/

Have you considered selecting a specific profile? If you’re coding to fixed function, you could just use the GL2 profile. If there are multiple possibilities, use the GLProfile code to get the list of available profiles and iterate through to find the best available match.