Summary: | invokeAndWait exception exclusive to MacOS and Safari browser | ||
---|---|---|---|
Product: | [JogAmp] Jogl | Reporter: | Vincent Ly <vsector> |
Component: | applet | Assignee: | Sven Gothel <sgothel> |
Status: | RESOLVED INVALID | ||
Severity: | normal | CC: | cdefranoux, wwalker3 |
Priority: | --- | ||
Version: | 2 | ||
Hardware: | All | ||
OS: | macosx | ||
Type: | --- | SCM Refs: | |
Workaround: | --- |
Description
Vincent Ly
2011-02-08 22:42:42 CET
This works for me on OS X 10.6.6, Java 1.6.0_24-b07-334, Safari 5.0.4 (6533.20.27), NVIDIA GeForce 320M. Could you tell us your versions of the above? I notice a similar stacktrace with 2.0-b11-20101213-windows-i586 (commit e735c312c874ae6abc401b4765b24a83f5238a99) when I create a GLCanvas on Swing's event dispatching thread (by calling SwingUtilities.invokeAndWait()). This is consistent with the fact that stacktrace's top is java.awt.EventQueue.invokeAndWait that does clearly not support being called from Swing's EDT. I upgraded Jogl to signed rc2 (commit bcf5d6ac871a29398b441df617923d3dd2cf35c1) and I got rid of that fatal error when creating my GLCanvas on EDT. I still notice a weird NullPointerException exception being thrown with the following stacktrace: Thread [AWT-EventQueue-0] (Suspended (exception NullPointerException)) JAWTUtil$1.run() line: 105 AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method] JAWTUtil.<clinit>() line: 100 NativeMethodAccessorImpl.invoke0(Method, Object, Object[]) line: not available [native method] NativeMethodAccessorImpl.invoke(Object, Object[]) line: not available DelegatingMethodAccessorImpl.invoke(Object, Object[]) line: not available Method.invoke(Object, Object...) line: not available ReflectionUtil.callMethod(Object, Method, Object[]) line: 266 NativeWindowFactory.initSingleton(boolean) line: 203 GLProfile.initProfilesForDefaultDevices(boolean) line: 1164 GLProfile.access$000(boolean) line: 71 GLProfile$1.run() line: 117 AccessController.doPrivileged(PrivilegedAction<T>) line: not available [native method] GLProfile.initSingleton(boolean) line: 115 GLProfile.validateInitialization() line: 1428 GLProfile.getProfileMap(AbstractGraphicsDevice) line: 1580 GLProfile.get(AbstractGraphicsDevice, String[]) line: 642 GLProfile.get(String[]) line: 657 GLProfile.getMaxFixedFunc() line: 547 GLCanvas.<clinit>() line: 498 This null pointer exception is not fatal but it may not be a wanted behaviour, though. BTW, I'm wondering whether creating a GLCanvas from EDT is a supported feature. Never read anything that disproves this assumption but... at the time of writing, we had no OS X browser / applet support, which is comming up w/ RC4. |