update to rc7 problems

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

update to rc7 problems

robbiezl
I update my program from rc5 to rc7,but i have some problems.

1.When i start my programe with full screen state, i got a exception below.

Exception in thread "Timer-0" javax.media.opengl.GLException: Unable to set pixel format 44 for device context 0xa011da3: error code 0
        at jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(WindowsWGLGraphicsConfigurationFactory.java:205)
        at jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.updateGraphicsConfiguration(WindowsWGLGraphicsConfiguration.java:136)
        at jogamp.opengl.windows.wgl.WindowsWGLDrawable.setRealizedImpl(WindowsWGLDrawable.java:70)
        at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:163)
        at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:556)
        at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:398)
        at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
        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)


2 .In my programe,i private update worldwind source code from  rc5 to rc7,the pick of worldwind runs wrong.I got a exception

        2012-5-2 14:59:43 gov.nasa.worldwind.geom.Line <init>
严重: Direction is zero vector
2012-5-2 14:59:43 gov.nasa.worldwind.AbstractSceneController pick
严重: Exception encountered while picking
java.lang.IllegalArgumentException: Direction is zero vector
        at gov.nasa.worldwind.geom.Line.<init>(Line.java:55)
        at gov.nasa.worldwind.view.ViewUtil.computeRayFromScreenPoint(ViewUtil.java:551)
        at gov.nasa.worldwind.view.BasicView.computeRayFromScreenPoint(BasicView.java:571)
        at gov.nasa.worldwind.terrain.RectangularTessellator.resolvePick(RectangularTessellator.java:1377)
        at gov.nasa.worldwind.terrain.RectangularTessellator.pick(RectangularTessellator.java:1185)
        at gov.nasa.worldwind.terrain.RectangularTessellator$RectTile.pick(RectangularTessellator.java:325)
        at gov.nasa.worldwind.terrain.SectorGeometryList.pick(SectorGeometryList.java:253)
        at gov.nasa.worldwind.AbstractSceneController.pickTerrain(AbstractSceneController.java:488)
        at gov.nasa.worldwind.AbstractSceneController.pick(AbstractSceneController.java:572)
        at gov.nasa.worldwind.BasicSceneController.doRepaint(BasicSceneController.java:27)
        at gov.nasa.worldwind.AbstractSceneController.repaint(AbstractSceneController.java:279)
        at gov.nasa.worldwind.WorldWindowGLAutoDrawable.doDisplay(WorldWindowGLAutoDrawable.java:342)
        at gov.nasa.worldwind.WorldWindowGLAutoDrawable.display(WorldWindowGLAutoDrawable.java:235)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
        at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:654)
        at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
        at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
        at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:301)
        at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
        at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
        at jogamp.opengl.GLPbufferImpl.invokeGL(GLPbufferImpl.java:287)
        at jogamp.opengl.GLPbufferImpl.display(GLPbufferImpl.java:150)
        at javax.media.opengl.awt.GLJPanel$PbufferBackend.doPaintComponentImpl(GLJPanel.java:1196)
        at javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:941)
        at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:355)
        at javax.swing.JComponent.paint(JComponent.java:1029)
        at graphic.shape.WorldWindFlat.createComonentBufferedImage(WorldWindFlat.java:308)
        at graphic.shape.WorldWindFlat.access$1(WorldWindFlat.java:284)
        at graphic.shape.WorldWindFlat$TextureReadThread.run(WorldWindFlat.java:343)


rc7 had a big change from rc5? Still use rc5 or update to rc7 ,I hope I can solve these problems ,so I can update to rc8,rc9...in the future.

sorry for my poor english.
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

gouessej
Administrator
Hi

Your first problem looks like this bug:
https://jogamp.org/bugzilla/show_bug.cgi?id=498

Please could you try to find which build breaks something in your case? You should try several builds between the RC5 and the RC7 to find which build(s) cause(s) these regressions.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

robbiezl
Thank for ur help ,gouessej!

I tryed rc6 ,it still cause the worldwind went wrong.
now i will try the version "gluegen_41-joal_24-jogl_49-jocl_33/ 23-Apr-2012 20:14 "
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

robbiezl
In reply to this post by gouessej
I tried all builds between rc5 and rc7,worldwind is still lose its direction. Only rc5 runs well!
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

Sven Gothel
Administrator
In reply to this post by robbiezl
On 05/02/2012 09:06 AM, robbiezl [via jogamp] wrote:
> I update my program from rc5 to rc7,but i have some problems.
>
> 1.When i start my programe with full screen state, i got a exception below.
>

Thank you for your bugreport.

Can you please give us the URL and description of your WWJ version
which uses JOGL2, so I can test & fix this regression ?

Xerxes made a patch of WWJ to be able to work w/ JOGL2,
but I don't know the version you use.

Further answers below ..

> Exception in thread "Timer-0" javax.media.opengl.GLException: Unable to set
> pixel format 44 for device context 0xa011da3: error code 0
>         at
> jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(WindowsWGLGraphicsConfigurationFactory.java:205)
>
>         at
> jogamp.opengl.windows.wgl.WindowsWGLGraphicsConfiguration.updateGraphicsConfiguration(WindowsWGLGraphicsConfiguration.java:136)
>
>         at
> jogamp.opengl.windows.wgl.WindowsWGLDrawable.setRealizedImpl(WindowsWGLDrawable.java:70)
>
>         at jogamp.opengl.GLDrawableImpl.setRealized(GLDrawableImpl.java:163)
>         at javax.media.opengl.awt.GLCanvas.validateGLDrawable(GLCanvas.java:556)
>         at javax.media.opengl.awt.GLCanvas.display(GLCanvas.java:398)
>         at
> com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:74)
>         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)
>
>
> 2 .In my programe,i private update worldwind source code from  rc5 to rc7,the
> pick of worldwind runs wrong.I got a exception
>
>         2012-5-2 14:59:43 gov.nasa.worldwind.geom.Line <init>
> 严重: Direction is zero vector
> 2012-5-2 14:59:43 gov.nasa.worldwind.AbstractSceneController pick
> 严重: Exception encountered while picking
> java.lang.IllegalArgumentException: Direction is zero vector
>         at gov.nasa.worldwind.geom.Line.<init>(Line.java:55)
>         at
> gov.nasa.worldwind.view.ViewUtil.computeRayFromScreenPoint(ViewUtil.java:551)
>         at
> gov.nasa.worldwind.view.BasicView.computeRayFromScreenPoint(BasicView.java:571)
>         at
> gov.nasa.worldwind.terrain.RectangularTessellator.resolvePick(RectangularTessellator.java:1377)
>
>         at
> gov.nasa.worldwind.terrain.RectangularTessellator.pick(RectangularTessellator.java:1185)
>
>         at
> gov.nasa.worldwind.terrain.RectangularTessellator$RectTile.pick(RectangularTessellator.java:325)
>
>         at
> gov.nasa.worldwind.terrain.SectorGeometryList.pick(SectorGeometryList.java:253)
>         at
> gov.nasa.worldwind.AbstractSceneController.pickTerrain(AbstractSceneController.java:488)
>
>         at
> gov.nasa.worldwind.AbstractSceneController.pick(AbstractSceneController.java:572)
>         at
> gov.nasa.worldwind.BasicSceneController.doRepaint(BasicSceneController.java:27)
>         at
> gov.nasa.worldwind.AbstractSceneController.repaint(AbstractSceneController.java:279)
>
>         at
> gov.nasa.worldwind.WorldWindowGLAutoDrawable.doDisplay(WorldWindowGLAutoDrawable.java:342)
>
>         at
> gov.nasa.worldwind.WorldWindowGLAutoDrawable.display(WorldWindowGLAutoDrawable.java:235)
>
>         at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
>         at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
>         at javax.media.opengl.awt.GLJPanel$Updater.display(GLJPanel.java:654)
>         at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:189)
>         at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:177)
>         at jogamp.opengl.GLPbufferImpl$DisplayAction.run(GLPbufferImpl.java:301)
>         at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:425)
>         at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:364)
>         at jogamp.opengl.GLPbufferImpl.invokeGL(GLPbufferImpl.java:287)
>         at jogamp.opengl.GLPbufferImpl.display(GLPbufferImpl.java:150)
>         at
> javax.media.opengl.awt.GLJPanel$PbufferBackend.doPaintComponentImpl(GLJPanel.java:1196)
>
>         at
> javax.media.opengl.awt.GLJPanel$AbstractReadbackBackend.doPaintComponent(GLJPanel.java:941)
>
>         at javax.media.opengl.awt.GLJPanel.paintComponent(GLJPanel.java:355)
>         at javax.swing.JComponent.paint(JComponent.java:1029)
>         at
> graphic.shape.WorldWindFlat.createComonentBufferedImage(WorldWindFlat.java:308)
>         at graphic.shape.WorldWindFlat.access$1(WorldWindFlat.java:284)
>         at
> graphic.shape.WorldWindFlat$TextureReadThread.run(WorldWindFlat.java:343)
>
>
> rc7 had a big change from rc5? Still use rc5 or update to rc7 ,I hope I can
> solve these problems ,so I can update to rc8,rc9...in the future.
Yes, RC6 had huge changes compared to RC5.
Actually RC6 and RC7 have a few 'hickups' and are not exactly stable as it
turned out in regards to Windows and Applets. I prepare RC8 now.

~Sven


signature.asc (910 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

gouessej
Administrator
In reply to this post by robbiezl
Please write a bug report and try to provide a small test case to reproduce the first problem.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: update to rc7 problems

robbiezl
In reply to this post by Sven Gothel
Thank you for ur help Sven.I download wwj source code 1.2 from http://worldwind.arc.nasa.gov/java/ 
and update it to rc5 by myself just without compile errors and most functions of wwj works well.I really do not know why wwj org still use JOGL1  ,not update it to JOGL2.


For some political reasons in China PR,I cannot visit trimlice.com.But use the proxy I get the information in that frum,that path I think is for some texture issues. Update to RC7,the common picking functions runs wrong,I think the WWJ source code may have a big change not just compile no error;

I will try to find solutions with rc7 version .jogamp is a great work,I will wait for great RC8!