I tried the jogl demos again and here's the result so far: - All JOGL Applets including Angeles demo work great on the Intel graphics card. - All stand-alone applications also work great including my own Ardor3D application. - The only problem is with all the webstart demos in JOGL website. They open a blank window but nothing is rendered in it. Then Java completely hangs (most of the times). There must be something in webstart that conflicts with JOGL 2. Webstart used to work fine with JOGL 1.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
Please can you just give me the URL of one of these demos that does not work? I remember some JNLP files needed a fix some months ago.
Julien Gouesse | Personal blog | Website
|
I mostly use your Gears demo jnlp here:
http://jogamp.org/deployment/jogamp-current/jogl-demos/Gears.jnlp
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
Please use JVisualVM and look at Java Web Start logs. I would like to know what happens when it hangs.
Edit.: Does it still hang on glDrawArrays?
Julien Gouesse | Personal blog | Website
|
I couldn't use JVisualVM yet because our test machines are away until next week.
But mean while we updated the Java version to new update 10 and it seems it no longer hangs. Instead it throws the following error: java.lang.RuntimeException: java.lang.RuntimeException: com.ardor3d.util.Ardor3dException: Error in opengl: invalid operation at jogamp.common.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:58) at jogamp.opengl.awt.AWTThreadingPlugin.invokeOnOpenGLThread(AWTThreadingPlugin.java:103) at jogamp.opengl.ThreadingImpl.invokeOnOpenGLThread(ThreadingImpl.java:205) at javax.media.opengl.Threading.invokeOnOpenGLThread(Threading.java:172) at javax.media.opengl.Threading.invoke(Threading.java:191) at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:449) at jogamp.opengl.GLDrawableHelper.invoke(GLDrawableHelper.java:516) at javax.media.opengl.awt.GLCanvas.invoke(GLCanvas.java:721) at com.ardor3d.framework.jogl.JoglAwtCanvas.draw(JoglAwtCanvas.java:80) at com.ardor3d.framework.FrameHandler.updateFrame(FrameHandler.java:90) at org.concord.energy3d.scene.SceneManager.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: com.ardor3d.util.Ardor3dException: Error in opengl: invalid operation at jogamp.opengl.GLRunnableTask.run(GLRunnableTask.java:65) at jogamp.opengl.GLDrawableHelper.execGLRunnables(GLDrawableHelper.java:419) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:359) at javax.media.opengl.awt.GLCanvas$7.run(GLCanvas.java:981) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:655) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:594) at javax.media.opengl.awt.GLCanvas$9.run(GLCanvas.java:1001) at java.awt.event.InvocationEvent.dispatch(Unknown Source) at java.awt.EventQueue.dispatchEventImpl(Unknown Source) at java.awt.EventQueue.access$200(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.awt.EventQueue$3.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source) at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) Caused by: com.ardor3d.util.Ardor3dException: Error in opengl: invalid operation at com.ardor3d.renderer.jogl.JoglRenderer.checkCardError(JoglRenderer.java:627) at com.ardor3d.renderer.jogl.JoglRenderer.flushFrame(JoglRenderer.java:224) at com.ardor3d.framework.jogl.JoglCanvasRenderer.draw(JoglCanvasRenderer.java:225) at com.ardor3d.framework.jogl.JoglDrawerRunnable.run(JoglDrawerRunnable.java:16) at jogamp.opengl.GLRunnableTask.run(GLRunnableTask.java:59) ... 20 more Caused by: javax.media.opengl.GLException: invalid operation at com.ardor3d.renderer.jogl.JoglRenderer.checkCardError(JoglRenderer.java:624) ... 24 more Any ideas what this exception could mean?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
You probably try to use an OpenGL feature not supported by this graphics card, then it causes an OpenGL error "invalid enumerant" or simething very close. Enable the debug GL to see what is wrong.
Julien Gouesse | Personal blog | Website
|
How do I enable the debug GL?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
new JoglCanvasRenderer(scene,true);//the second parameter is important
Julien Gouesse | Personal blog | Website
|
enabled the debug didn't really do anything except two INFO lines.
I'm now working on Gears source code directly trying to figure why it crashes. I put lots of println and exception catch throughout the Gears example code but noticed that all functions are called and no exception thrown. When GLCanvas is being initialized it appears that Graphics Card driver crashes (I get a windows balloon warning that video card driver crashes) but I get no error or exception thrown in Gears. It appears that JOGL catches such exceptions without displaying any error message. Does JOGL has a debug flag?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
The debug flag of Ardor3D allows to replace GL instances by DebugGL.
You can use these flags: -Dnewt.debug=all -Dnativewindow.debug=all -Djogl.debug=all Please can you remind me which graphics card you use for this test? Do other applications based on Ardor3D crash too? Do you use NEWT?
Julien Gouesse | Personal blog | Website
|
Aha, thank you! As I suspected JOGL was eating the errors without displaying them. By Enabling the debug mode I actually got an error message that prevented the demo from progressing any further, as it should.
To answer your question, my graphics card in an integrated Intel HD Graphics in a laptop. JOGL and Ardor3D work fine in standalone applications and applets, but with Webstart it doesn't work (nothing gets rendered). So the problem is not JOGL, but JOGL+webstart. So after enabling the jogl debug flag and run the webstart jnlp for Gears demo I get the following output including an error message at the end that halts the execution: Java Web Start 10.10.2.18 Using JRE version 1.7.0_10-b18 Java HotSpot(TM) 64-Bit Server VM User home directory = C:\Users\Student ---------------------------------------------------- c: clear console window f: finalize objects on finalization queue g: garbage collect h: display this help message m: print memory usage o: trigger logging p: reload proxy configuration q: hide console r: reload policy configuration s: dump system and deployment properties t: dump thread list v: dump thread stack 0-5: set trace level to <n> ---------------------------------------------------- CacheEntry[http://energy.concord.org/energy3d/energy3d_test.jnlp]: updateAvailable=true,lastModified=Thu Dec 20 11:54:42 EST 2012,length=3000 Match: beginTraversal Match: digest selected JREDesc: JREDesc[version 1.6+, heap=-1--1, args=null, href=http://java.sun.com/products/autodl/j2se, sel=false, null, null], JREInfo: JREInfo for index 0: platform is: 1.7 product is: 1.7.0_10 location is: http://java.sun.com/products/autodl/j2se path is: C:\Program Files\Java\jre7\bin\javaw.exe args is: null native platform is: Windows, amd64 [ x86_64, 64bit ] JavaFX runtime is: JavaFX 2.2.4 found at C:\Program Files\Java\jre7\ enabled is: true registered is: true system is: true Match: ignoring maxHeap: -1 Match: ignoring InitHeap: -1 Match: digesting vmargs: null Match: digested vmargs: [JVMParameters: isSecure: true, args: ] Match: JVM args after accumulation: [JVMParameters: isSecure: true, args: ] Match: digest LaunchDesc: http://energy.concord.org/energy3d/energy3d_test.jnlp Match: digest properties: [-Dsun.java2d.noddraw=true, -Dnewt.debug=all, -Djogl.debug=all] Match: JVM args: [JVMParameters: isSecure: false, args: -Dsun.java2d.noddraw=true -Dnewt.debug=all -Djogl.debug=all] Match: endTraversal .. Match: JVM args final: -Dsun.java2d.noddraw=true -Dnewt.debug=all -Djogl.debug=all Match: Running JREInfo Version match: 1.7.0.10 == 1.7.0.10 Match: Running JVM args match the secure subset: have:<-Dsun.java2d.noddraw=true -Dsun.java2d.noddraw=true> satisfy want:<-Dsun.java2d.noddraw=true -Dnewt.debug=all -Djogl.debug=all> main() Animator() Animator created GLCanvas() GLProfile.initSingleton() - thread javawsApplicationMain java.lang.Exception: Stack trace at java.lang.Thread.dumpStack(Unknown Source) at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:135) at javax.media.opengl.GLProfile.getDefaultDevice(GLProfile.java:1690) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:246) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:196) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186) at org.concord.energy3d.test.Gears.main(Gears.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) JNLPClassLoader: Finding library jawt.dll JNLPClassLoader: Finding library jawt.dll OGLUtilities.UNDEFINED = 0 OGLUtilities.WINDOW = 1 OGLUtilities.PBUFFER = 2 OGLUtilities.TEXTURE = 3 OGLUtilities.FLIP_BACKBUFFER = 4 OGLUtilities.FBOBJECT = 5 Checking for Java2D/OpenGL support Java2D support: default GraphicsConfiguration = sun.awt.Win32GraphicsConfig JOGL/Java2D integration disabled GLProfile.init - thread: javawsApplicationMain ----------------------------------------------------------------------------------------------------- Platform: WINDOWS / Windows 7 6.1 (os), amd64 (arch), GENERIC_ABI, 4 cores MachineDescription: runtimeValidated true, littleEndian true, 32Bit false, primitive size / alignment: int8 1 / 1, int16 2 / 2 int 4 / 4, long 4 / 4 int32 4 / 4, int64 8 / 8 float 4 / 4, double 8 / 8, ldouble 16 / 16 pointer 8 / 8, page 4096 Platform: Java Version: 1.7.0_10, VM: Java HotSpot(TM) 64-Bit Server VM, Runtime: Java(TM) SE Runtime Environment Platform: Java Vendor: Oracle Corporation, http://java.oracle.com/, is JavaSE: true, AWT enabled: true ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- Package: com.jogamp.gluegen Extension Name: null Specification Title: null Specification Vendor: null Specification Version: null Implementation Title: null Implementation Vendor: null Implementation Vendor ID: null Implementation URL: null Implementation Version: null Implementation Branch: null Implementation Commit: null ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- Package: javax.media.nativewindow Extension Name: null Specification Title: null Specification Vendor: null Specification Version: null Implementation Title: null Implementation Vendor: null Implementation Vendor ID: null Implementation URL: null Implementation Version: null Implementation Branch: null Implementation Commit: null ----------------------------------------------------------------------------------------------------- ----------------------------------------------------------------------------------------------------- Package: javax.media.opengl Extension Name: null Specification Title: null Specification Vendor: null Specification Version: null Implementation Title: null Implementation Vendor: null Implementation Vendor ID: null Implementation URL: null Implementation Version: null Implementation Branch: null Implementation Commit: null ----------------------------------------------------------------------------------------------------- GLDrawableFactory.static - Native OS Factory for: .windows: jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory JNLPClassLoader: Finding library OpenGL32.dll SharedResourceRunner.start() - start new Thread - javawsApplicationMain SharedResourceRunner.run(): STARTED - javawsApplicationMain-SharedResourceRunner SharedResourceRunner.run(): READY - javawsApplicationMain-SharedResourceRunner JNLPClassLoader: Finding library libGLESv1_CM.so.2.dll JNLPClassLoader: Finding library libGLESv1_CM.so.dll JNLPClassLoader: Finding library GLESv1_CM.dll JNLPClassLoader: Finding library GLES_CM.dll JNLPClassLoader: Finding library GLES_CL.dll JNLPClassLoader: Finding library libGLESv1_CM.dll JNLPClassLoader: Finding library libGLES_CM.dll JNLPClassLoader: Finding library libGLES_CL.dll JNLPClassLoader: Finding library libEGL.so.1.dll JNLPClassLoader: Finding library libEGL.so.dll JNLPClassLoader: Finding library EGL.dll JNLPClassLoader: Finding library libEGL.dll Info: EGLDrawableFactory: EGL ES1 - NOPE JNLPClassLoader: Finding library libGLESv2.so.2.dll JNLPClassLoader: Finding library libGLESv2.so.dll JNLPClassLoader: Finding library GLESv2.dll JNLPClassLoader: Finding library GLES20.dll JNLPClassLoader: Finding library GLESv2_CM.dll JNLPClassLoader: Finding library libGLESv2.dll JNLPClassLoader: Finding library libGLESv2_CM.dll JNLPClassLoader: Finding library libGLES20.dll JNLPClassLoader: Finding library libEGL.so.1.dll JNLPClassLoader: Finding library libEGL.so.dll JNLPClassLoader: Finding library EGL.dll JNLPClassLoader: Finding library libEGL.dll Info: EGLDrawableFactory: EGL ES2 - NOPE javax.media.opengl.GLException: No GLDrawableFactory available for profile: GLES2 at javax.media.opengl.GLDrawableFactory.getFactoryImpl(GLDrawableFactory.java:381) at javax.media.opengl.GLProfile.initProfilesForDefaultDevices(GLProfile.java:1453) at javax.media.opengl.GLProfile.access$100(GLProfile.java:76) at javax.media.opengl.GLProfile$1.run(GLProfile.java:174) at java.security.AccessController.doPrivileged(Native Method) at javax.media.opengl.GLProfile.initSingleton(GLProfile.java:140) at javax.media.opengl.GLProfile.getDefaultDevice(GLProfile.java:1690) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:246) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:196) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186) at org.concord.energy3d.test.Gears.main(Gears.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source) Info: GLProfile.init - EGL GLDrawable factory not available Info: GLProfile.init - Default device is desktop derived: WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] WindowsWGLDrawableFactory.enterThreadCriticalZone() - 0xffffffffffffffff - javawsApplicationMain Info: GLProfile.initProfilesForDevice: WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] (com.jogamp.nativewindow.windows.WindowsGraphicsDevice), isSet false, hasDesktopGLFactory true, hasEGLFactory false GLProfile.init map decon, desktopCtxUndef true, esCtxUndef true GLProfile.init map GLProfile[GL4bc/GL4bc.sw] on device decon GLProfile.init map defaultAny GLProfile[GL4bc/GL4bc.sw] on device decon GLProfile.init map GLProfile[GL3bc/GL3bc.sw] on device decon GLProfile.init map GLProfile[GL2/GL2.sw] on device decon GLProfile.init map GLProfile[GL4/GL4.sw] on device decon GLProfile.init map GLProfile[GL3/GL3.sw] on device decon GLProfile.init map GLProfile[GL2GL3/GL2.sw] on device decon GLProfile.init map *** no mapping for GLES2 on device decon GLProfile.init map GLProfile[GL2ES2/GL2.sw] on device decon GLProfile.init map *** no mapping for GLES1 on device decon GLProfile.init map GLProfile[GL2ES1/GL2.sw] on device decon SharedResourceRunner.getOrCreateShared() decon: trying - javawsApplicationMain SharedResourceRunner.doAndWait() START init: decon, release: null - javawsApplicationMain SharedResourceRunner.doAndWait() set command: decon, release: null - javawsApplicationMain SharedResourceRunner.run(): WOKE UP for device connection init: decon, release: null - javawsApplicationMain-SharedResourceRunner SharedResourceRunner.run(): create Shared for: decon - javawsApplicationMain-SharedResourceRunner javawsApplicationMain-SharedResourceRunner: setRealized: WindowsOnscreenWGLDrawable false -> true WindowsWGLDrawable.setRealized(true): WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 6, ARB-Choosen false, requested GLCaps[rgba 0x8/8/8/0, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/0, dbl, mono , hw, GLProfile[GL2/GL2.sw], on-scr[.]], chosen GLCaps[wgl vid 0x6 gdi: rgba 0x8/8/8/8, opaque, accum-rgba 16/16/16/16, dp/st/ms: 16/0/0, dbl, mono , hw, GLProfile[GL2/GL2.sw], on-scr[.]]] javawsApplicationMain-SharedResourceRunner: GLContext.resetStates() java.lang.Exception: Info: setGL (OpenGL null): javawsApplicationMain-SharedResourceRunner, <null> -> GL4bcImpl, jogamp.opengl.gl4.GL4bcImpl@302d4d0a at jogamp.opengl.GLContextImpl.setGL(GLContextImpl.java:245) at jogamp.opengl.GLContextImpl.setGLFunctionAvailability(GLContextImpl.java:1148) at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:308) at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:564) at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:477) at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory$SharedResourceImplementation.createSharedResource(WindowsWGLDrawableFactory.java:334) at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:261) at java.lang.Thread.run(Unknown Source) javawsApplicationMain-SharedResourceRunner: Initializing WGL extension address table: WGL-.windows_decon_0 javawsApplicationMain-SharedResourceRunner: GLContext WGL ProcAddressTable mapping key(WGL-.windows_decon_0) -> 0x5935c72f javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail: Given WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] - 0.0 (Compatibility profile, hardware) - 2.1.0 - Build 8.15.10.2622 javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.0 validated FQN: .windows_decon_0-0x2010002 - 2.1 (Compatibility profile, hardware) - 2.1.0 - Build 8.15.10.2622, 2.1.0 javawsApplicationMain-SharedResourceRunner: GLContext GL ProcAddressTable mapping key(.windows_decon_0-0x2010002) -> 0x257281c0 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Pre-caching init jogamp.opengl.gl4.GL4bcImpl@302d4d0a, OpenGL null javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Pre-caching extension availability OpenGL null, use glGetString javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GL_EXTENSIONS: 99, used glGetString javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GLX_EXTENSIONS: 13 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GL vendor: Intel javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: ALL EXTENSIONS: 112 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_2_1 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_2_0 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_5 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_4 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_3 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_2 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_1 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_0 to known extensions javawsApplicationMain-SharedResourceRunner: GLContext GL ExtensionAvailabilityCache mapping key(.windows_decon_0-0x2010002) -> 0x7c09534f - entries: 121 Quirk: NoDoubleBufferedBitmap: cause: OS WINDOWS javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.X: .windows_decon_0-0x2010002 - 2.1 (Compatibility profile, FBO, hardware) javawsApplicationMain-SharedResourceRunner: createContextARB: mappedVersionsAvailableSet(decon): false javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 4.2 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 4.2 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: NO 4.2 (Compatibility profile, arb, hardware) - @creation javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 4.1 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 4.1 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: NO 4.1 (Compatibility profile, arb, hardware) - @creation javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 4.0 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 4.0 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: NO 4.0 (Compatibility profile, arb, hardware) - @creation javawsApplicationMain-SharedResourceRunner: createContextARB-MapVersionsAvailable NOPE: 4.2 javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 3.3 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 3.3 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: NO 3.3 (Compatibility profile, arb, hardware) - @creation javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 3.2 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 3.2 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: NO 3.2 (Compatibility profile, arb, hardware) - @creation javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 3.1 javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 3.1 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 javawsApplicationMain-SharedResourceRunner: createContextARBImpl: OK 3.1 (Compatibility profile, arb, hardware) - @creation, share 0, direct true javawsApplicationMain-SharedResourceRunner: Initializing WGL extension address table: WGL-.windows_decon_0 javawsApplicationMain-SharedResourceRunner: GLContext WGL ProcAddressTable reusing key(WGL-.windows_decon_0) -> 0x5935c72f javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail: Given WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] - 3.1 (Compatibility profile, arb, hardware) - 2.1.0 - Build 8.15.10.2622 javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.0 validated FQN: .windows_decon_0-0x2010003 - 2.1 (Compatibility profile, arb, hardware) - 2.1.0 - Build 8.15.10.2622, 2.1.0 javawsApplicationMain-SharedResourceRunner: GLContext GL ProcAddressTable mapping key(.windows_decon_0-0x2010003) -> 0x1d7e08a8 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Pre-caching init jogamp.opengl.gl4.GL4bcImpl@302d4d0a, OpenGL 2.1 (Compatibility profile, FBO, hardware) - 2.1.0 - Build 8.15.10.2622 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Pre-caching extension availability OpenGL 2.1 (Compatibility profile, FBO, hardware) - 2.1.0 - Build 8.15.10.2622, use glGetString javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GL_EXTENSIONS: 99, used glGetString javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GLX_EXTENSIONS: 13 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: GL vendor: Intel javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: ALL EXTENSIONS: 112 javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_2_1 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_2_0 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_5 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_4 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_3 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_2 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_1 to known extensions javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Added GL_VERSION_1_0 to known extensions javawsApplicationMain-SharedResourceRunner: GLContext GL ExtensionAvailabilityCache mapping key(.windows_decon_0-0x2010003) -> 0x3d6a5cb8 - entries: 121 Quirk: NoDoubleBufferedBitmap: cause: OS WINDOWS javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.X: .windows_decon_0-0x2010003 - 2.1 (Compatibility profile, arb, FBO, hardware) javawsApplicationMain-SharedResourceRunner: RM Context FQN: .windows_decon_0-0x3010003 - 3.1 (Compatibility profile, arb, hardware) javax.media.opengl.GLException: WindowsWGLDrawableFactory - Could not initialize shared resources for decon at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory$SharedResourceImplementation.createSharedResource(WindowsWGLDrawableFactory.java:359) at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:261) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException at jogamp.opengl.GLContextImpl.removeCachedVersion(GLContextImpl.java:1352) at jogamp.opengl.GLContextImpl.createContextARBVersions(GLContextImpl.java:937) at jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(GLContextImpl.java:863) at jogamp.opengl.GLContextImpl.mapGLVersions(GLContextImpl.java:777) at jogamp.opengl.GLContextImpl.createContextARB(GLContextImpl.java:723) at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:317) at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:564) at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:477) at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory$SharedResourceImplementation.createSharedResource(WindowsWGLDrawableFactory.java:334) ... 2 more SharedResourceRunner.run(): READY - javawsApplicationMain-SharedResourceRunner SharedResourceRunner.initializeAndWait END init: decon, release: null - javawsApplicationMain SharedResourceRunner.getOrCreateShared() decon: failed - javawsApplicationMain GLProfile.initProfilesForDevice: WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]]: desktop Shared Ctx false GLProfile.init map decon, desktopCtxUndef false, esCtxUndef false GLProfile.init map *** no mapping for GL4bc on device decon GLProfile.init map *** no mapping for GL3bc on device decon GLProfile.init map *** no mapping for GL2 on device decon GLProfile.init map *** no mapping for GL4 on device decon GLProfile.init map *** no mapping for GL3 on device decon GLProfile.init map *** no mapping for GL2GL3 on device decon GLProfile.init map *** no mapping for GLES2 on device decon GLProfile.init map *** no mapping for GL2ES2 on device decon GLProfile.init map *** no mapping for GLES1 on device decon GLProfile.init map *** no mapping for GL2ES1 on device decon GLProfile: device could not be initialized: WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] GLProfile: compatible w/ desktop: true, egl false GLProfile: desktoplFactory jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory@7b641e81 GLProfile: eglFactory null GLProfile: hasGLES1Impl false GLProfile: hasGLES2Impl false javawsApplicationMain: createContextARB: SET mappedVersionsAvailableSet .windows_decon_0 GLProfile.initProfilesForDevice: decon: added profile(s): desktop false, egl false GLProfile.initProfilesForDevice: decon: Native[GL4bc false, GL4 false, GL3bc false, GL3 false, GL2 false, GL2ES1 false, GLES1 false, GL2ES2 false, GLES2 false], Profiles[, default n/a] WindowsWGLDrawableFactory.leaveThreadCriticalZone() - 0xffffffffffffffff - javawsApplicationMain GLProfile.init addedAnyProfile false (desktop: false, egl false) GLProfile.init isAWTAvailable true GLProfile.init hasDesktopGLFactory false GLProfile.init hasGL234Impl true GLProfile.init hasEGLFactory false GLProfile.init hasGLES1Impl false GLProfile.init hasGLES2Impl false GLProfile.init defaultDevice WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] GLProfile.init defaultDevice Desktop WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] GLProfile.init defaultDevice EGL null GLProfile.init profile order [GL4bc, GL3bc, GL2, GL4, GL3, GL2GL3, GLES2, GL2ES2, GLES1, GL2ES1] Default Profiles on device WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] Native GL4bc false GL4 false GL3bc false GL3 false GL2 false GL2ES1 false GLES1 false GL2ES2 false GLES2 false Profiles default n/a Desktop Capabilities: none EGL Capabilities: none #### Java Web Start Error: #### Profile GL_DEFAULT is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: []
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
The very last lines in your log are very important, thanks. Please can you be more accurate concerning the chipset? Do you use the Microsoft GDI driver on this machine?
Julien Gouesse | Personal blog | Website
|
In reply to this post by runiter
Here is the actual exception thrown:
javax.media.opengl.GLException: Profile GL_DEFAULT is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [] at javax.media.opengl.GLProfile.get(GLProfile.java:771) at javax.media.opengl.GLProfile.getDefault(GLProfile.java:555) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:246) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:196) at javax.media.opengl.awt.GLCanvas.<init>(GLCanvas.java:186) at org.concord.energy3d.test.Gears.main(Gears.java:70) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.sun.javaws.Launcher.executeApplication(Unknown Source) at com.sun.javaws.Launcher.executeMainClass(Unknown Source) at com.sun.javaws.Launcher.doLaunchApp(Unknown Source) at com.sun.javaws.Launcher.run(Unknown Source) at java.lang.Thread.run(Unknown Source)
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
The Laptop is "ThinkPad L512" and its graphics cards is simply listed as Intel HD which I believe is equivalent to "GMA5700MHD".
More about this graphics card here: http://www.notebookcheck.net/Intel-Graphics-Media-Accelerator-HD.23065.0.html
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Also, I believe I am using Microsoft GDI driver.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
But I must point out again, the hardware or drivers shouldn't be the problem because the standalone application works fine and only webstart fails. So it could be a java security problem, or some jogl code that does not run when it is inside webstart.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Administrator
|
On 12/20/2012 10:15 PM, runiter [via jogamp] wrote:
> But I must point out again, the hardware or drivers shouldn't be the problem > because the standalone application works fine and only webstart fails. So it > could be a java security problem, or some jogl code that does not run when it > is inside webstart. 1st of all, you are _not_ using our jogamp packages: > Package: javax.media.opengl > Extension Name: null > Specification Title: null > Specification Vendor: null > Specification Version: null > Implementation Title: null > Implementation Vendor: null > Implementation Vendor ID: null > Implementation URL: null > Implementation Version: null > Implementation Branch: null > Implementation Commit: null it's proper source code! please re-run your test w/ debug logs w/ either RC11 or better the very latest source code. +++ .. and a GL context was being picked up: [1] Shared-Ctx !ARB, GL 2.1: > avawsApplicationMain-SharedResourceRunner: setRealized: WindowsOnscreenWGLDrawable false -> true > WindowsWGLDrawable.setRealized(true): WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], idx 0], pfdID 6, ARB-Choosen false, ... > javawsApplicationMain-SharedResourceRunner: Initializing WGL extension address table: WGL-.windows_decon_0 > javawsApplicationMain-SharedResourceRunner: GLContext WGL ProcAddressTable mapping key(WGL-.windows_decon_0) -> 0x5935c72f > javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail: Given WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] - 0.0 (Compatibility profile, hardware) - 2.1.0 - Build 8.15.10.2622 > javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.0 validated FQN: .windows_decon_0-0x2010002 - 2.1 (Compatibility profile, hardware) - 2.1.0 - Build 8.15.10.2622, 2.1.0 ... [2] Querying all available ctx: ARB 3.1, but result is 2.1 (funny!): > javawsApplicationMain-SharedResourceRunner: createContextARBVersions: share 0, direct true, version 3.1 > javawsApplicationMain-SharedResourceRunner - WindowWGLContext.createContextARBImpl: 3.1 (Compatibility profile, arb, hardware) - @creation, handle 0xd010ea1, share 0x0, direct true, wglCreateContextAttribsARB: 0x180741c00 > javawsApplicationMain-SharedResourceRunner: createContextARBImpl: OK 3.1 (Compatibility profile, arb, hardware) - @creation, share 0, direct true > javawsApplicationMain-SharedResourceRunner: Initializing WGL extension address table: WGL-.windows_decon_0 > javawsApplicationMain-SharedResourceRunner: GLContext WGL ProcAddressTable reusing key(WGL-.windows_decon_0) -> 0x5935c72f > javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail: Given WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]] - 3.1 (Compatibility profile, arb, hardware) - 2.1.0 - Build 8.15.10.2622 > javawsApplicationMain-SharedResourceRunner: GLContext.setGLFuncAvail.0 validated FQN: .windows_decon_0-0x2010003 - 2.1 (Compatibility profile, arb, hardware) - 2.1.0 - Build 8.15.10.2622, 2.1.0 > javawsApplicationMain-SharedResourceRunner: GLContext GL ProcAddressTable mapping key(.windows_decon_0-0x2010003) -> 0x1d7e08a8 > javawsApplicationMain-SharedResourceRunner:ExtensionAvailabilityCache: Pre-caching init jogamp.opengl.gl4.GL4bcImpl@302d4d0a, OpenGL 2.1 (Compatibility profile, FBO, hardware) - 2.1.0 - Build 8.15.10.2622 [3] .. and then a NPE: > javax.media.opengl.GLException: WindowsWGLDrawableFactory - Could not initialize shared resources for decon > at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory$SharedResourceImplementation.createSharedResource(WindowsWGLDrawableFactory.java:359) > at jogamp.opengl.SharedResourceRunner.run(SharedResourceRunner.java:261) > at java.lang.Thread.run(Unknown Source) > Caused by: java.lang.NullPointerException > at jogamp.opengl.GLContextImpl.removeCachedVersion(GLContextImpl.java:1352) > at jogamp.opengl.GLContextImpl.createContextARBVersions(GLContextImpl.java:937) > at jogamp.opengl.GLContextImpl.createContextARBMapVersionsAvailable(GLContextImpl.java:863) the funny part is - and hinting to some sort of a GL impl. bug of the driver, that the queried context [2] was created using the ARB methods requesting a GL 3.1 compatibility profile, but the ctx string says GL 2.1.0. The NPE [3] is somewhat caused by this, since it tries to (DEBUG) print the 3.1 ctx removed ProcAddressTable hash code, but null was removed. Ofc, the 3.1 ctx ProcAddressTable was never been added, just the 2.1 ProcAddressTable. +++ Interesting that this does not confuse the non webstart launching method, as you claim. What would be very helpful now is: - Use a known JOGL version (see above), or mention the RC version, or the git commit. - Also add the debug logs for the standalone version, simply running etc\test_dbg.bat and attaching test_dbg.log should suffice. - Full name of your Intel HD GPU I currently add a few lines of code for a more strict GL version validation when querying and fixed the NPE. Well, I only have the Intel HD SandyBridge here to test. ~Sven signature.asc (909 bytes) Download Attachment |
Administrator
|
In reply to this post by runiter
On 12/21/2012 04:56 AM, Sven Gothel wrote:
> On 12/20/2012 10:15 PM, runiter [via jogamp] wrote: > > What would be very helpful now is: > - Use a known JOGL version (see above), or > mention the RC version, or the git commit. > > - Also add the debug logs for the standalone version, > simply running etc\test_dbg.bat > and attaching test_dbg.log should suffice. > > - Full name of your Intel HD GPU >> The Laptop is "ThinkPad L512" and its graphics cards is simply listed as >> Intel HD which I believe is equivalent to "GMA5700MHD". >> More about this graphics card here: http://www.notebookcheck.net/Intel-Graphics-Media-Accelerator-HD.23065.0.html > > I currently add a few lines of code for a more strict > GL version validation when querying and fixed the NPE. > > Well, I only have the Intel HD SandyBridge here to test. > > ~Sven > > > signature.asc (909 bytes) Download Attachment |
Administrator
|
In reply to this post by gouessej
On 12/20/2012 09:46 PM, gouessej [via jogamp] wrote:
> The very last lines in your log are very important, thanks. You are right, usually the last line(s) should be sufficient, but here we have a followup-error where the previous log lines are of importance. ~Sven signature.asc (909 bytes) Download Attachment |
I tried using git to get the latest version of JOGL and compile the Gears demo using that. However it appears that the jogl in the git repository has a different packaging than what the Gears demo expects. This also makes the git version of JOGL incompatible with Ardor3D version. Did you guys renames many packages recently?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
|
Free forum by Nabble | Edit this page |