| 
		Hello.
 I followed this tutorial to setup jogamp/jogl https://sites.google.com/site/justinscsstuff/jogl-tutorial-1. As soon as i initiize GLProfile as seen below: GLProfile profile = GLProfile.get(GLProfile.GL2ES1); Eclipse gives me this error message: "com.hoshi.pong.Pong ended unexpectedly when using "plugin" libjogl_desktop.jnilib." (roughly translated from swedish) as an "messagebox alert" (not console). The console says:2012-08-20 19:13:09.453 java[662:1903] invalid drawable 2012-08-20 19:13:09.455 java[662:1903] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7f9cb482bf80 2012-08-20 19:13:09.455 java[662:1903] An uncaught exception was raised 2012-08-20 19:13:09.455 java[662:1903] -[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7f9cb482bf80 2012-08-20 19:13:09.456 java[662:1903] ( 0 CoreFoundation 0x00007fff8b85bf56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8df89dee objc_exception_throw + 43 2 CoreFoundation 0x00007fff8b8e81be -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff8b848e23 ___forwarding___ + 371 4 CoreFoundation 0x00007fff8b848c38 _CF_forwarding_prep_0 + 232 5 AppKit 0x00007fff8c862522 -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 49 6 libjogl_desktop.jnilib 0x000000010eca98cb setContextPBuffer + 203 7 libjogl_desktop.jnilib 0x000000010ed0d28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43 8 ??? 0x0000000102791d6e 0x0 + 4336459118 ) 2012-08-20 19:13:09.456 java[662:1903] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSView CGLPBufferObj]: unrecognized selector sent to instance 0x7f9cb482bf80' *** First throw call stack: ( 0 CoreFoundation 0x00007fff8b85bf56 __exceptionPreprocess + 198 1 libobjc.A.dylib 0x00007fff8df89dee objc_exception_throw + 43 2 CoreFoundation 0x00007fff8b8e81be -[NSObject doesNotRecognizeSelector:] + 190 3 CoreFoundation 0x00007fff8b848e23 ___forwarding___ + 371 4 CoreFoundation 0x00007fff8b848c38 _CF_forwarding_prep_0 + 232 5 AppKit 0x00007fff8c862522 -[NSOpenGLContext setPixelBuffer:cubeMapFace:mipMapLevel:currentVirtualScreen:] + 49 6 libjogl_desktop.jnilib 0x000000010eca98cb setContextPBuffer + 203 7 libjogl_desktop.jnilib 0x000000010ed0d28b Java_jogamp_opengl_macosx_cgl_CGL_setContextPBuffer__JJ + 43 8 ??? 0x0000000102791d6e 0x0 + 4336459118 ) terminate called throwing an exception And my code:package com.hoshi.pong;
import java.awt.Frame;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import javax.media.opengl.GLProfile;
public class Pong extends Frame{
	
	public Pong() {
		GLProfile profile = GLProfile.get(GLProfile.GL2ES1);
		
		setTitle("Hoshi");
		setSize(600,600);
		setLocation(100,100);
		setVisible(true);
	
		addWindowListener(new WindowListener() {
			
			@Override
			public void windowOpened(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowIconified(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowDeiconified(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowDeactivated(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
			
			@Override
			public void windowClosed(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void windowActivated(WindowEvent e) {
				// TODO Auto-generated method stub
				
			}
		});
		
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		new Pong();
		
	}
}
I have tried to add GLCapabilities, GLCanvas and to use GLProfile.GL2ES2 and GL2 but i still have the same problem. Computer: Macbook pro 13", Intel HD Graphics 4000, Mac OS X 10.7.4. Does anyone know how to fix this? Thanks in advance! | 
| Administrator | 
		Hi
 Each new major release of Mac OS X causes some regressions, Montain Lion requires some more work, Sven will try to improve its support. I have no Mac, I can't reproduce your bug. 
				Julien Gouesse | Personal blog | Website
			 | 
| 
		Ok. Thank you for your reply.
	
	
	
	 | 
| 
		Hi there. I'm completely new to JOGL and am having essentially the same problem. Unfortunately I don't have any pre-10.7 machines now so I'm kind of stuck! Is there any ETA on a fix?
 Thanks, and thanks for this great resource. | 
 
	
					
		
	
					| Administrator | 
		On 09/14/2012 06:31 AM, Steve [via jogamp] wrote:
 > Hi there. I'm completely new to JOGL and am having essentially the same > problem. Unfortunately I don't have any pre-10.7 machines now so I'm kind of > stuck! Is there any ETA on a fix? I am almost done, currently finishing the resize experience w/ the FBO CALayer, i.e. avoid flickering. Will push sources today for sure. Maybe you OSX users can test, since I don't have the last OS version here, but FBO offscreen layer is preferred. ~Sven | 
 
	
					
		
	
					| 
		I'd like to try this fix.
 Were you seeing the "invalid drawable" message? Is it fixed with your changes? thanks andy | 
 
	
					
		
	
					| Administrator | 
				In reply to this post by Steve
			 
		On 09/14/2012 09:20 AM, Sven Gothel wrote:
 > On 09/14/2012 06:31 AM, Steve [via jogamp] wrote: >> Hi there. I'm completely new to JOGL and am having essentially the same >> problem. Unfortunately I don't have any pre-10.7 machines now so I'm kind of >> stuck! Is there any ETA on a fix? > > I am almost done, currently finishing the resize experience > w/ the FBO CALayer, i.e. avoid flickering. > > Will push sources today for sure. > > Maybe you OSX users can test, since I don't have the last OS version here, > but FBO offscreen layer is preferred. > > ~Sven > seamless FBO usage incl. OSX. <http://jogamp.org/git/?p=jogl.git;a=commit;h=4dd44b985fe0541be3a3bcd9045d201ed3ca2cc5> Auto build is running: <https://jogamp.org/chuck/job/jogl/799/> Will aggregate this one if OK. Pls (manually) test the new OSX offscreen layer FBO implementation (check main method for arguments): com.jogamp.opengl.test.junit.jogl.acore.TestOffscreenLayer01GLCanvasAWT com.jogamp.opengl.test.junit.jogl.acore.TestOffscreenLayer02NewtCanvasAWT The PBuffer bug is also fixed .. AFAIK. ~Sven | 
| 
		Sven, the 9/16 and 9/17 builds solved my problem. Thanks very much!
 The code I was trying, by the way, was the tutorial at http://www.leolol.com/drupal/tutorials/3d-graphics-jogl-opengl-etc/jogl-2-lesson-1-setup-and-introduction. Steve | 
| Free forum by Nabble | Edit this page | 
 
	

 
	
	
		


