Some bugs

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

Some bugs

Wibowit
Hello,

Similarly to my post in JOCL forum, I don't know if there's a bug or I'm doing something wrong.

I've run demos from http://jogamp.org/deployment/webstart/jogl-demos/ .

My results are (on Windows 7 64-bit, ATI Radeon HD 5770, 8 GiB RAM):

CustomText.jnlp, FlyingText.jnlp, HWShadowMapsSimple.jnlp, ParticleEngine.jnlp, ProceduralTexturePhysics.jnlp, TestTextRenderer.jnlp, TextCube.jnlp, TextCubeDebug.jnlp, TextFlow.jnlp, VertexProgRefract.jnlp seems to work fine.

HDR.jnlp, HDRDebug.jnlp displays blank window.

InfiniteShadowsVolume.jnlp gives an error:
java.lang.ArrayIndexOutOfBoundsException: 0
	at com.jogamp.opengl.impl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfigurationARB(WindowsWGLGraphicsConfigurationFactory.java:276)
	at com.jogamp.opengl.impl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.updateGraphicsConfiguration(WindowsWGLGraphicsConfigurationFactory.java:190)
	at com.jogamp.opengl.impl.windows.wgl.WindowsWGLGraphicsConfigurationFactory.preselectGraphicsConfiguration(WindowsWGLGraphicsConfigurationFactory.java:174)
	at com.jogamp.opengl.impl.windows.wgl.WindowsWGLGraphicsConfiguration.preselectGraphicsConfiguration(WindowsWGLGraphicsConfiguration.java:164)
	at com.jogamp.opengl.impl.windows.wgl.awt.WindowsAWTWGLGraphicsConfigurationFactory.chooseGraphicsConfigurationImpl(WindowsAWTWGLGraphicsConfigurationFactory.java:125)
	at javax.media.nativewindow.GraphicsConfigurationFactory.chooseGraphicsConfiguration(GraphicsConfigurationFactory.java:228)
	at javax.media.opengl.awt.GLCanvas.chooseGraphicsConfiguration(GLCanvas.java:885)
	at javax.media.opengl.awt.GLCanvas.addNotify(GLCanvas.java:493)
	at java.awt.Container.addNotify(Unknown Source)
	at java.awt.Window.addNotify(Unknown Source)
	at java.awt.Frame.addNotify(Unknown Source)
	at java.awt.Window.pack(Unknown Source)
	at demos.infiniteShadowVolumes.InfiniteShadowVolumes.main(InfiniteShadowVolumes.java:115)
	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)

JRefract.jnlp doesn't work fine, only display text 'Hello World!' properly and displays background for Gears demo plus varying FPS counter, every other demo shows a blank window.

JRefractNoOGL.jnlp seems to work fine except that it hangs on Infinite Shadow Volumes.

VertexArrayRangle.jnlp, VertexBufferObject.jnlp closes shortly after loading and doesn't show anything.

WorldWindBasicDemo.jnlp gives an error:
java.lang.reflect.InvocationTargetException
	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)
Caused by: java.lang.NoClassDefFoundError: javax/media/opengl/GLCanvas
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(Unknown Source)
	at java.lang.ClassLoader.defineClass(Unknown Source)
	at java.security.SecureClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.defineClass(Unknown Source)
	at java.net.URLClassLoader.access$000(Unknown Source)
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethod(Unknown Source)
	at java.awt.Component.isCoalesceEventsOverriden(Unknown Source)
	at java.awt.Component.access$500(Unknown Source)
	at java.awt.Component$3.run(Unknown Source)
	at java.awt.Component$3.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.awt.Component.checkCoalescing(Unknown Source)
	at java.awt.Component.<init>(Unknown Source)
	at java.awt.Container.<init>(Unknown Source)
	at java.awt.Window.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at java.awt.Frame.<init>(Unknown Source)
	at javax.swing.JFrame.<init>(Unknown Source)
	at gov.nasa.worldwind.examples.ApplicationTemplate$AppFrame.<init>(Unknown Source)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
	at java.lang.reflect.Constructor.newInstance(Unknown Source)
	at java.lang.Class.newInstance0(Unknown Source)
	at java.lang.Class.newInstance(Unknown Source)
	at gov.nasa.worldwind.examples.ApplicationTemplate.start(Unknown Source)
	at gov.nasa.worldwind.examples.ApplicationTemplate.main(Unknown Source)
	... 9 more
Caused by: java.lang.ClassNotFoundException: javax.media.opengl.GLCanvas
	at java.net.URLClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(Unknown Source)
	at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 45 more

XTrans shows a blank window with menu bar. No option from any menu works, except Quit option, which works.

System specifications are same as those in previous post:

Catalyst version: Catalyst_10.12_CCC2_Preview_Win7_Dec7 and Stream SDK version: streamsdk_2-3_win764

My environment variables are:
ATISTREAMSDKROOT=C:\Program Files (x86)\ATI Stream\
ATISTREAMSDKSAMPLESROOT=C:\AMD\ATI Stream Samples\
JAVA_HOME=C:\Program Files\Java\jre6
Path=C:\AMD\ATI Stream Samples\bin\x86_64;C:\AMD\ATI Stream Samples\bin\x86;C:\Program Files (x86)\ATI Stream\bin\x86_64;C:\Program Files (x86)\ATI Stream\bin\x86;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;%JAVA_HOME%\bin;C:\Program Files (x86)\Windows Live\Shared;C:\Program Files (x86)\ATI Stream\Tools\Stream KernelAnalyzer 1.7\
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Wade Walker
Administrator
I see the same exceptions as you do. The HDR rendering works on mine, but one side of the screen is black. These look like legitimate bugs. I'm on Windows 7 64-bit, nvidia GeForce 8800 GTX, driver version 260.99, so it's not just an ATI driver thing.

We should probably let Sven comment on this -- these may be known issues. If not, we can file bug reports on these.
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Wibowit
HDR.jnlp uses some Cg shaders and Cg language is made by nVidia. It's possible that ATI doesn't support them.
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Wibowit
In reply to this post by Wade Walker
Is someone working on this bugs? I've tried webstart-next (from Feb 9) and VertexBufferObject.jnlp and VertexArrayRange.jnlp still doesn't work. Will they work soon or should I avoid VBO's at all?

I've tried those demos on both Windows 7 64-bit, Catalyst 11.2, Radeon HD 5770 and on Ubuntu 10.10 64-bit, Catalyst 10.12, Radeon HD 5770.
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Michael Bien
  VBOs work well. The demos may be a bit buggy or not up2date. Most of
them are quite old already :)

e.g for a alternative VBO sample which uses OpenCL-OpenGL
interoperability you could take a look at:
http://jogamp.org/deployment/webstart-next/jocl-demos/glclinterop.jnlp
(opencl drivers required)

thanks for bringing this up again.

best regards,

michael

On 02/17/2011 08:06 PM, Wibowit [via jogamp] wrote:

>
> Is someone working on this bugs? I've tried webstart-next (from Feb 9) and
> VertexBufferObject.jnlp and VertexArrayRange.jnlp still doesn't work. Will
> they work soon or should I avoid VBO's at all?
>
> I've tried those demos on both Windows 7 64-bit, Catalyst 11.2, Radeon HD
> 5770 and on Ubuntu 10.10 64-bit, Catalyst 10.12, Radeon HD 5770.
>
> _______________________________________________
> If you reply to this email, your message will be added to the discussion below:
> http://forum.jogamp.org/Some-bugs-tp2291593p2521538.html
> To start a new topic under jogamp, email [hidden email]
> To unsubscribe from jogamp, visit
http://michael-bien.com/

Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Wade Walker
Administrator
Michael Bien wrote
The demos may be a bit buggy or not up2date. Most of
them are quite old already :)
I wonder, should we add the demos to the regression test suite? If they were in the regression, we could at least insure that they don't crash or gradually become unusable.
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Sven Gothel
Administrator
On Friday, February 18, 2011 02:31:06 Wade Walker [via jogamp] wrote:

>
> Michael Bien wrote:
> >
> > The demos may be a bit buggy or not up2date. Most of
> > them are quite old already :)
> >
>
> I wonder, should we add the demos to the regression test suite? If they were
> in the regression, we could at least insure that they don't crash or
> gradually become unusable.

I migrated a few, gears, multisample :)

Sure it would be neat, but it's not just about adding them,
but to automate them in a way they can be validated.

As you can see, we already have a manual 'bugs' package in src/test: com.jogamp.opengl.test.bugs
for 'manual' verification of not automated tests.

IMHO automated tests are for sure superior but also consume some time and love (thinking)
to make them useful.

You are all very very welcome to add sensible unit tests - of course.

~Sven
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

Wade Walker
Administrator
Sven Gothel wrote
Sure it would be neat, but it's not just about adding them,
but to automate them in a way they can be validated.

IMHO automated tests are for sure superior but also consume some time and love (thinking)
to make them useful.
I've been thinking about this. I know that driver writers and graphics cards makers have automated tests that compare newly rendered output with saved "gold" images. They do allow for some minor variation when comparing those images, so that slight differences don't cause a failure. I'll try this on one of my unit tests and see if I can get the image comparison to work cross-platform, at least for simple cases.
Reply | Threaded
Open this post in threaded view
|

Re: Some bugs

BrickFarmer
In this case it sounds like there is some value in running all demos as part of the test suite and at the minimum checking for exceptions.