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

Win: JavaFX Drag and Drop causes crash outside the Java Virtual Machine


    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Won't Fix
    • Affects Version/s: 7u15
    • Fix Version/s: 7-pool
    • Component/s: javafx
    • Environment:

      Microsoft Windows [Version 6.1.7601]
      java version "1.7.0_17"
      Java(TM) SE Runtime Environment (build 1.7.0_17-b02)
      Java HotSpot(TM) Client VM (build 23.7-b01, mixed mode, sharing)


      If I drag and Drop a file from a JFX scene to the windowsexplorer the DnD-operation is executed correctly but short after the JVM crashes and causes following error:

      at com.sun.javafx.tk.quantum.QuantumToolkit$14.actionPerformed(QuantumToolkit.java:1154)
      at com.sun.glass.ui.Clipboard.actionPerformed(Clipboard.java:139)
      at com.sun.glass.ui.win.WinDnDClipboard.push(Native Method)
      at com.sun.glass.ui.win.WinSystemClipboard.pushToSystem(WinSystemClipboard.java:213)
      at com.sun.glass.ui.SystemClipboard.flush(SystemClipboard.java:28)
      at com.sun.glass.ui.ClipboardAssistance.flush(ClipboardAssistance.java:34)
      at com.sun.javafx.tk.quantum.QuantumClipboard.flush(QuantumClipboard.java:197)
      at com.sun.javafx.tk.quantum.QuantumToolkit.startDrag(QuantumToolkit.java:1195)
      at javafx.scene.Scene$DnDGesture.dragDetectedProcessed(Scene.java:2652)
      at javafx.scene.Scene$DnDGesture.process(Scene.java:2713)
      at javafx.scene.Scene$DnDGesture.access$8700(Scene.java:2607)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3344)
      at javafx.scene.Scene$MouseHandler.process(Scene.java:3168)
      at javafx.scene.Scene$MouseHandler.access$1900(Scene.java:3123)
      at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1563)
      at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2265)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:250)
      at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:173)
      at java.security.AccessController.doPrivileged(Native Method)#
      # A fatal error has been detected by the Java Runtime Environment:
      # EXCEPTION_UNCAUGHT_CXX_EXCEPTION (0xe06d7363) at pc=0x74efc41f, pid=6592, tid=6596
      # JRE version: 7.0_17-b02
      # Java VM: Java HotSpot(TM) Client VM (23.7-b01 mixed mode, sharing windows-x86 )
      # Problematic frame:
      # C [KERNELBASE.dll+0xc41f]

      at com.sun.glass.ui.View.handleMouseEvent(View.java:528)
      at com.sun.glass.ui.View.notifyMouse(View.java:922)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:29)
      at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:73)
      at java.lang.Thread.run(Thread.java:722)
      Exception in thread "JavaFX Application Thread" Error: 80de0001 in checkJavaException(env) RaiseException+0x58
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      # An error report file with more information is saved as:
      # C:\Users\Apfelmaennchen\workspace\asd\hs_err_pid6592.log
      # If you would like to submit a bug report, please visit:
      # http://bugreport.sun.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.

      Here is some sample code:

      public class Main extends Application {

          public void start(Stage primaryStage) {
              primaryStage.setTitle("Test App");
              Group rootGroup = new Group();
              Scene scene = new Scene(rootGroup);
              Text text = new Text(100,100,"Drag For new file");

          void setupGestureSource(final Text source) {
              source.setOnDragDetected(new EventHandler<MouseEvent>() {
                  public void handle(MouseEvent event) {
                      List<File> vec = new ArrayList<File>();
                      Dragboard db = source.startDragAndDrop(TransferMode.ANY);
                      File tmpFile = new File("test.txt");
                      try {
                      } catch (IOException e) {
                          // TODO Auto-generated catch block
                      ClipboardContent content = new ClipboardContent();

          public static void main(String[] args) {


          Issue Links



              • Assignee:
                duke J. Duke (Inactive)
              • Votes:
                1 Vote for this issue
                8 Start watching this issue


                • Created: