-
Bug
-
Resolution: Cannot Reproduce
-
P3
-
None
-
7
-
generic
-
os_x
http://java.net/jira/browse/MACOSX_PORT-96 submitted 2011/06/01 by Dmitry Bessonov
import java.awt.*;
public class SetBackground {
public static void main(String[] args) throws InterruptedException { Frame frame = new Frame(); GraphicsDevice screenDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0]; screenDevice.setFullScreenWindow(frame); frame.setBackground(Color.RED); frame.dispose(); }
}
The screen will blink red, it's OK. after that the output will contain:
2011-06-01 12:42:00.679 java<span class="error">[17349:3503]</span> Cocoa AWT: Not running on AppKit thread 0 when expected. (Java_sun_lwawt_macosx_CPlatformWindow_nativeGetScreenNSWindowIsOn_1AppKitThread - /HUDSON/workspace/jdk7-2-build-mac-amd64/ws/macosx-port/jdk/src/macosx/native/sun/awt/AWTWindow.m:726)
2011-06-01 12:42:00.682 java<span class="error">[17349:3503]</span> Please file a bug report at <span class="nobr"><a href="http://java.net/jira/browse/MACOSX_PORT">http://java.net/jira/browse/MACOSX_PORT<sup><img class="rendericon" src="/jira/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> with this message and a reproducible test case.
java.lang.Exception: Pointer to native NSWindow is invalid. Already disposed?
at sun.lwawt.macosx.CPlatformWindow.getNSWindowPtr(CPlatformWindow.java:515)
at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:507)
at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:473)
at sun.lwawt.LWWindowPeer.run(LWWindowPeer.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
at java.awt.EventQueue.run(EventQueue.java:666)
at java.awt.EventQueue.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
java.lang.Exception: Pointer to native NSWindow is invalid. Already disposed?
at sun.lwawt.macosx.CPlatformWindow.getNSWindowPtr(CPlatformWindow.java:515)
at sun.lwawt.macosx.CPlatformWindow.setVisibleHelper(CPlatformWindow.java:639)
at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:479)
at sun.lwawt.LWWindowPeer.run(LWWindowPeer.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
at java.awt.EventQueue.run(EventQueue.java:666)
at java.awt.EventQueue.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
import java.awt.*;
public class SetBackground {
public static void main(String[] args) throws InterruptedException { Frame frame = new Frame(); GraphicsDevice screenDevice = GraphicsEnvironment.getLocalGraphicsEnvironment().getScreenDevices()[0]; screenDevice.setFullScreenWindow(frame); frame.setBackground(Color.RED); frame.dispose(); }
}
The screen will blink red, it's OK. after that the output will contain:
2011-06-01 12:42:00.679 java<span class="error">[17349:3503]</span> Cocoa AWT: Not running on AppKit thread 0 when expected. (Java_sun_lwawt_macosx_CPlatformWindow_nativeGetScreenNSWindowIsOn_1AppKitThread - /HUDSON/workspace/jdk7-2-build-mac-amd64/ws/macosx-port/jdk/src/macosx/native/sun/awt/AWTWindow.m:726)
2011-06-01 12:42:00.682 java<span class="error">[17349:3503]</span> Please file a bug report at <span class="nobr"><a href="http://java.net/jira/browse/MACOSX_PORT">http://java.net/jira/browse/MACOSX_PORT<sup><img class="rendericon" src="/jira/images/icons/linkext7.gif" height="7" width="7" align="absmiddle" alt="" border="0"/></sup></a></span> with this message and a reproducible test case.
java.lang.Exception: Pointer to native NSWindow is invalid. Already disposed?
at sun.lwawt.macosx.CPlatformWindow.getNSWindowPtr(CPlatformWindow.java:515)
at sun.lwawt.macosx.CPlatformWindow.updateIconImages(CPlatformWindow.java:507)
at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:473)
at sun.lwawt.LWWindowPeer.run(LWWindowPeer.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
at java.awt.EventQueue.run(EventQueue.java:666)
at java.awt.EventQueue.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
java.lang.Exception: Pointer to native NSWindow is invalid. Already disposed?
at sun.lwawt.macosx.CPlatformWindow.getNSWindowPtr(CPlatformWindow.java:515)
at sun.lwawt.macosx.CPlatformWindow.setVisibleHelper(CPlatformWindow.java:639)
at sun.lwawt.macosx.CPlatformWindow.setVisible(CPlatformWindow.java:479)
at sun.lwawt.LWWindowPeer.run(LWWindowPeer.java:222)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:705)
at java.awt.EventQueue.access./Mac.bugs00(EventQueue.java:101)
at java.awt.EventQueue.run(EventQueue.java:666)
at java.awt.EventQueue.run(EventQueue.java:664)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:675)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:211)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:128)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:117)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:113)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:105)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:90)
- relates to
-
JDK-7124228 [macosx] Dual screen regression test issue: TranslucencyThrowsExceptionWhenFullScreen
- Closed