Login  Register

Re: Mac Canvas3D location bug

Posted by Sven Gothel on Jan 27, 2014; 6:56pm
URL: https://forum.jogamp.org/Mac-Canvas3D-location-bug-tp4030052p4031391.html

On 01/27/2014 07:08 PM, Manu [via jogamp] wrote:

> On the other side, *onscreen* canvas 3D still doesn't work with applets with
> another issue.
> Here's the stack trace if it can help:
>
> Caused by: java.lang.NullPointerException
> at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1011)
> at sun.awt.SunToolkit.getSystemEventQueueImplPP(SunToolkit.java:1007)
> at sun.awt.SunToolkit.getSystemEventQueueImpl(SunToolkit.java:1002)
> at java.awt.Toolkit.getEventQueue(Toolkit.java:1730)
> at java.awt.EventQueue.isDispatchThread(EventQueue.java:1013)
> 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.macosx.MacOSXJAWTWindow.<init>(MacOSXJAWTWindow.java:77)
Looks like some AWT things are not initialized yet ?

Can you try to run JAWTWindow$JAWTComponentListener.<init>
from the current thread ? However this could also cause a deadlock ..

Maybe you or Harvey can test this (change .. compile ..) ?


>
>
> But don't worry, I can live with offscreen canvas 3D in applets for a while.

So this is 'offscreen' or 'onscreen' ?


~Sven


signature.asc (894 bytes) Download Attachment