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

A fatal error has been detected while loading "https://www.royalvegascasino.com/" in webview

    Details

    • Subcomponent:
      web
    • CPU:
      generic
    • OS:
      generic

      Description

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
      Windows 10 64bit

      A DESCRIPTION OF THE PROBLEM :
      Crashed if try to load "https://www.royalvegascasino.com/" in webview
      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x000000005b6d47e3, pid=2900, tid=0x0000000000002644
      #
      # JRE version: Java(TM) SE Runtime Environment (8.0_101-b13) (build 1.8.0_101-b13)
      # Java VM: Java HotSpot(TM) 64-Bit Server VM (25.101-b13 mixed mode windows-amd64 compressed oops)
      # Problematic frame:
      # C [jfxwebkit.dll+0xc347e3]
      #
      # Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
      #
      # An error report file with more information is saved as:
      # D:\_MyProjects\NetBeansProjects\WebViewBrowser\hs_err_pid2900.log
      #
      # If you would like to submit a bug report, please visit:
      # http://bugreport.java.com/bugreport/crash.jsp
      # The crash happened outside the Java Virtual Machine in native code.
      # See problematic frame for where to report the bug.
      #


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      /*
       * Copyright (c) 2008, 2012 Oracle and/or its affiliates.
       * All rights reserved. Use is subject to license terms.
       *
       * This file is available and licensed under the following license:
       *
       * Redistribution and use in source and binary forms, with or without
       * modification, are permitted provided that the following conditions
       * are met:
       *
       * - Redistributions of source code must retain the above copyright
       * notice, this list of conditions and the following disclaimer.
       * - Redistributions in binary form must reproduce the above copyright
       * notice, this list of conditions and the following disclaimer in
       * the documentation and/or other materials provided with the distribution.
       * - Neither the name of Oracle Corporation nor the names of its
       * contributors may be used to endorse or promote products derived
       * from this software without specific prior written permission.
       *
       * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
       * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
       * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
       * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
       * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
       * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
       * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
       * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
       * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
       * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
       * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
       */
      package webviewbrowser;

      import java.util.List;
      import javafx.application.Application;
      import javafx.beans.value.ChangeListener;
      import javafx.beans.value.ObservableValue;
      import javafx.event.ActionEvent;
      import javafx.event.EventHandler;
      import javafx.geometry.HPos;
      import javafx.geometry.Insets;
      import javafx.geometry.VPos;
      import javafx.scene.Node;
      import javafx.scene.Scene;
      import javafx.scene.control.Button;
      import javafx.scene.control.TextField;
      import javafx.scene.layout.ColumnConstraints;
      import javafx.scene.layout.GridPane;
      import javafx.scene.layout.Pane;
      import javafx.scene.layout.Priority;
      import javafx.scene.layout.VBox;
      import javafx.scene.web.WebEngine;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;
       
      /**
       * Demonstrates a WebView object accessing a web page.
       *
       * @see javafx.scene.web.WebView
       * @see javafx.scene.web.WebEngine
       */
      public class WebViewBrowser extends Application {
       
          @Override public void start(Stage primaryStage) throws Exception {
              Pane root = new WebViewPane();
              primaryStage.setScene(new Scene(root, 1024, 768));
              primaryStage.show();
          }

          public static void main(String[] args) { launch(args); }

          /**
           * Create a resizable WebView pane
           */
          public class WebViewPane extends Pane {

              public WebViewPane() {
                  VBox.setVgrow(this, Priority.ALWAYS);
                  setMaxWidth(Double.MAX_VALUE);
                  setMaxHeight(Double.MAX_VALUE);

                  WebView view = new WebView();
                  view.setMinSize(500, 400);
                  view.setPrefSize(500, 400);
                  final WebEngine eng = view.getEngine();
                  eng.load("http://www.oracle.com/us/index.html");
                  final TextField locationField = new TextField("http://www.oracle.com/us/index.html");
                  locationField.setMaxHeight(Double.MAX_VALUE);
                  Button goButton = new Button("Go");
                  goButton.setDefaultButton(true);
                  EventHandler<ActionEvent> goAction = new EventHandler<ActionEvent>() {
                      @Override public void handle(ActionEvent event) {
                          eng.load(locationField.getText().startsWith("http://")||locationField.getText().startsWith("file:///") ? locationField.getText() :
                                  "http://" + locationField.getText());
                      }
                  };
                  goButton.setOnAction(goAction);
                  locationField.setOnAction(goAction);
                  eng.locationProperty().addListener(new ChangeListener<String>() {
                      @Override public void changed(ObservableValue<? extends String> observable, String oldValue, String newValue) {
                          locationField.setText(newValue);
                      }
                  });
                  GridPane grid = new GridPane();
                  grid.setVgap(5);
                  grid.setHgap(5);
                  GridPane.setConstraints(locationField, 0, 0, 1, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.SOMETIMES);
                  GridPane.setConstraints(goButton,1,0);
                  GridPane.setConstraints(view, 0, 1, 2, 1, HPos.CENTER, VPos.CENTER, Priority.ALWAYS, Priority.ALWAYS);
                  grid.getColumnConstraints().addAll(
                          new ColumnConstraints(100, 100, Double.MAX_VALUE, Priority.ALWAYS, HPos.CENTER, true),
                          new ColumnConstraints(40, 40, 40, Priority.NEVER, HPos.CENTER, true)
                  );
                  grid.getChildren().addAll(locationField, goButton, view);
                  getChildren().add(grid);
              }

              @Override protected void layoutChildren() {
                  List<Node> managed = getManagedChildren();
                  double width = getWidth();
                  double height = getHeight();
                  double top = getInsets().getTop();
                  double right = getInsets().getRight();
                  double left = getInsets().getLeft();
                  double bottom = getInsets().getBottom();
                  for (int i = 0; i < managed.size(); i++) {
                      Node child = managed.get(i);
                      layoutInArea(child, left, top,
                                     width - left - right, height - top - bottom,
                                     0, Insets.EMPTY, true, true, HPos.CENTER, VPos.CENTER);
                  }
              }
          }
      }

      ---------- END SOURCE ----------

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                aroy Abhijit Roy (Inactive)
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: