RFR: 8336031: Create implementation of NSAccessibilityStaticText protocol [v2]

Ambarish Rapte arapte at openjdk.org
Wed Jul 24 09:59:38 UTC 2024


On Wed, 17 Jul 2024 05:34:31 GMT, Alexander Zuev <kizune at openjdk.org> wrote:

>> Initial implementation of the protocol.
>
> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Add comment about AccessibleRole enuM

I observed a crash in Ensemble.
1. Launch VoiceOver
2. Launch Ensemble
3. Click on the Stacked Area Chart sample, (thumbnail shown in the beginning of Ensemble app home page)
-> Ensemble crashes with following error


# A fatal error has been detected by the Java Runtime Environment:
#
#  SIGSEGV (0xb) at pc=0x00007ff80138665d, pid=69749, tid=259
#
# JRE version: OpenJDK Runtime Environment (21.0.1+12) (build 21.0.1+12-29)
# Java VM: OpenJDK 64-Bit Server VM (21.0.1+12-29, mixed mode, sharing, tiered, compressed oops, compressed class ptrs, g1 gc, bsd-amd64)
# Problematic frame:
# C  [libobjc.A.dylib+0x665d]  objc_msgSend+0x1d

Callstack from hs_err*.log


Current thread (0x00007fbad9a12a00):  JavaThread "JavaFX Application Thread"        [_thread_in_native, id=259, stack(0x00007ff7bc8d3000,0x00007ff7bd0d3000) (8192K)]

Stack: [0x00007ff7bc8d3000,0x00007ff7bd0d3000],  sp=0x00007ff7bd0cbe88,  free space=8163k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [libobjc.A.dylib+0x665d]  objc_msgSend+0x1d
C  [libglass.dylib+0x8b87]  Java_com_sun_glass_ui_mac_MacAccessible_isEqualToString+0x17
J 3994  com.sun.glass.ui.mac.MacAccessible.isEqualToString(JJ)Z javafx.graphics at 24-internal (0 bytes) @ 0x00000001158d8e6f [0x00000001158d8da0+0x00000000000000cf]
J 4043 c1 com.sun.glass.ui.mac.MacAccessible$MacAttribute.getAttribute(J)Lcom/sun/glass/ui/mac/MacAccessible$MacAttribute; javafx.graphics at 24-internal (63 bytes) @ 0x000000010e3bb7f4 [0x000000010e3bb500+0x00000000000002f4]
j  com.sun.glass.ui.mac.MacAccessible.accessibilityAttributeValueForParameter(JJ)Lcom/sun/glass/ui/mac/MacVariant;+4 javafx.graphics at 24-internal
v  ~StubRoutines::call_stub 0x0000000115199cc6
V  [libjvm.dylib+0x5abd24]  JavaCalls::call_helper(JavaValue*, methodHandle const&, JavaCallArguments*, JavaThread*)+0x2b4
V  [libjvm.dylib+0x615ecf]  jni_invoke_nonstatic(JNIEnv_*, JavaValue*, _jobject*, JNICallType, _jmethodID*, JNI_ArgumentPusher*, JavaThread*)+0x34f
V  [libjvm.dylib+0x618223]  jni_CallLongMethod+0x193
C  [libglass.dylib+0x2fa34]  -[JFXStaticTextAccessibility accessibilityAttributedStringForRange:]+0x114
C  [AppKit+0x7a3d01]  -[NSAccessibilityAttributeAccessorInfo getParameterizedAttributeValue:forObject:withParameter:]+0x41
C  [AppKit+0x7a5b4c]  ___NSAccessibilityEntryPointValueForAttributeWithParameter_block_invoke.888+0x1bf
C  [AppKit+0x7a08bb]  NSAccessibilityPerformEntryPointObject+0x10
C  [AppKit+0x7a24cb]  NSAccessibilityEntryPointValueForAttributeWithParameter+0xac
C  [AppKit+0x4d7a9b]  CopyParameterizedAttributeValue+0x1ed
C  [HIServices+0x27e58]  _AXXMIGCopyParameterizedAttributeValue+0x1da
C  [HIServices+0x4bcfd]  _XCopyParameterizedAttributeValue+0x250
C  [HIServices+0x8363]  mshMIGPerform+0xbb
C  [CoreFoundation+0x7c5b7]  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION__+0x29
C  [CoreFoundation+0x7c4ee]  __CFRunLoopDoSource1+0x216
C  [CoreFoundation+0x7b166]  __CFRunLoopRun+0xa8c
C  [CoreFoundation+0x7a112]  CFRunLoopRunSpecific+0x22d
C  [HIToolbox+0x2ea09]  RunCurrentEventLoopInMode+0x124
C  [HIToolbox+0x2e816]  ReceiveNextEventCommon+0x299
C  [HIToolbox+0x2e561]  _BlockUntilNextEventMatchingListInModeWithFilter+0x42
C  [AppKit+0x3ec61]  _DPSNextEvent+0x370
C  [AppKit+0x952dc0]  -[NSApplication(NSEventRouting) _nextEventMatchingEventMask:untilDate:inMode:dequeue:]+0x4f9
C  [AppKit+0x30075]  -[NSApplication run]+0x25b
C  [libglass.dylib+0xae72]  -[GlassApplication runLoop:]+0x7f2
C  [Foundation+0x7d365]  __NSThreadPerformPerform+0xb2
C  [CoreFoundation+0x7c087]  __CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE0_PERFORM_FUNCTION__+0x11
C  [CoreFoundation+0x7c029]  __CFRunLoopDoSource0+0x9d
C  [CoreFoundation+0x7bdf4]  __CFRunLoopDoSources0+0xd7
C  [CoreFoundation+0x7aa71]  __CFRunLoopRun+0x397
C  [CoreFoundation+0x7a112]  CFRunLoopRunSpecific+0x22d
C  [libjli.dylib+0x6ee2]  CreateExecutionEnvironment+0x182
C  [libjli.dylib+0x28bd]  JLI_Launch+0x54d
C  [java+0x3c0f]  main+0x18f
C  [dyld+0x6366]  start+0x796
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
J 3994  com.sun.glass.ui.mac.MacAccessible.isEqualToString(JJ)Z javafx.graphics at 24-internal (0 bytes) @ 0x00000001158d8dfc [0x00000001158d8da0+0x000000000000005c]
J 4043 c1 com.sun.glass.ui.mac.MacAccessible$MacAttribute.getAttribute(J)Lcom/sun/glass/ui/mac/MacAccessible$MacAttribute; javafx.graphics at 24-internal (63 bytes) @ 0x000000010e3bb7f4 [0x000000010e3bb500+0x00000000000002f4]
j  com.sun.glass.ui.mac.MacAccessible.accessibilityAttributeValueForParameter(JJ)Lcom/sun/glass/ui/mac/MacVariant;+4 javafx.graphics at 24-internal
v  ~StubRoutines::call_stub 0x0000000115199cc6

-------------

PR Comment: https://git.openjdk.org/jfx/pull/1507#issuecomment-2247446112


More information about the openjfx-dev mailing list