Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-7124421

[macosx] Window.setBackground(noAlphaColor) for fullscreen windows leads to errors in the output

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • None
    • 7
    • client-libs
    • 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=&quot;error&quot;>&#91;17349:3503&#93;</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=&quot;error&quot;>&#91;17349:3503&#93;</span> Please file a bug report at <span class=&quot;nobr&quot;><a href=&quot;http://java.net/jira/browse/MACOSX_PORT&quot;&gt;http://java.net/jira/browse/MACOSX_PORT&lt;sup&gt;&lt;img class=&quot;rendericon&quot; src=&quot;/jira/images/icons/linkext7.gif&quot; height=&quot;7&quot; width=&quot;7&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/></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)

            kizune Alexander Zuev
            vasya Vassili Igouchkine (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: