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

Lens: LensTouchInputSupport calls GestureSupport methods from the wrong thread

XMLWordPrintable

      To reproduce the issue -Dglass.disableThreadChecks=false command-line option should be specified. Than the following exception is thrown on startup:

      SEVERE: 1075 udevInput.c:375 lens_input_initialize: Could not find com/sun/glass/ui/lens/LensTouchInputSupport
      Exception in thread "main" java.lang.ExceptionInInitializerError
          at com.sun.glass.ui.lens.LensApplication._initialize(Native Method)
          at com.sun.glass.ui.lens.LensApplication.runLoop(LensApplication.java:925)
          at com.sun.glass.ui.Application.run(Application.java:152)
          at com.sun.javafx.tk.quantum.QuantumToolkit.startup(QuantumToolkit.java:278)
          at com.sun.javafx.application.PlatformImpl.startup(PlatformImpl.java:212)
          at com.sun.javafx.application.LauncherImpl.startToolkit(LauncherImpl.java:637)
          at com.sun.javafx.application.LauncherImpl.launchApplicationWithArgs(LauncherImpl.java:345)
          at com.sun.javafx.application.LauncherImpl.launchApplication(LauncherImpl.java:304)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          at java.lang.reflect.Method.invoke(Unknown Source)
          at sun.launcher.LauncherHelper$FXHelper.main(Unknown Source)
      Caused by: java.lang.IllegalStateException: This operation is permitted on the event thread only; currentThread = main
          at com.sun.glass.ui.Application.checkEventThread(Application.java:423)
          at com.sun.glass.ui.GestureSupport.createTouchCountListener(GestureSupport.java:374)
          at com.sun.glass.ui.lens.LensTouchInputSupport.<clinit>(LensTouchInputSupport.java:67)
          ... 13 more

            kselle Lisa Selle (Inactive)
            pchelko Petr Pchelko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: