Details
-
Bug
-
Resolution: Fixed
-
P4
-
17.0.2, 17.0.3
-
b01
-
os_x
Description
Following exception is thrown when Screen magnifier is enabled
Step to reproduce
--------------------------
1) Enable Screen magnifier on theMac
System Preference -> Accessibility -> Zoom -> Select ( Enable Hover Text)
2) Start SwingSet2 with the following option
-jar -Djavax.accessibility.screen_magnifier_present=true SwingSet2.jar
3) Press "CMD" button on SwingSet2 . If you see the following exception then the bug is reproduced.
This is reproduced only in JDK17 but not reproduced in JDK18 & JDK19
2022-03-15 13:14:57.419 java[22109:3940166] Bad JNI lookup accessibilityHitTest
2022-03-15 13:14:57.420 java[22109:3940166] (
0 libawt_lwawt.dylib 0x0000000105efa3d9 -[JavaComponentAccessibility accessibilityHitTest:withEnv:] + 153
1 libawt_lwawt.dylib 0x0000000105ea6573 -[AWTView accessibilityHitTest:] + 179
2 AppKit 0x00007fff23a20b51 -[NSWindow(NSWindowAccessibility) accessibilityHitTest:] + 309
3 AppKit 0x00007fff235c490c -[NSApplication(NSApplicationAccessibility) accessibilityHitTest:] + 342
4 AppKit 0x00007fff235957f3 CopyElementAtPosition + 150
5 HIServices 0x00007fff25c0aa2b _AXXMIGCopyElementAtPosition + 336
6 HIServices 0x00007fff25c2b708 _XCopyElementAtPosition + 369
7 HIServices 0x00007fff25be993c mshMIGPerform + 182
8 CoreFoundation 0x00007fff20955b04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
9 CoreFoundation 0x00007fff209559e5 __CFRunLoopDoSource1 + 619
10 CoreFoundation 0x00007fff2095406f __CFRunLoopRun + 2400
11 CoreFoundation 0x00007fff2095304c CFRunLoopRunSpecific + 563
12 HIToolbox 0x00007fff28b9ba83 RunCurrentEventLoopInMode + 292
13 HIToolbox 0x00007fff28b9b6b6 ReceiveNextEventCommon + 284
14 HIToolbox 0x00007fff28b9b583 _BlockUntilNextEventMatchingListInModeWithFilter + 70
15 AppKit 0x00007fff2315bd72 _DPSNextEvent + 864
16 AppKit 0x00007fff2315a545 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
17 libosxapp.dylib 0x0000000105fb659a -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
18 AppKit 0x00007fff2314c869 -[NSApplication run] + 586
19 libosxapp.dylib 0x0000000105fb6369 +[NSApplicationAWT runAWTLoopWithApp:] + 169
20 libawt_lwawt.dylib 0x0000000105f02830 +[AWTStarter starter:headless:] + 496
21 libosxapp.dylib 0x0000000105fb803f +[ThreadUtilities invokeBlockCopy:] + 15
22 Foundation 0x00007fff21704b91 __NSThreadPerformPerform + 204
23 CoreFoundation 0x00007fff2095537c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x00007fff209552e4 __CFRunLoopDoSource0 + 180
25 CoreFoundation 0x00007fff20955064 __CFRunLoopDoSources0 + 242
26 CoreFoundation 0x00007fff20953a8c __CFRunLoopRun + 893
27 CoreFoundation 0x00007fff2095304c CFRunLoopRunSpecific + 563
28 libjli.dylib 0x00000001059ce0b2 CreateExecutionEnvironment + 386
29 libjli.dylib 0x00000001059c9c15 JLI_Launch + 1413
30 java 0x00000001059b9c09 main + 393
31 libdyld.dylib 0x00007fff20878f3d start + 1
)
Exception in thread "AppKit Thread" java.lang.NoSuchMethodError: accessibilityHitTest
Step to reproduce
--------------------------
1) Enable Screen magnifier on theMac
System Preference -> Accessibility -> Zoom -> Select ( Enable Hover Text)
2) Start SwingSet2 with the following option
-jar -Djavax.accessibility.screen_magnifier_present=true SwingSet2.jar
3) Press "CMD" button on SwingSet2 . If you see the following exception then the bug is reproduced.
This is reproduced only in JDK17 but not reproduced in JDK18 & JDK19
2022-03-15 13:14:57.419 java[22109:3940166] Bad JNI lookup accessibilityHitTest
2022-03-15 13:14:57.420 java[22109:3940166] (
0 libawt_lwawt.dylib 0x0000000105efa3d9 -[JavaComponentAccessibility accessibilityHitTest:withEnv:] + 153
1 libawt_lwawt.dylib 0x0000000105ea6573 -[AWTView accessibilityHitTest:] + 179
2 AppKit 0x00007fff23a20b51 -[NSWindow(NSWindowAccessibility) accessibilityHitTest:] + 309
3 AppKit 0x00007fff235c490c -[NSApplication(NSApplicationAccessibility) accessibilityHitTest:] + 342
4 AppKit 0x00007fff235957f3 CopyElementAtPosition + 150
5 HIServices 0x00007fff25c0aa2b _AXXMIGCopyElementAtPosition + 336
6 HIServices 0x00007fff25c2b708 _XCopyElementAtPosition + 369
7 HIServices 0x00007fff25be993c mshMIGPerform + 182
8 CoreFoundation 0x00007fff20955b04 __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__ + 41
9 CoreFoundation 0x00007fff209559e5 __CFRunLoopDoSource1 + 619
10 CoreFoundation 0x00007fff2095406f __CFRunLoopRun + 2400
11 CoreFoundation 0x00007fff2095304c CFRunLoopRunSpecific + 563
12 HIToolbox 0x00007fff28b9ba83 RunCurrentEventLoopInMode + 292
13 HIToolbox 0x00007fff28b9b6b6 ReceiveNextEventCommon + 284
14 HIToolbox 0x00007fff28b9b583 _BlockUntilNextEventMatchingListInModeWithFilter + 70
15 AppKit 0x00007fff2315bd72 _DPSNextEvent + 864
16 AppKit 0x00007fff2315a545 -[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] + 1364
17 libosxapp.dylib 0x0000000105fb659a -[NSApplicationAWT nextEventMatchingMask:untilDate:inMode:dequeue:] + 122
18 AppKit 0x00007fff2314c869 -[NSApplication run] + 586
19 libosxapp.dylib 0x0000000105fb6369 +[NSApplicationAWT runAWTLoopWithApp:] + 169
20 libawt_lwawt.dylib 0x0000000105f02830 +[AWTStarter starter:headless:] + 496
21 libosxapp.dylib 0x0000000105fb803f +[ThreadUtilities invokeBlockCopy:] + 15
22 Foundation 0x00007fff21704b91 __NSThreadPerformPerform + 204
23 CoreFoundation 0x00007fff2095537c __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__ + 17
24 CoreFoundation 0x00007fff209552e4 __CFRunLoopDoSource0 + 180
25 CoreFoundation 0x00007fff20955064 __CFRunLoopDoSources0 + 242
26 CoreFoundation 0x00007fff20953a8c __CFRunLoopRun + 893
27 CoreFoundation 0x00007fff2095304c CFRunLoopRunSpecific + 563
28 libjli.dylib 0x00000001059ce0b2 CreateExecutionEnvironment + 386
29 libjli.dylib 0x00000001059c9c15 JLI_Launch + 1413
30 java 0x00000001059b9c09 main + 393
31 libdyld.dylib 0x00007fff20878f3d start + 1
)
Exception in thread "AppKit Thread" java.lang.NoSuchMethodError: accessibilityHitTest
Attachments
Issue Links
- relates to
-
JDK-8277195 missing CAccessibility definition in [CommonComponentAccessibility accessibilityHitTest]
- Closed
-
JDK-8277707 missing CAccessibility definition in [CommonComponentAccessibility accessibilityHitTest]
- Resolved