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

IllegalArgumentException when we initiate drag on Image

    Details

      Description

      In Mac, when we initiate drag an image from webview to outside, there is a IllegalArgumentException.

      OSX Image Drag and Drop Exception:

      Exception in thread "JavaFX Application Thread" java.lang.IllegalArgumentException: Too small byte buffer size 0x0 [0] > 0
      at com.sun.glass.ui.Pixels.<init>(Pixels.java:92)
      at com.sun.glass.ui.mac.MacPixels.<init>(MacPixels.java:53)
      at com.sun.glass.ui.mac.MacApplication.createPixels(MacApplication.java:223)
      at com.sun.glass.ui.Clipboard.getPixelsForRawImage(Clipboard.java:233)
      at com.sun.glass.ui.mac.MacSystemClipboard.popFromSystem(MacSystemClipboard.java:241)
      at com.sun.glass.ui.SystemClipboard.getData(SystemClipboard.java:76)
      at com.sun.glass.ui.ClipboardAssistance.getData(ClipboardAssistance.java:95)
      at com.sun.javafx.tk.quantum.QuantumClipboard.readImage(QuantumClipboard.java:367)
      at com.sun.javafx.tk.quantum.QuantumClipboard.getContent(QuantumClipboard.java:291)
      at javafx.scene.input.Clipboard.getContentImpl(Clipboard.java:283)
      at javafx.scene.input.Dragboard.getContentImpl(Dragboard.java:57)
      at javafx.scene.input.Clipboard.getContent(Clipboard.java:276)
      at javafx.scene.web.WebView.lambda$registerEventHandlers$6(WebView.java:1199)
      at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:86)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
      at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
      at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
      at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
      at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
      at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
      at javafx.event.Event.fireEvent(Event.java:198)
      at javafx.scene.Scene$DnDGesture.handleExitEnter(Scene.java:3321)
      at javafx.scene.Scene$DnDGesture.processTargetEnterOver(Scene.java:3209)
      at javafx.scene.Scene$DnDGesture.access$6300(Scene.java:3020)
      at javafx.scene.Scene$DropTargetListener.dragOver(Scene.java:2941)
      at com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.lambda$handleDragOver$3(GlassSceneDnDEventHandler.java:124)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.tk.quantum.GlassSceneDnDEventHandler.handleDragOver(GlassSceneDnDEventHandler.java:120)

        Attachments

          Activity

            People

            • Assignee:
              pbansal Pankaj Bansal
              Reporter:
              mbilla Murali Billa
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated: