Canvas3D resize problem

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

Canvas3D resize problem

runiter
In my gui shown below, there is a middle panel (table of values), which causes the canvas to be sized incorrectly whenever I make the table visible. (see how the left portion of canvas is greyed).

I tried calling repaint, invalidate, revalidate, resize on canvas and/or its parent to no avail. The only thing that worked was to remove canvas from parent jpanel and reinsert it. Although this worked in the stand-alone application, it completely hanged JVM in webstart. Is there anyway to force canvas to recalculate its position and size?

Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

hharrison
Could you let me know what combination of versions you are using?

OS, Java3d version, JOGL version, and java version....thanks.

Also, if you are not using the latest JOGL release (2.1.4), please retest with that version.

Harvey
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
os.name = Windows 8
os.version = 6.2
os.arch = x86
java.version = 1.7.0_51

Jogl Version: 2.1-b1211-20140125
Java3D Version: 3D [dev] 1.6.0-pre9-daily-experimental daily

Everything is up to date except Jogl which is just 5 days older than latest version 2.1.4. I just tried the latest version but I got the following exception:

java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
        at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:107)
        at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
        at javax.media.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:583)
        at javax1.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6374)
        at javax1.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4611)
        at javax1.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2381)
        at javax1.media.j3d.Renderer.doWork(Renderer.java:881)
        at javax1.media.j3d.J3dThread.run(J3dThread.java:271)
Caused by: java.lang.reflect.InvocationTargetException
        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 jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
        ... 7 more
Caused by: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:48)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:166)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:127)
        at com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:119)
        at jogamp.nativewindow.jawt.windows.WindowsJAWTWindow.<init>(WindowsJAWTWindow.java:60)
        ... 12 more

DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0]
canvas = runiter.grapher.math.Sheet$CapturingCanvas3D[canvas0,0,0,386x429]
Exception in thread "J3D-BehaviorScheduler-1" java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(Unknown Source)
        at java.util.zip.ZipFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getEntry(Unknown Source)
        at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getJarEntry(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
        at java.net.URLClassLoader$1.run(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.ClassLoader.loadClass(Unknown Source)
        at javax1.media.j3d.BehaviorScheduler.doWork(BehaviorScheduler.java:167)
        at javax1.media.j3d.J3dThread.run(J3dThread.java:271)


(some packages show as javax1 because I automatically rename j3d packages to avoid conflict with existing Mac OS. With previous jogl doing this didn't cause any problems so I don't think this is the cause of this exception)
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
The IllegalStateException might be caused by a corrupted JAR. Please reproduce this bug on a small test case only with JOGL if you can.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
It's hard for me to make a test case right now, but can you try my webstart app to see if it crashes in your computer as well?

http://www.runiter.com/webstart/test_gc3/grapher.jnlp

Note that the software works fine when run as stand alone with exact same jogl jar files. Only in webstart it throws those exceptions and it also seem to crash the JVM (program closes immediately) although no err log is generated.

Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
Hi

I've just tried your application with Oracle Java 1.8 EA build 124 under Windows 7 64 bits (as I think you're not interested in GNU Linux anyway), I just see your application less than a second and it crashes. The possible root causes are at least one corrupted JAR or a problem of URL caching (see here) but I have cleaned mine before testing your application. Maybe it's a side effect of your modification as you rename the packages of Java3D. As your bug is not reproducible with JOGL and Java Webstart and as you don't use unmodified Java3D JARs, the problem probably comes from something you do on your side. I'll try to run some other JOGL Webstartable applications to see what happens.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
I tried replacing the jar files one by one to see which one is the problematic one. I noticed that all is fixed if I only replace jogl-all.jar with an older version. So the new jogl-all.jar is indeed the culprit.

So I don't think renamed packages is the cause because I only renamed Java3D packaged, I didn't touch jogl-all.jar except signing it the same way I signed the other jar files.

I think this problem happens in GNU Linux also. I know in both Windows and Mac OS X it happens anyways.

Even if these exceptions occur it shouldn't close my application but it does! So looks like Jogl crashes the JVM although no hs_err_pid.log is generated!

Could it be that the jogl i download here has problems?

http://jogamp.org/deployment/jogamp-current/archive/jogamp-all-platforms.7z

Edit: On the second thought, the problem is a corrupted jar file because it works if I run it as standalone. It must be something in the code you guys added since the last version that causes problem for webstart only.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
If you downloaded a single JAR separately from Firefox, it would corrupt it because of a "security feature", please thank Mozilla, it puts the JAR into a ZIP instead of providing it as is. I'll update TUER in order to check whether I reproduce your bug and I'll test with OpenJDK 1.7 update 60 as well.

For example, if you get jogl-all.jar from here with Firefox, you will probably have some troubles.

Edit.: I already use JOGL 2.1.4 in another application without having any trouble when using Webstart.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
This post was updated on .
In reply to this post by runiter
I have just launched this program that uses the JARs in "jogamp-current":
http://jogamp.org/deployment/jogamp-current/jogl-application-version.jnlp

It works very well. Your jogl-all.jar might get corrupted but I don't know how.

Edit.: You modified jogl-all.jar as well:
Codebase: www.runiter.com

but it shouldn't be a problem. I do something similar and it works :s
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
I use chrome for browser.

I used the jnlp you supplied as template and removed all my signed jogl files and instead a reference to your jogl directly:

<extension name="jogl-all-awt" href="http://jogamp.org/deployment/archive/rc/v2.1.4/jogl-all-awt.jnlp" />

Even though now it's directly using your jar files with Sven's signatures, it still crashes the same way with same zip error!!
You can try it yourself and see:

http://www.runiter.com/webstart/test_gc3/grapher.jnlp

So I guess it's safe to say the problem is not the corrupt jar file but it's a bug in the program.
The example you sent doesn't have a canvas. Do you have an example when canvas? The crash seem to occur when canvas is being initialized. Even better do you have a Java3D example with your own jnlp?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
This post was updated on .
The basic Gears example works very well without crashing:
http://jogamp.org/deployment/jogamp-current/jogl-demos/Gears.jnlp

The other Webstartable demos work too:
http://jogamp.org/jogl-demos/www/

Edit.: If you don't use exactly the same version of JOGL than the one used to build Java3D, it might cause some troubles. I don't know what can cause this crash. Sweet Home 3D seems to go on working correctly.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
This post was updated on .
where can I get the Java3D version that used the latest JOGL build? I used the link in your blog to download latest Java3D jars



Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
Ok, you asked for a test case, here is a test case. It's basically the HelloWorld of Java3D which doesn't work anymore. Note that I also no longer rename the packages but that didn't solve the problem either.

The test case is:

                        final SimpleUniverse universe = new SimpleUniverse();
                        final BranchGroup group = new BranchGroup();
                        group.addChild(new ColorCube(0.3));
                        universe.getViewingPlatform().setNominalViewingTransform();
                        universe.addBranchGraph(group);

You can try it here:

http://www.runiter.com/webstart/test_gc3/grapher.jnlp

The Jogl (which includes that file that causes Zip error) in above example is set to point to this extension:

http://jogamp.org/deployment/archive/rc/v2.1.4/jogl-all-awt.jnlp

The exception is this:

java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
        at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:107)
        at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
        at javax.media.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:583)
        at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6374)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4611)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2381)
        at javax.media.j3d.Renderer.doWork(Renderer.java:881)
        at javax.media.j3d.J3dThread.run(J3dThread.java:271)
Caused by: java.lang.reflect.InvocationTargetException
        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 jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
        ... 7 more
Caused by: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:48)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:166)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:127)
        at com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:119)
        at jogamp.nativewindow.jawt.windows.WindowsJAWTWindow.<init>(WindowsJAWTWindow.java:60)
        ... 12 more

DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = Win32GraphicsDevice[screen=0]
canvas = javax.media.j3d.Canvas3D[canvas0,0,0,240x217]
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(Unknown Source)
        at java.util.zip.ZipFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getEntry(Unknown Source)
        at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getJarEntry(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
        at java.net.URLClassLoader$1.run(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.ClassLoader.loadClass(Unknown Source)
        at javax.media.j3d.GeometryRetained.<init>(GeometryRetained.java:80)
        at javax.media.j3d.GeometryArrayRetained.<init>(GeometryArrayRetained.java:363)
        at javax.media.j3d.QuadArrayRetained.<init>(QuadArrayRetained.java:40)
        at javax.media.j3d.QuadArray.createRetained(QuadArray.java:159)
        at javax.media.j3d.SceneGraphObject.<init>(SceneGraphObject.java:114)
        at javax.media.j3d.NodeComponent.<init>(NodeComponent.java:49)
        at javax.media.j3d.Geometry.<init>(Geometry.java:63)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:787)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:617)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:472)
        at javax.media.j3d.QuadArray.<init>(QuadArray.java:60)
        at com.sun.j3d.utils.geometry.ColorCube.<init>(ColorCube.java:140)
        at runiter.grapher.MainApplication.main(MainApplication.java:116)
        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)
#### Java Web Start Error:
#### Shutdown in progress
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
Hi

Your bug looks like this one:
http://bugs.java.com/view_bug.do?bug_id=8019274

The NullPointerException is the same but you don't use RMI.

Your bug might have been caused by the bug fix of this one:
http://bugs.java.com/view_bug.do?bug_id=8017776

Please can you try this workaround?
http://stackoverflow.com/a/20102779

@Harvey I'll look at JoglPipeline.createNewContext().

Edit.: I don't succeed in reproducing this bug without Java3D for the moment. @runiter, feel free to fill a bug report with a SSCCE. Thank you for your piece of code but if your bug is caused by a call done in the piece of code you haven't published, it won't be very helpful.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
gouessej, did you try my testcase in webstart? it works fine in standalone but fails in webstart.
If the testcase did work in webstart, could you please give me the jnlp link so I try it as well?
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
Yes I did:

Serial Number:
Invalid.
Enabling UI anti-alias...
3D [dev] 1.6.0-pre9-daily-experimental daily

java.lang.IllegalArgumentException: java.lang.reflect.InvocationTargetException
        at jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:107)
        at jogamp.nativewindow.NativeWindowFactoryImpl.getNativeWindowImpl(NativeWindowFactoryImpl.java:66)
        at javax.media.nativewindow.NativeWindowFactory.getNativeWindow(NativeWindowFactory.java:583)
        at javax.media.j3d.JoglPipeline.createNewContext(JoglPipeline.java:6374)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:4611)
        at javax.media.j3d.Canvas3D.createNewContext(Canvas3D.java:2381)
        at javax.media.j3d.Renderer.doWork(Renderer.java:881)
        at javax.media.j3d.J3dThread.run(J3dThread.java:271)
Caused by: java.lang.reflect.InvocationTargetException
        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 jogamp.nativewindow.NativeWindowFactoryImpl.getAWTNativeWindow(NativeWindowFactoryImpl.java:105)
        ... 7 more
Caused by: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:48)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:166)
        at com.jogamp.nativewindow.awt.JAWTWindow$JAWTComponentListener.<init>(JAWTWindow.java:127)
        at com.jogamp.nativewindow.awt.JAWTWindow.<init>(JAWTWindow.java:119)
        at jogamp.nativewindow.jawt.windows.WindowsJAWTWindow.<init>(WindowsJAWTWindow.java:60)
        ... 12 more

DefaultRenderingErrorListener.errorOccurred:
CONTEXT_CREATION_ERROR: Renderer: Error creating Canvas3D graphics context
graphicsDevice = D3DGraphicsDevice[screen=0]
canvas = javax.media.j3d.Canvas3D[canvas0,0,0,240x218]
java.lang.IllegalStateException: zip file closed
        at java.util.zip.ZipFile.ensureOpen(Unknown Source)
        at java.util.zip.ZipFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getEntry(Unknown Source)
        at com.sun.deploy.cache.CachedJarFile.getEntry(Unknown Source)
        at java.util.jar.JarFile.getJarEntry(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath$JarLoader.getResource(Unknown Source)
        at com.sun.deploy.security.DeployURLClassPath.getResource(Unknown Source)
        at java.net.URLClassLoader$1.run(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.ClassLoader.loadClass(Unknown Source)
        at javax.media.j3d.GeometryRetained.<init>(GeometryRetained.java:80)
        at javax.media.j3d.GeometryArrayRetained.<init>(GeometryArrayRetained.java:363)
        at javax.media.j3d.QuadArrayRetained.<init>(QuadArrayRetained.java:40)
        at javax.media.j3d.QuadArray.createRetained(QuadArray.java:159)
        at javax.media.j3d.SceneGraphObject.<init>(SceneGraphObject.java:114)
        at javax.media.j3d.NodeComponent.<init>(NodeComponent.java:49)
        at javax.media.j3d.Geometry.<init>(Geometry.java:63)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:787)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:617)
        at javax.media.j3d.GeometryArray.<init>(GeometryArray.java:472)
        at javax.media.j3d.QuadArray.<init>(QuadArray.java:60)
        at com.sun.j3d.utils.geometry.ColorCube.<init>(ColorCube.java:140)
        at runiter.grapher.MainApplication.main(MainApplication.java:116)
        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)
ReportError: Error: zip file closed


I think that this problem is caused by a regression in AWT and maybe a regression in JOGL 2. Do you succeed in making it work with a build older than JOGL 2.1.4 in Webstart?
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

runiter
yes absolutely, it works fine with the earlier version of jogl.
It works with jogl version that was released Dec 25, 2013 but doesn't work with the version that was released Dec 31, 2013. So it must be relatively easy to figure out what changes you made in that 5 days that triggered this problem.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

gouessej
Administrator
Ok but it was rather between January 25 and January 31, this regression has been caused by this change:
https://github.com/sgothel/jogl/commit/b7fafd30ffc5eac73880b264043582d74175a394

https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/JoglPipeline.java#L6374

Your stack trace clearly shows that you pass in the constructor of JAWTComponentListener. You can fill a bug report. I don't understand why I don't succeed in reproducing it with existing demos.

Edit.: Please add a FULL working example into the bug report with absolutely all lines of code.
Julien Gouesse | Personal blog | Website
Reply | Threaded
Open this post in threaded view
|

Re: Canvas3D resize problem

Sven Gothel
Administrator
On 02/21/2014 06:41 PM, gouessej [via jogamp] wrote:
> Ok but it was rather between January 25 and January 31, this regression has
> been caused by this change:
> https://github.com/sgothel/jogl/commit/b7fafd30ffc5eac73880b264043582d74175a394
>
> https://github.com/hharrison/java3d-core/blob/master/src/classes/share/javax/media/j3d/JoglPipeline.java#L6374
>
> Your stack trace clearly shows that you pass in the constructor of
> JAWTComponentListener. You can fill a bug report. I don't understand why I
> don't succeed in reproducing it with existing demos.


This NPE exception is not a bug of ours
and due to the later 'zip' thingy shown .. I doubt it is the cause.

+++
Caused by: java.lang.NullPointerException
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImplPP(Unknown Source)
        at sun.awt.SunToolkit.getSystemEventQueueImpl(Unknown Source)
        at java.awt.Toolkit.getEventQueue(Unknown Source)
        at java.awt.EventQueue.isDispatchThread(Unknown Source)
        at
com.jogamp.common.util.awt.AWTEDTExecutor.invoke(AWTEDTExecutor.java:48)
+++

~Sven


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

Re: Canvas3D resize problem

runiter
Sven Gothel wrote
This NPE exception is not a bug of ours
and due to the later 'zip' thingy shown .. I doubt it is the cause.
It may appear that way, but I think even the zip file exception is due to a bug resulted from change of code in jogl.
My simple Java3D test case (above) runs in a webstart jnlp that points to your own jogl jnlp extension hosted in your site. So if there is a corrupt jar file it would be in your server but I doubt there is any corrupt jar because if I were to download them and run them locally in a none-webstart application it works fine.
Saeid Nourian, Ph.D. Eng. | Graphing Calculator 3D
123