JDK-8088369 : [WebView] Slowness with google maps / here maps
  • Type: Bug
  • Component: javafx
  • Sub-Component: web
  • Affected Version: 8u20,9
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2014-04-13
  • Updated: 2016-06-06
  • Resolved: 2016-06-06
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 9
9Resolved
Related Reports
Duplicate :  
Description
The webview is very slow with google maps and here maps when the user zoom in / out.
If the user do whatever the webview slow all the application and can even stop all the javafx application for one or more seconds.

Here my post on oracle's forum : https://community.oracle.com/thread/3541866.

Here the file that I load in my WebView :


<!DOCTYPE html>
<html>
    <head>
        <style>
            html, body {
                height: 100%;
                width: 100%;
            }
            #mapcanvas { height: 100%; width: 100%}
        </style>
        <script type='text/javascript'>
            function loadScript() {
                var script = document.createElement('script');
                script.type = 'text/javascript';
                script.src = 'https://maps.googleapis.com/maps/api/js?libraries=weather&sensor=false&' +
                        'callback=initialize';
                document.body.appendChild(script);
            }
 
            var GGMaps = null;
            function initialize() {
                var myOptions = new Array();
                this.map = null;
                this.mapZoom = 6;
                this.mapCenter = new google.maps.LatLng(48.856667, 2.350987);
                this.mapTypeId = google.maps.MapTypeId.ROADMAP;
                myOptions["zoom"] = this.mapZoom;
                myOptions["center"] = this.mapCenter;
                myOptions["mapTypeId"] = this.mapTypeId;
                this.map = new google.maps.Map(document.getElementById("mapcanvas"), myOptions);
                console.log('NEW INSTANCE');
            }
            window.onload = loadScript;
        </script>
    </head>
 
    <body>
        <div id="mapcanvas"></div>
    </body>
</html>
 

Comments
Thanks Mattias - I think you're right. Really hope this gets fixed soon, as it's pretty critical for our application.
30-04-2015

@mick That may be related to RT-40267 (see details in comment: https://javafx-jira.kenai.com/browse/RT-40267?focusedCommentId=450843&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-450843) maps.google.com works fine but not their hello world javascript api example (then it crashes)
30-04-2015

Great that this particular issue is fixed, but I now have the following problem: I display a GoogleMap in a JFXPanel, zoom in using the scrollwheel - so far so good - but when I drag the map the whole Java Application disappears. Anyone else have this problem?
30-04-2015

thanks a lot
29-04-2015

I should note that you can download early access builds of 8u60 here: https://jdk8.java.net/download.html
29-04-2015

This are very, very good news for our project with javaFX
29-04-2015

So happy let's have a beer together ^^
28-04-2015

The crash should be gone in 8u60 and 9 early access builds.
28-04-2015

I also see this problem in my setup. 8u40 Win7 x64. In my case zooming is fast but it crash after just few seconds.
28-04-2015

Big Problem for my application too.
16-03-2015

SQE is ok to defer from 8u40.
18-11-2014

No resources to fix it in 8u40, moving to 9.
23-09-2014

It's a very big problem for my client if you have any information about the date of the u40 it could be a pleasure :)
23-07-2014

Do you have any date for the 8u40 ? :)
12-06-2014

We are sorry, but at this time we have no resources to work on WebView bugs for the 8u20 release. Unfortunately, we will have to defer them to 8u40.
23-05-2014

Yeah I think that you are right. It doesn't work when there is a lot of image (ex : Maps like google maps). I really need it working for my project as soon as possible ^^.
28-04-2014

Maybe this issue is basically the same problem as described in https://javafx-jira.kenai.com/browse/RT-35262
28-04-2014

Hi, do you have any news ?
27-04-2014

I have the same problem. Since JavaFX 8 the google maps zooming and panning is very slow and even crashes my vm sometimes! (JDK 8, Win 7 x64)
23-04-2014