java.lang.IllegalArgumentException: The selection "Rectangle2D [minX = 73.0, minY=22.0, maxX=73.0, maxY=22.0, width=0.0, height=0.0]" is invalid. Check the comment on 'SnapshotView.selectionProperty()' for all criteria a selection must fulfill.

Stack Overflow | chris13524 | 4 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    IllegalArgumentException when making a selection in a SnapshotView with a fixed ratio

    Stack Overflow | 4 months ago | chris13524
    java.lang.IllegalArgumentException: The selection "Rectangle2D [minX = 73.0, minY=22.0, maxX=73.0, maxY=22.0, width=0.0, height=0.0]" is invalid. Check the comment on 'SnapshotView.selectionProperty()' for all criteria a selection must fulfill.

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      The selection "Rectangle2D [minX = 73.0, minY=22.0, maxX=73.0, maxY=22.0, width=0.0, height=0.0]" is invalid. Check the comment on 'SnapshotView.selectionProperty()' for all criteria a selection must fulfill.

      at org.controlsfx.control.SnapshotView$1.set()
    2. org.controlsfx.control
      SnapshotView.setSelection
      1. org.controlsfx.control.SnapshotView$1.set(SnapshotView.java:268)
      2. org.controlsfx.control.SnapshotView$1.set(SnapshotView.java:264)
      3. org.controlsfx.control.SnapshotView.setSelection(SnapshotView.java:935)
      3 frames
    3. impl.org.controlsfx
      SnapshotViewSkin.handleMouseEvent
      1. impl.org.controlsfx.behavior.SnapshotViewBehavior$SelectionChangeByStrategy.beginSelectionChange(SnapshotViewBehavior.java:731)
      2. impl.org.controlsfx.behavior.SnapshotViewBehavior.handleMousePressedEvent(SnapshotViewBehavior.java:266)
      3. impl.org.controlsfx.behavior.SnapshotViewBehavior.handleMouseEvent(SnapshotViewBehavior.java:142)
      4. impl.org.controlsfx.skin.SnapshotViewSkin.handleMouseEvent(SnapshotViewSkin.java:315)
      4 frames
    4. com.sun.javafx
      EventUtil.fireEvent
      1. com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
      2. com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
      3. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      4. com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      5. com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      6. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      7. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      8. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      9. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      10. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      11. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      12. com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      13. com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      14. com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      15. com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      15 frames
    5. javafx.event
      Event.fireEvent
      1. javafx.event.Event.fireEvent(Event.java:198)
      1 frame
    6. javafx.scene
      Scene$ScenePeerListener.mouseEvent
      1. javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
      2. javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
      3. javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
      4. javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
      4 frames
    7. com.sun.javafx
      GlassViewEventHandler$MouseEventNotification.run
      1. com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:380)
      2. com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:294)
      2 frames
    8. Java RT
      AccessController.doPrivileged
      1. java.security.AccessController.doPrivileged(Native Method)
      1 frame
    9. com.sun.javafx
      GlassViewEventHandler.handleMouseEvent
      1. com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$2(GlassViewEventHandler.java:416)
      2. com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
      3. com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:415)
      3 frames
    10. com.sun.glass
      GtkApplication.lambda$null$5
      1. com.sun.glass.ui.View.handleMouseEvent(View.java:555)
      2. com.sun.glass.ui.View.notifyMouse(View.java:937)
      3. com.sun.glass.ui.gtk.GtkApplication._runLoop(Native Method)
      4. com.sun.glass.ui.gtk.GtkApplication.lambda$null$5(GtkApplication.java:139)
      4 frames
    11. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:745)
      1 frame