Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8206133

[Accessibility, macOS] Native crash from glass on JavaFX application shutdown

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: openjfx11
    • Fix Version/s: tbd
    • Component/s: javafx
    • Labels:
      None

      Description

      With Voiceover enabled, JavaFX application crashes when Platform.exit() method is called on macOS.

      Java has been detached already, but someone is still trying to use it at -[GlassAccessible accessibilityAttributeValue:]:/Users/AGHAISAS/prem/jfx-dev/rt/modules/javafx.graphics/src/main/native-glass/mac/GlassAccessible.m:74
      0 libglass.dylib 0x000000012d64f4cb -[GlassAccessible accessibilityAttributeValue:] + 123
      1 AppKit 0x00007fff2a9ee523 NSAccessibilityGetObjectForAttributeUsingLegacyAPI + 371
      2 AppKit 0x00007fff2af9fe37 NSAccessibilityPerformEntryPointObject.llvm.734619A0 + 16
      3 AppKit 0x00007fff2afa0003 _NSAccessibilityEntryPointValueForAttribute.llvm.734619A0 + 182
      4 AppKit 0x00007fff2ad47811 -[NSObject(NSAccessibilityInternal) _accessibilityValueForAttribute:clientError:] + 351
      5 AppKit 0x00007fff2ad4e474 CopyAppKitUIElementAttributeValueNoCatch + 98
      6 AppKit 0x00007fff2ad4c0ae CopyAttributeValue + 172
      7 HIServices 0x00007fff2bc4c231 _AXXMIGCopyAttributeValue + 282
      8 HIServices 0x00007fff2bc561ac _XCopyAttributeValue + 455
      9 HIServices 0x00007fff2bc2e939 mshMIGPerform + 212
      10 CoreFoundation 0x00007fff2d356219 CFRUNLOOP_IS_CALLING_OUT_TO_A_SOURCE1_PERFORM_FUNCTION + 41
      11 CoreFoundation 0x00007fff2d356165 __CFRunLoopDoSource1 + 533
      12 CoreFoundation 0x00007fff2d34dd50 __CFRunLoopRun + 2848
      13 CoreFoundation 0x00007fff2d34cfa3 CFRunLoopRunSpecific + 483
      14 java 0x000000010459fbc3 CreateExecutionEnvironment + 401
      15 java 0x000000010459bebc JLI_Launch + 1568
      16 java 0x000000010459ad4c main + 384
      17 java 0x000000010459abc4 start + 52

      Use the test attached with JDK-8203345, to reproduce this issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                pkbalakr Prem Balakrishnan (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: