Hi,
In my project, I got a GLException. Anyone can give some help! ----------------------------------------------------------------------------------------------------- GLDrawableFactory.static - Native OS Factory for: .x11: jogamp.opengl.x11.glx.X11GLXDrawableFactory SharedResourceRunner.start() - start new Thread - AWT-EventQueue-0 SharedResourceRunner.run(): STARTED - AWT-EventQueue-0-SharedResourceRunner SharedResourceRunner.run(): READY - AWT-EventQueue-0-SharedResourceRunner Info: EGLDrawableFactory: EGL ES2 - NOPE Info: EGLDrawableFactory: EGL ES1 - NOPE (ES1 lib) Info: EGLDrawableFactory: EGL GLn - OK (eglTableReset true, eglInitialize 0x308e409520) SharedResourceRunner.start() - start new Thread - AWT-EventQueue-0 SharedResourceRunner.run(): STARTED - AWT-EventQueue-0-SharedResourceRunner SharedResourceRunner.run(): READY - AWT-EventQueue-0-SharedResourceRunner com.jogamp.opengl.GLException: No lookup for esProfile GLES2 at jogamp.opengl.egl.EGLDrawableFactory.getGLDynamicLookupHelper(EGLDrawableFactory.java:894) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1785) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:79) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:229) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:215) at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2272) at com.jogamp.opengl.GLProfile.get(GLProfile.java:987) at com.jogamp.opengl.GLProfile.get(GLProfile.java:1003) at com.myprj.uiapp.shared.imagedisplay.ImageDisplaySubPanel.createBMCanvas(ImageDisplaySubPanel.java:623) at com.myprj.uiapp.shared.imagedisplay.ImageDisplaySubPanel.createImagePanel(ImageDisplaySubPanel.java:271) at com.myprj.uiapp.shared.imagedisplay.ImageDisplaySubPanel.createAndShowGUI(ImageDisplaySubPanel.java:241) at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:301) at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:744) at java.awt.EventQueue.access$400(EventQueue.java:97) at java.awt.EventQueue$3.run(EventQueue.java:697) at java.awt.EventQueue$3.run(EventQueue.java:691) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:75) at java.awt.EventQueue.dispatchEvent(EventQueue.java:714) at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201) at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116) at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93) at java.awt.EventDispatchThread.run(EventDispatchThread.java:82) Info: GLProfile.init - Default device is desktop derived: X11GraphicsDevice[type .x11, connection :10.0, unitID 0, handle 0x0, owner false, ResourceToolkitLock[obj 0x2ca03b24, isOwner false, <22865838, 7b75cdd>[count 0, qsz 0, owner <NULL>]]] Info: GLProfile.initProfilesForDevice: EGLGraphicsDevice[type .egl, v0.0.0, connection decon, unitID 0, handle 0x0, owner true, ResourceToolkitLock[obj 0x15c2f185, isOwner false, <5953c9d, 38f9c946>[count 0, qsz 0, owner <NULL>]]] (com.jogamp.nativewindow.egl.EGLGraphicsDevice), isSet false, hasDesktopGLFactory true, hasEGLFactory true GLProfile.init map decon, desktopCtxUndef true, esCtxUndef true GLProfile.init map GLProfile[GL4bc/GL4bc.sw] on device decon My classes outline: private BMCanvas createBMCanvas() { GLProfile profile = GLProfile.get(GLProfile.GL2); GLCapabilities capabilities = new GLCapabilities(profile); BMCanvas canvas = new BMCanvas(capabilities, 512, 512); return canvas; } public class BMCanvas extends GLJPanel { super(capabiliteis); ... // addGLEventListener here } Thanks in advance! |
Administrator
|
Hi
Do you get a GL2 instance despite this stack trace? Do you reproduce this problem with one of our unit tests?
Julien Gouesse | Personal blog | Website
|
share01.zipjogl_exception.txt
hi, share01.zip : a simple sample. jogl_exception.txt : full log You can import share01.zip with eclipse, Run this sample with args: -Djogl.debug=all Got exception on both windows7 and fedora20. |
Administrator
|
Please use JOGL 2.3.2 instead of JOGL 2.3.1. If there is a real bug, you can report it only against the latest version.
Julien Gouesse | Personal blog | Website
|
Use 2.3.2, got exception as below:
com.jogamp.opengl.GLException: No GLDrawableFactory available for profile: GLES2 at com.jogamp.opengl.GLDrawableFactory.getFactoryImpl(GLDrawableFactory.java:469) at com.jogamp.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1783) at com.jogamp.opengl.GLProfile.access$000(GLProfile.java:80) at com.jogamp.opengl.GLProfile$1.run(GLProfile.java:230) at java.security.AccessController.doPrivileged(Native Method) at com.jogamp.opengl.GLProfile.initSingleton(GLProfile.java:216) at com.jogamp.opengl.GLProfile.getProfileMap(GLProfile.java:2297) at com.jogamp.opengl.GLProfile.get(GLProfile.java:988) at com.jogamp.opengl.GLProfile.get(GLProfile.java:1004) at Sample01.main(Sample01.java:45) |
In reply to this post by george2008
The exception you see is only visible because you run with the jogl.debug=all args! For example on the linux system you used to generate the jogl_exception.txt log you can see that jogl have managed to initialize GL2 ! however JOGL have also detected that GLES2 is not supported by your OpenGL driver installation. ... from inside your jogl_exception.txt you can what got detected: ----------------------------------------------------------------------------------------------------- X11GraphicsDevice[type .x11, connection :10.0]: Natives GL4bc false GL4 false GLES3 false GL3bc false GL3 false GL2 true [2.1 (Compat profile, arb, compat[ES2], FBO, software)] GLES2 false GLES1 false Count 1 / 8 Common GL4ES3 false GL2GL3 true GL2ES2 true GL2ES1 true Mappings GL2ES1 GLProfile[GL2ES1/GL2.sw] GL2ES2 GLProfile[GL2ES2/GL2.sw] GL2 GLProfile[GL2/GL2.sw] GL2GL3 GLProfile[GL2GL3/GL2.sw] default GLProfile[GL2/GL2.sw] Count 4 / 12 Swap Interval -1 GL Profile GLProfile[GL2/GL2.sw] GL Version 2.1 (Compat profile, arb, compat[ES2], FBO, software) - 2.1 Mesa 10.3.3 [GL 2.1.0, vendor 10.3.3 (Mesa 10.3.3)] Quirks [NoSetSwapIntervalPostRetarget, NoSurfacelessCtx] Impl. class jogamp.opengl.gl4.GL4bcImpl GL_VENDOR VMware, Inc. GL_RENDERER Gallium 0.4 on llvmpipe (LLVM 3.4, 256 bits) GL_VERSION 2.1 Mesa 10.3.3 GLSL true, has-compiler-func: true, version: 1.30 / 1.30.0 GL FBO: basic true, full true GL_EXTENSIONS 187 GLX_EXTENSIONS 29 ----------------------------------------------------------------------------------------------------- GLCaps[glx vid ----, fbc 0x8a: rgba 5/6/5/0, opaque, accum-rgba 0/0/0/0, dp/st/ms 0/0/0, one, mono , sw, GLProfile[GL2/GL2.sw], offscr[pbuffer, bitmap]] ... The log file above looks OK to me! |
Free forum by Nabble | Edit this page |