-
Bug
-
Resolution: Fixed
-
P3
-
9, 10
-
linux, os_x
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8277971 | jfx17.0.2 | Johan Vos | P3 | Resolved | Fixed | |
JDK-8277972 | jfx11.0.14 | Johan Vos | P3 | Resolved | Fixed |
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)
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)
- backported by
-
JDK-8277971 IllegalArgumentException when we initiate drag on Image
- Resolved
-
JDK-8277972 IllegalArgumentException when we initiate drag on Image
- Resolved
- links to
-
Commit openjdk/jfx11u/2ef24bef
-
Commit openjdk/jfx17u/f5680fe5
-
Commit openjdk/jfx/6e6c7119
-
Review openjdk/jfx11u/62
-
Review openjdk/jfx11u/63
-
Review openjdk/jfx17u/22
-
Review openjdk/jfx/668
(4 links to)