JDK-7175707 : [macosx] PIT: 8 b43 Not running on AppKit thread issue again
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 7u6,8
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: os_x
  • CPU: x86
  • Submitted: 2012-06-09
  • Updated: 2014-10-09
  • Resolved: 2012-10-18
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
7u40Fixed 8 b63Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
A couple of the longish fullscreen functional tests do report

Cocoa AWT: Not running on AppKit thread 0 when expected. (
[2012-06-09T09:21:44.37]        0   libawt_lwawt.dylib                  0x0000000114bc0af9 Java_sun_lwawt_macosx_CPlatformWindow_nativeGetNSWindowDisplayID_1AppKitThread + 59

It may be probably related to a fix to
7160293 [macosx] FileDialog appears on secondary display.

[SQE] risk: Medium to verify the issue run the Tonga test 2D_MultiMonitor/FrameAutoDisplayModeTest (see JDK-8014539 ) [/SQE]

There is the test that shows the exception in the STDERR because of the current issue JDK-7175707: java/awt/Multiscreen/TranslucencyThrowsExceptionWhenFullScreen/TranslucencyThrowsExceptionWhenFullScreen.java 2012-10-22 13:02:50.404 java[565:860b] Cocoa AWT: Not running on AppKit thread 0 when expected. ( 0 liblwawt.dylib 0x0000000119e9e41a Java_sun_lwawt_macosx_CPlatformWindow_nativeGetNSWindowDisplayID_1AppKitThread + 59 1 ??? 0x00000001101a1f90 0x0 + 4565114768 ) After the fix the test does not show the exception in the STDERR.

The nativeGetNSWindowDisplayID_AppKitThread can be invoked both from the AppKitThread and not from the AppKitThread. The fix invokes the GetNSWindowDisplayID_AppKitThread method on the AppKitThread in case if we are no on the AppKitThread.