Hi, I am using javafx with TouchEvents (on a windows 8 tablet),
There seems to be a bug, in the
java code relating to too many touch points.
It makes my application unusable once it happens, as any further touches on the screen make the same exception show up in the output, it is shown below:
Exception in
thread "JavaFX Application Thread" java.lang.RuntimeException: Too many touch points reported
at javafx.scene.Scene$ScenePeerListener.touchEventNext(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleNextTouchEvent$346(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$$Lambda$174/32038969.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleNextTouchEvent(Unknown Source)
at com.sun.glass.ui.View.handleNextTouchEvent(Unknown Source)
at com.sun.glass.ui.View.notifyNextTouchEvent(Unknown Source)
at com.sun.glass.ui.TouchInputSupport.notifyNextTouchEvent(Unknown Source)
at com.sun.glass.ui.win.WinGestureSupport.notifyNextTouchEvent(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/29531133.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)Exception in thread "JavaFX Application Thread" java.lang.NullPointerException
at javafx.scene.Scene.processTouchEvent(Unknown Source)
at javafx.scene.Scene.access$5600(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.touchEventEnd(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleEndTouchEvent$347(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler$$Lambda$175/12964464.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleEndTouchEvent(Unknown Source)
at com.sun.glass.ui.View.handleEndTouchEvent(Unknown Source)
at com.sun.glass.ui.View.notifyEndTouchEvent(Unknown Source)
at com.sun.glass.ui.TouchInputSupport.notifyEndTouchEvent(Unknown Source)
at com.sun.glass.ui.win.WinGestureSupport.notifyEndTouchEvent(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.lambda$null$141(Unknown Source)
at com.sun.glass.ui.win.WinApplication$$Lambda$37/29531133.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
I coded my application to work when exactly 2 touch points where applied, but it doesn't stop the exception above occurring.
Is there anything I can do, as its a shame to remove this touch ability from the app, thanks.