Will a difference in java updates make a difference?

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Will a difference in java updates make a difference?

jacksmash
I have a project running on my own machine just fine, and I installed Java, JOGL, and Netbeans on a friend's machine. We are using the same version of JOGL (AMD64), and NetBeans (7.0). The only difference is that I'm using Java 6 Update 26, and he is using Update 29. I can't imagine that would pose a problem.

Anyways, the project I'm creating runs fine on both of our machines, except that when he selects a tab that gives a 3D view, it produces an infinite loop of errors.

I'm sure you really don't want to read this, but if anyone has any suggestions I'd appreciate it:

Exception in thread "AWT-EventQueue-0" javax.media.opengl.GLException: Error creating offscreen bitmap of WrappedSurface[config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[DefaultGraphicsDevice[type Windows, connection decon, unitID 0, handle 0x0], idx 0], pfdID 0, ARB-Choosen false,
                requested GLCaps[on-scr, rgba 0x8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/16, sample-ext default, one, mono  , hw, GLProfile[GL3bc/GL3bc]],
                chosen    GLCaps[offscr, rgba 0x8/8/8/1, opaque, accum-rgba 0/0/0/0, dp/st/ms: 16/0/16, sample-ext default, one, mono  , hw, GLProfile[GL3bc/GL3bc], pixmap]], displayHandle 0x0, surfaceHandle 0x0, size 642x519], werr 0
                at jogamp.opengl.windows.wgl.WindowsBitmapWGLDrawable.createBitmap(WindowsBitmapWGLDrawable.java:131)
                at jogamp.opengl.windows.wgl.WindowsBitmapWGLDrawable.setRealizedImpl(WindowsBitmapWGLDrawable.java:70)
                at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:163)
                at jogamp.opengl.windows.wgl.WindowsBitmapWGLDrawable.<init>(WindowsBitmapWGLDrawable.java:61)
                at jogamp.opengl.windows.wgl.WindowsWGLDrawableFactory.createOffscreenDrawableImpl(WindowsWGLDrawableFactory.java:461)
                at jogamp.opengl.GLDrawableFactoryImpl.createGLDrawable(GLDrawableFactoryImpl.java:168)
                at jogamp.opengl.GLDrawableFactoryImpl.createOffscreenDrawable(GLDrawableFactoryImpl.java:253)
                at javax.media.opengl.awt.GLJPanel$SoftwareBackend.initialize(GLJPanel.java:1028)
                at javax.media.opengl.awt.GLJPanel.createAndInitializeBackend(GLJPanel.java:638)
                at javax.media.opengl.awt.GLJPanel.access$2300(GLJPanel.java:128)
                at javax.media.opengl.awt.GLJPanel$PbufferBackend.initialize(GLJPanel.java:1134)
                at javax.media.opengl.awt.GLJPanel.createAndInitializeBackend(GLJPanel.java:638)
                at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:377)
                at javax.swing.JComponent.paint(JComponent.java:1029)
                at javax.swing.JComponent.paintChildren(JComponent.java:862)
                at javax.swing.JComponent.paint(JComponent.java:1038)
                at javax.swing.JComponent.paintChildren(JComponent.java:862)
                at javax.swing.JComponent.paint(JComponent.java:1038)
                at javax.swing.JComponent.paintChildren(JComponent.java:862)
                at javax.swing.JComponent.paint(JComponent.java:1038)
                at javax.swing.JComponent.paintChildren(JComponent.java:862)
                at javax.swing.JSplitPane.paintChildren(JSplitPane.java:1030)
                at javax.swing.JComponent.paint(JComponent.java:1038)
                at javax.swing.JComponent.paintToOffscreen(JComponent.java:5124)
                at javax.swing.RepaintManager$PaintManager.paintDoubleBuffered(RepaintManager.java:1491)
                at javax.swing.RepaintManager$PaintManager.paint(RepaintManager.java:1422)
                at javax.swing.RepaintManager.paint(RepaintManager.java:1225)
                at javax.swing.JComponent._paintImmediately(JComponent.java:5072)
                at javax.swing.JComponent.paintImmediately(JComponent.java:4882)
                at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:786)
                at javax.swing.RepaintManager.paintDirtyRegions(RepaintManager.java:714)
                at javax.swing.RepaintManager.prePaintDirtyRegions(RepaintManager.java:694)
                at javax.swing.RepaintManager.access$700(RepaintManager.java:41)
                at javax.swing.RepaintManager$ProcessingRunnable.run(RepaintManager.java:1636)
                at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
                at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
                at java.awt.EventQueue.access$000(EventQueue.java:84)
                at java.awt.EventQueue$1.run(EventQueue.java:602)
                at java.awt.EventQueue$1.run(EventQueue.java:600)
                at java.security.AccessController.doPrivileged(Native Method)
                at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
                at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
                at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
                at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
                at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
                at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
                at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.reflect.InvocationTargetException
                at java.awt.EventQueue.invokeAndWait(EventQueue.java:1042)
                at javax.swing.SwingUtilities.invokeAndWait(SwingUtilities.java:1326)
                at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:89)
                at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:142)
                at com.jogamp.opengl.util.FPSAnimator$1.run(FPSAnimator.java:128)
                at java.util.TimerThread.mainLoop(Timer.java:512)
                at java.util.TimerThread.run(Timer.java:462)
Caused by: javax.media.opengl.GLException: Error creating offscreen bitmap of WrappedSurface[config WindowsWGLGraphicsConfiguration[DefaultGraphicsScreen[
Reply | Threaded
Open this post in threaded view
|

Re: Will a difference in java updates make a difference?

jacksmash
Sorry... the error went away when I switched from GLPanel to GLCanvas.
Reply | Threaded
Open this post in threaded view
|

Re: Will a difference in java updates make a difference?

gouessej
Administrator
In reply to this post by jacksmash
Hi

Don't be sorry. Please can you tell us more about your configurations? Which graphics cards do you use on these machines? There is something wrong in GLJPanel, it is not your fault.

However, one of your machines does not support offscreen rendering, this might be the cause of this exception...
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Will a difference in java updates make a difference?

jacksmash
The machine on which we had problems has an NVIDIA GT 525M but it is an optimus laptop so it actually has 2 graphics systems.  It has an Intel HD graphics chip too for low power mode.

So maybe it was running in low-power mode or something(?)
Reply | Threaded
Open this post in threaded view
|

Re: Will a difference in java updates make a difference?

gouessej
Administrator
Yes it is possible but Intel HD should support offscreen rendering.
Julien Gouesse | Personal blog | Website