Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (406)
games submitted by our members
Games in WIP (290)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Profile GL_DEFAULT is not available on null, but: []  (Read 1413 times)
0 Members and 1 Guest are viewing this topic.
Offline loicus

Senior Newbie





« Posted 2011-12-13 07: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

Junior Member





« Reply #1 - Posted 2011-12-13 11:02:17 »

Have u tried with

1  
GLProfile glp = GLProfile.getMaxFixedFunc();


Are the libraries and jars correctly linked?
Offline gouessej

JGO Ninja


Medals: 33
Projects: 1


TUER


« Reply #2 - Posted 2011-12-13 12:12:10 »

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

Games published by our own members! Check 'em out!
Try the Free Demo of Titan Attacks
Offline loicus

Senior Newbie





« Reply #3 - Posted 2011-12-13 18: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 Ninja


Medals: 33
Projects: 1


TUER


« Reply #4 - Posted 2011-12-13 19: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.

Offline loicus

Senior Newbie





« Reply #5 - Posted 2011-12-14 11: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 Knight


Medals: 32



« Reply #6 - Posted 2011-12-14 21: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]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars and Titan!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (66 views)
2013-05-17 21:29:12

alaslipknot (75 views)
2013-05-16 21:24:48

gouessej (106 views)
2013-05-16 00:53:38

gouessej (103 views)
2013-05-16 00:17:58

theagentd (113 views)
2013-05-15 15:01:13

theagentd (103 views)
2013-05-15 15:00:54

StreetDoggy (148 views)
2013-05-14 15:56:26

kutucuk (170 views)
2013-05-12 17:10:36

kutucuk (169 views)
2013-05-12 15:36:09

UnluckyDevil (178 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.145 seconds with 22 queries.