JDK-8092649 : [WebView] IllegalArgumentException when dragging in google maps
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u40,8u60,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2015-05-07
  • Updated: 2015-08-03
  • Resolved: 2015-06-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 JDK 9
8u60Fixed 9Fixed
Related Reports
Duplicate :  
Duplicate :  
Duplicate :  
Relates :  
Description
Reproducible since at least 8u40, then prior to 9b52/8u60b09 (after which it is reproducible as a crash), and eventually since 9b60/8u60b12.

Perform the following steps:

1. load in WebLauncher https://google-developers.appspot.com/maps/documentation/javascript/examples/full/map-simple
2. press mouse button in the map, hold the button & drag somewhere outside WebView, release the button
3. press mouse button in the map again, try to drag

An exception is thrown:

     [java] java.lang.IllegalArgumentException: Image dimensions must be > 0
     [java] at com.sun.prism.Image.<init>(Image.java:292)
     [java] at com.sun.prism.Image.<init>(Image.java:268)
     [java] at com.sun.prism.Image.fromByteBgraPreData(Image.java:111)
     [java] at com.sun.javafx.webkit.prism.RTImage.getImage(RTImage.java:62)
     [java] at com.sun.javafx.webkit.prism.PrismImage.getPlatformImage(PrismImage.java:54)
     [java] at com.sun.javafx.webkit.UIClientImpl.startDrag(UIClientImpl.java:277)
     [java] at com.sun.webkit.WebPage.fwkStartDrag(WebPage.java:2160)
     [java] at com.sun.webkit.WebPage.twkProcessMouseEvent(Native Method)
     [java] at com.sun.webkit.WebPage.dispatchMouseEvent(WebPage.java:759)
     [java] at javafx.scene.web.WebView.processMouseEvent(WebView.java:1021)
     [java] at javafx.scene.web.WebView.lambda$registerEventHandlers$3(WebView.java:1144)
     [java] at javafx.scene.web.WebView$$Lambda$83/56900564.handle(Unknown Source)
     [java] at com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(CompositeEventHandler.java:218)
     [java] at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(CompositeEventHandler.java:80)
     [java] at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:238)
     [java] at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(EventHandlerManager.java:191)
     [java] at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(CompositeEventDispatcher.java:59)
     [java] at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:58)
     [java] at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
     [java] at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
     [java] at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
     [java] at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(BasicEventDispatcher.java:56)
     [java] at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(EventDispatchChainImpl.java:114)
     [java] at com.sun.javafx.event.EventUtil.fireEventImpl(EventUtil.java:74)
     [java] at com.sun.javafx.event.EventUtil.fireEvent(EventUtil.java:54)
     [java] at javafx.event.Event.fireEvent(Event.java:198)
     [java] at javafx.scene.Scene$MouseHandler.process(Scene.java:3757)
     [java] at javafx.scene.Scene$MouseHandler.access$1500(Scene.java:3485)
     [java] at javafx.scene.Scene.impl_processMouseEvent(Scene.java:1762)
     [java] at javafx.scene.Scene$ScenePeerListener.mouseEvent(Scene.java:2494)
     [java] at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:350)
     [java] at com.sun.javafx.tk.quantum.GlassViewEventHandler$MouseEventNotification.run(GlassViewEventHandler.java:275)
     [java] at java.security.AccessController.doPrivileged(Native Method)
     [java] at com.sun.javafx.tk.quantum.GlassViewEventHandler.lambda$handleMouseEvent$351(GlassViewEventHandler.java:385)
     [java] at com.sun.javafx.tk.quantum.GlassViewEventHandler$$Lambda$216/1461971574.get(Unknown Source)
     [java] at com.sun.javafx.tk.quantum.QuantumToolkit.runWithoutRenderLock(QuantumToolkit.java:389)
     [java] at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(GlassViewEventHandler.java:384)
     [java] at com.sun.glass.ui.View.handleMouseEvent(View.java:555)
     [java] at com.sun.glass.ui.View.notifyMouse(View.java:937)
     [java] at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
     [java] at com.sun.glass.ui.win.WinApplication.lambda$null$146(WinApplication.java:108)
     [java] at com.sun.glass.ui.win.WinApplication$$Lambda$37/380894366.run(Unknown Source)
     [java] at java.lang.Thread.run(Thread.java:745)

Comments
changeset: http://hg.openjdk.java.net/openjfx/9-dev/rt/rev/effe93de59ad
02-06-2015

Looks fine to me. Please, create a subtask for a backport.
29-05-2015

Webrev: http://cr.openjdk.java.net/~anashaty/RT-40743/webrev.00/
29-05-2015

It is also sometimes reproduced on yahoo.com when selecting and dragging to the bottom several times
29-05-2015

The fix is: Just ignore the image with size 0x0
29-05-2015

A workaround: on the 3rd step click (press+release) into the map before dragging.
07-05-2015