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

Drag and Drop in JFXPanel locks JavaFX Application Thread

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Incomplete
    • Affects Version/s: fx2.0
    • Fix Version/s: 8
    • Component/s: javafx
    • Environment:

      Windows 7 64 bit with 32-bit Java 7u1 JRE

      Description

      When I put text in the Dragboard in response to a Drag and Drop in my JFXPanel.. like this:

      node.setOnDragDetected(new EventHandler<MouseEvent>() {
      @Override
      public void handle(MouseEvent me) {
      logger.fine( "Drag Detected!");
      Dragboard db = startDragAndDrop( TransferMode.COPY_OR_MOVE );
      ClipboardContent cc = new ClipboardContent();
      cc.putString("Hello");
      db.setContent(cc);
      me.consume();
      }
      });

      The JavaFX Application thread is locked (forever) at WinDnDClipboard.push

      Call stack looks like:
      "JavaFX Application Thread" prio=6 tid=0x1c89ac00 nid=0x18f0 runnable [0x1b69f000]
         java.lang.Thread.State: RUNNABLE
      at com.sun.glass.ui.win.WinDnDClipboard.push(Native Method)
      at com.sun.glass.ui.win.WinSystemClipboard.pushToSystem(Unknown Source)
      at com.sun.glass.ui.SystemClipboard.flush(Unknown Source)
      at com.sun.glass.ui.ClipboardAssistance.flush(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumClipboard.flush(Unknown Source)
      at com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(Unknown Source)
      at javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Unknown Source)
      at javafx.scene.Scene$DnDGesture.process(Unknown Source)
      at javafx.scene.Scene$DnDGesture.access$6000(Unknown Source)
      at javafx.scene.Scene$MouseHandler.process(Unknown Source)
      at javafx.scene.Scene$MouseHandler.process(Unknown Source)
      at javafx.scene.Scene$MouseHandler.access$1200(Unknown Source)
      at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
      at com.sun.javafx.tk.quantum.EmbeddedScene$2.run(Unknown Source)
      at com.sun.javafx.application.PlatformImpl$3.run(Unknown Source)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
      at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
      at java.lang.Thread.run(Thread.java:722)

         Locked ownable synchronizers:
      - None


        Attachments

          Activity

            People

            • Assignee:
              art Artem Ananiev
              Reporter:
              swpalmer Scott Palmer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported: