United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7175707 [macosx] PIT: 8 b43 Not running on AppKit thread issue again
JDK-7175707 : [macosx] PIT: 8 b43 Not running on AppKit thread issue again

Details
Type:
Bug
Submit Date:
2012-06-09
Status:
Resolved
Updated Date:
2013-08-08
Project Name:
JDK
Resolved Date:
2012-10-18
Component:
client-libs
OS:
os_x
Sub-Component:
java.awt
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
7u6,8
Fixed Versions:

Related Reports
Backport:
Backport:
Duplicate:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:

Sub Tasks

Description
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.

                                    

Comments
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. 
                                     
2012-10-18
URL:   http://hg.openjdk.java.net/jdk8/awt/jdk/rev/8bbc6a5f1e92
User:  alexsch
Date:  2012-10-18 14:22:59 +0000

                                     
2012-10-18
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.

                                     
2012-10-22
URL:   http://hg.openjdk.java.net/jdk8/jdk8/jdk/rev/8bbc6a5f1e92
User:  lana
Date:  2012-10-31 02:51:07 +0000

                                     
2012-10-31



Hardware and Software, Engineered to Work Together