Page 1 of 1

Cannot make jReality work

Posted: Wed 9. Jan 2013, 22:53
by karunaMaitri
Hi, I downloaded January 2013 version of jReality from trunk (Eclipse). When I tried to run examples from tutorials/intro, I am getting the following error.

Code: Select all

JOGL3Viewer constuctor called
Profile GL3 is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL3bc is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL4 is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL4bc is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at de.jreality.jogl.AbstractViewer.render(AbstractViewer.java:549)
	at de.jreality.ui.viewerapp.ViewerSwitch.render(ViewerSwitch.java:191)
	at de.jreality.util.RenderTrigger$RenderTriggerSingleCaster.render(RenderTrigger.java:222)
	at de.jreality.util.RenderTrigger.fireRender(RenderTrigger.java:138)
	at de.jreality.util.RenderTrigger.finishCollect(RenderTrigger.java:260)
	at de.jreality.toolsystem.ToolSystem.processToolEvent(ToolSystem.java:486)
	at de.jreality.toolsystem.ToolEventQueue$1.run(ToolEventQueue.java:82)
	at java.lang.Thread.run(Unknown Source)
Caused by: javax.media.opengl.GLException: Unable to create temp OpenGL context for device context 0x42011b5c
	at jogamp.opengl.windows.wgl.WindowsWGLContext.createImpl(WindowsWGLContext.java:306)
	at jogamp.opengl.GLContextImpl.makeCurrentWithinLock(GLContextImpl.java:572)
	at jogamp.opengl.GLContextImpl.makeCurrent(GLContextImpl.java:485)
	at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:645)
	at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:594)
	at javax.media.opengl.awt.GLCanvas$8.run(GLCanvas.java:996)
	at javax.media.opengl.Threading.invoke(Threading.java:193)
	at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:449)
	at de.jreality.jogl.AbstractViewer.run(AbstractViewer.java:504)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$400(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$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)
Jan 9, 2013 11:26:31 AM de.jtem.jrworkspace.plugin.simplecontroller.SimpleController startup
SEVERE: java.lang.reflect.InvocationTargetException
	at java.awt.EventQueue.invokeAndWait(Unknown Source)
	at javax.swing.SwingUtilities.invokeAndWait(Unknown Source)
	at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController.startup(SimpleController.java:391)
	at de.jreality.plugin.JRViewer.startup(JRViewer.java:423)
	at de.jreality.plugin.JRViewer.display(JRViewer.java:582)
	at de.jreality.tutorial.intro.Intro01.main(Intro01.java:19)
Caused by: javax.media.opengl.GLException: Unable to set pixel format 14 for device context 0x40012146: error code 0
	at jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(WindowsWGLGraphicsConfigurationFactory.java:216)
	at jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.updateGraphicsConfiguration(WindowsWGLGraphicsConfiguration.java:142)
	at jogamp.opengl.windows.wgl.WindowsWGLDrawable.setRealizedImpl(WindowsWGLDrawable.java:68)
	at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:182)
	at javax.media.opengl.awt.GLCanvas$2.run(GLCanvas.java:602)
	at jogamp.common.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:74)
	at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:583)
	at javax.media.opengl.awt.GLCanvas.reshape(GLCanvas.java:662)
	at java.awt.Component.setBounds(Unknown Source)
	at java.awt.BorderLayout.layoutContainer(Unknown Source)
	at java.awt.Container.layout(Unknown Source)
	at java.awt.Container.doLayout(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validateTree(Unknown Source)
	at java.awt.Container.validate(Unknown Source)
	at java.awt.Window.show(Unknown Source)
	at java.awt.Component.show(Unknown Source)
	at java.awt.Component.setVisible(Unknown Source)
	at java.awt.Window.setVisible(Unknown Source)
	at de.jtem.jrworkspace.plugin.simplecontroller.SimpleController$1.run(SimpleController.java:367)
	at java.awt.event.InvocationEvent.dispatch(Unknown Source)
	at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.awt.EventQueue.access$400(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.awt.EventQueue$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$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)
I did the project set up, like I always did in earlier versions. But it is not working.

Please help!

Thanks!
Karuna

Re: Cannot make jReality work

Posted: Sat 12. Jan 2013, 10:18
by karunaMaitri
I solved the problem. I updated my graphics card drivers, and everything is working fine.

Thanks!
Karuna

Re: Cannot make jReality work

Posted: Tue 15. Jan 2013, 04:23
by benjamin.kutschan
Can you tell us which card on which system you have updated to make this work? I'd be quite interested.
In plugin.basic.View.java there are five lines quite at the start of the file of which 4 lines are commented. Try commenting the first and uncommenting the second or vice versa and see what happens.

Re: Cannot make jReality work

Posted: Thu 7. Feb 2013, 21:12
by karunaMaitri
Hi Benjamin, I am sorry for the delayed message. My computer crashed and I am in the process of moving to a new computer. Here is the information about my graphics card:

Adapter Type ATI Radeon Graphics Processor AGP (0x4A49), ATI Technologies Inc. compatible
Adapter Description RADEON X800 PRO/GTO
Installed Drivers ati2dvag.dll
Driver Version 6.14.10.6925

Though the program worked without the modifications you suggested, I get the following error message.

Code: Select all

JOGL3Viewer constuctor called
Profile GL3 is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL3bc is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL4 is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Profile GL4bc is not available on WindowsGraphicsDevice[type .windows, connection decon, unitID 0, handle 0x0, NullToolkitLock[]], but: [GLProfile[GL2ES2/GL2.hw], GLProfile[GL2ES1/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2/GL2.hw], GLProfile[GL2GL3/GL2.hw]]
Then I uncommented the first line and commented the second line, as you suggested in plugin.basic.View.java. I stopped getting the above message.

In both cases the program works identically. I have not tried it on my new computer. I will let you know if there is a problem with my new graphics card.

Thanks!
Karuna

Re: Cannot make jReality work

Posted: Fri 8. Feb 2013, 14:32
by benjamin.kutschan
Seems all fine. The output you're getting is not really an error message, but the information, that your graphics gard does not support our new openGl3.3 backend. See this thread for details:
http://www3.math.tu-berlin.de/jreality/ ... ?f=7&t=638
With your new card - if it supports at least opengl3.3 - you can try out the new backend, which is still in development.

Re: Cannot make jReality work

Posted: Fri 8. Feb 2013, 21:49
by karunaMaitri
Thanks! My new graphics card is NVIDIA Geforce GTX 660 based. According to Geforce web site, it supports up to Opengl 4.3. I am relieved to know that my new graphics card can support the full functionality of jReality.

Karuna

Re: Cannot make jReality work

Posted: Sat 2. Mar 2013, 22:20
by benjamin.kutschan
Maybe I should better mention, that there are no plans to remove the old backend. We will keep the old backend along with the new one. jReality can find out by itself, which backends are supported and loads these. So no worries about old graphics hardware not being supported in the future.