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

Exception thrown when using Macbook Pro touchbar to acknowledge a dialog

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Duplicate
    • Affects Version/s: 8u131
    • Fix Version/s: None
    • Component/s: javafx
    • Subcomponent:
    • CPU:
      x86
    • OS:
      os_x

      Description

      FULL PRODUCT VERSION :
      java version "1.8.0_131"
      Java(TM) SE Runtime Environment (build 1.8.0_131-b11)
      Java HotSpot(TM) 64-Bit Server VM (build 25.131-b11, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      macOS Sierra 10.12.4 (16E195)

      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Macbook Pro 15-inch, 2016

      A DESCRIPTION OF THE PROBLEM :
      I'm developing a JavaFX application. When my application presents a file selection dialog the macbook pro's touch bar presents the Cancel and Open buttons as expected. Touching open results in the following exception

      2017-05-16 05:13:36.756 java[74340:51123711] *** Assertion failure in -[NSTouch normalizedPosition], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.82.104/AppKit.subproj/NSTouch.m:87
      2017-05-16 05:13:36.757 java[74340:51123711] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot get normalizedPosition for this type of NSTouch'

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      0. Be using a macbook pro with touchbar
      1. Make a javafx app that prompts the user to find a file using the JavaFX file browser
      2. Highlight a file in the browser
      3. Touch "Okay" on the touchbar

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Dialog should close and return the path to the selected file.
      ACTUAL -
      Program crashes, console reports



      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      *** Assertion failure in -[NSTouch normalizedPosition], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.82.104/AppKit.subproj/NSTouch.m:87

      and

      *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Cannot get normalizedPosition for this type of NSTouch'
      ```

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pmangal Priyanka Mangal (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: