JDK-8014539 : Fullscreen error thrown 'Appkit Thread 0 expected'
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u6
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • Submitted: 2013-04-04
  • Updated: 2014-11-17
  • Resolved: 2013-05-14
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version  " 1.7.0_15 " 
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
I'm actually using OSX 10.8, which wasn't listed as an option so perhaps it isn't supported.

A DESCRIPTION OF THE PROBLEM :
An error message appears in console output when running application.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Simply run the provided code and the error message should appear.

ACTUAL -
Application remains running in fullscreen, but error message appears.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
2013-04-04 11:08:27.783 java[2883:1703] Cocoa AWT: Not running on AppKit thread 0 when expected. (
0   liblwawt.dylib                      0x00000001624974cc Java_sun_lwawt_macosx_CPlatformWindow_nativeGetNSWindowDisplayID_1AppKitThread + 59
1   ???                                 0x00000001044b7f90 0x0 + 4367024016
)
2013-04-04 11:08:27.784 java[2883:1703] Please file a bug report at http://java.net/jira/browse/MACOSX_PORT with this message and a reproducible test case.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import java.awt.BorderLayout;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;

import javax.swing.JFrame;
import javax.swing.JPanel;

public class test {
public static void main(String[] args){
GraphicsDevice g = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();

if (!g.isFullScreenSupported ())
        {
            throw new UnsupportedOperationException ( " Fullscreen mode is unsupported. " );
        }
        JFrame window = new JFrame();
        window.setLayout (new BorderLayout());
        window.add (new JPanel (), BorderLayout.CENTER);
        g.setFullScreenWindow(window);
}
}
---------- END SOURCE ----------
Comments
I'm sure it is not reproduced on jdk8 and 7u40
14-05-2013

I can confirm the issue since I have a test failing by the same reason.
14-05-2013