Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Profile GL_DEFAULT is not available on null, but: []  (Read 792 times)
0 Members and 1 Guest are viewing this topic.
Offline loicus

JGO n00b
*

Posts: 10



« on: 2011-12-13 01:34:47 »

Dear all,

one of my user is experiencing the following error:
1  
2  
3  
4  
5  
6  
7  
8  
9  
10  
11  
12  
13  
14  
    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...
1  
2  
3  
4  
5  
6  
7  
 
      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
Offline Grand Poeba

Full Member
**

Posts: 143



« Reply #1 on: 2011-12-13 05:02:17 »

Have u tried with

1  
GLProfile glp = GLProfile.getMaxFixedFunc();


Are the libraries and jars correctly linked?
Offline gouessej

JGO Kernel
*****

Posts: 3560
Medals: 30


TUER


« Reply #2 on: 2011-12-13 06:12:10 »

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

Julien Gouesse
Games published by our own members! Go get 'em!
Offline loicus

JGO n00b
*

Posts: 10



« Reply #3 on: 2011-12-13 12:32:10 »

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
Offline gouessej

JGO Kernel
*****

Posts: 3560
Medals: 30


TUER


« Reply #4 on: 2011-12-13 13:02:11 »

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.

Julien Gouesse
Offline loicus

JGO n00b
*

Posts: 10



« Reply #5 on: 2011-12-14 05:07:07 »


Ok, I've tried

1  
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
Offline lhkbob

JGO Neuromancer
****

Posts: 1174
Medals: 35



« Reply #6 on: 2011-12-14 15:11:36 »

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.

Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.108 seconds with 21 queries.