Java-Gaming.org    
Featured games (79)
games approved by the League of Dukes
Games in Showcase (477)
Games in Android Showcase (107)
games submitted by our members
Games in WIP (536)
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 2272 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
« 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!
Legends of Yore - The Casual Retro Roguelike
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
« 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.

 

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

The first screenshot will be displayed as a thumbnail.

CogWheelz (15 views)
2014-07-30 21:08:39

Riven (21 views)
2014-07-29 18:09:19

Riven (14 views)
2014-07-29 18:08:52

Dwinin (12 views)
2014-07-29 10:59:34

E.R. Fleming (32 views)
2014-07-29 03:07:13

E.R. Fleming (12 views)
2014-07-29 03:06:25

pw (42 views)
2014-07-24 01:59:36

Riven (42 views)
2014-07-23 21:16:32

Riven (30 views)
2014-07-23 21:07:15

Riven (31 views)
2014-07-23 20:56:16
HotSpot Options
by dleskov
2014-07-08 03:59:08

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:58:24

Java and Game Development Tutorials
by SwordsMiner
2014-06-14 00:47:22

How do I start Java Game Development?
by ra4king
2014-05-17 11:13:37

HotSpot Options
by Roquen
2014-05-15 09:59:54

HotSpot Options
by Roquen
2014-05-06 15:03:10

Escape Analysis
by Roquen
2014-04-29 22:16:43

Experimental Toys
by Roquen
2014-04-28 13:24:22
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
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!