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

java.lang.RuntimeException: Too many touch points reported

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      x86_64
    • OS:
      windows_10
    • Verification:
      Not verified

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        This happens in JavaFX 11, 12, 13, 14, and 15-ea

        A DESCRIPTION OF THE PROBLEM :
        This exception can be thrown from Scene.java with Windows Ink enabled

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        I can reproduce this with a Wacom Intuos PT S pen tablet with Windows Ink enabled in the Wacom settings. I would imagine that other Wacom tablets can reproduce it, and given that it required Windows Ink I wouldn't be surprised if other input methods that use it would trigger this as well.

        1. Run the attached example program
        2. Rapidly interact with the menu with both clicks and drags
        3. The exception will be thrown, I normally get it to happen within 20 seconds

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        No thrown exception
        ACTUAL -
        It throws a runtime exception: "Too many touch points reported"

        ---------- BEGIN SOURCE ----------
        import javafx.application.Application;
        import javafx.scene.Scene;
        import javafx.scene.control.Menu;
        import javafx.scene.control.MenuBar;
        import javafx.scene.control.MenuItem;
        import javafx.scene.layout.VBox;
        import javafx.stage.Stage;

        public class Test
        {
            public static void main(String[] args)
            {
                Application.launch(MainWindow.class);
            }

            public static class MainWindow extends Application
            {
                public void start(final Stage stage)
                {
                    final var fileMenu = new Menu("File");
                    fileMenu.getItems().addAll(
                        new MenuItem("Open"),
                        new MenuItem("Save"));

                    final var editMenu = new Menu("Edit");
                    editMenu.getItems().addAll(
                        new MenuItem("Cut"),
                        new MenuItem("Copy"),
                        new MenuItem("Paste"));

                    final var menuBar = new MenuBar(fileMenu, editMenu);
                    final var root = new VBox(menuBar);

                    final var scene = new Scene(root, 600, 400);
                    stage.setScene(scene);

                    stage.show();
                }
            }
        }

        ---------- END SOURCE ----------

        FREQUENCY : always


          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jpereda Jose Pereda
                Reporter:
                webbuggrp Webbug Group
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: