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

[macos] Google Maps doesn't load in JavaFX WebView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • jfx11, jfx20, 8, jfx17, jfx21
    • javafx
    • web
    • aarch64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
        System Version: macOS 12.6.6 (21G646)
        Kernel Version: Darwin 21.6.0


      A DESCRIPTION OF THE PROBLEM :
      Since JavaFX 17.0.7, using Google Maps (http://www.google.com/maps) crashes the VM. Sometimes it doesn't crash the VM, but produces NullpointerException:

      Exception in thread "JavaFX Application Thread" java.lang.NullPointerException: Cannot invoke "Object.hashCode()" because "<parameter1>" is null
      at java.base/java.util.ImmutableCollections$MapN.probe(Unknown Source)
      at java.base/java.util.ImmutableCollections$MapN.get(Unknown Source)
      at javafx.web@21-ea/com.sun.javafx.webkit.KeyCodeMap.lookup(Unknown Source)
      at javafx.web@21-ea/javafx.scene.web.WebView.processKeyEvent(Unknown Source)
      at javafx.web@21-ea/javafx.scene.web.WebView.lambda$registerEventHandlers$2(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.CompositeEventHandler$NormalEventHandlerRecord.handleBubblingEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
      at javafx.base@21-ea/com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
      at javafx.base@21-ea/javafx.event.Event.fireEvent(Unknown Source)
      at javafx.graphics@21-ea/javafx.scene.Scene.processKeyEvent(Unknown Source)
      at javafx.graphics@21-ea/javafx.scene.Scene$ScenePeerListener.keyEvent(Unknown Source)
      at javafx.graphics@21-ea/com.sun.javafx.tk.quantum.EmbeddedScene.lambda$keyEvent$12(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Unknown Source)
      at javafx.graphics@21-ea/com.sun.javafx.tk.quantum.EmbeddedScene.lambda$keyEvent$13(Unknown Source)
      at javafx.graphics@21-ea/com.sun.javafx.application.PlatformImpl.lambda$runLater$10(Unknown Source)
      at java.base/java.security.AccessController.doPrivileged(Unknown Source)
      at javafx.graphics@21-ea/com.sun.javafx.application.PlatformImpl.lambda$runLater$11(Unknown Source)
      at javafx.graphics@21-ea/com.sun.glass.ui.InvokeLaterDispatcher$Future.run(Unknown Source)


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just launch page www.google.com/maps using the JavaFX WebView browser, then type "New York" (for instance) in the search box. That triggers it

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The map should zoom to the specified location
      ACTUAL -
      I either get a thread dump (see above) or a complete VM freeze. It doens't produce any crash log, just that colorful spinning wheel mouse pointer.

      FREQUENCY : always


        1. WebViewTest.java
          0.6 kB
        2. Capture.png
          Capture.png
          156 kB
        3. Ubuntu20_04_Capture.JPG
          Ubuntu20_04_Capture.JPG
          118 kB
        4. Windows10_Capture.JPG
          Windows10_Capture.JPG
          192 kB
        5. Screen Shot 2023-06-21 at 7.50.18 PM.png
          Screen Shot 2023-06-21 at 7.50.18 PM.png
          3.40 MB

            hmeda Hima Bindu Meda
            webbuggrp Webbug Group
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: