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

EXCEPTION_ACCESS_VIOLATION in jfxwebkit.dll with WebView

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: openjfx11, openjfx14
    • Fix Version/s: None
    • Component/s: javafx
    • Labels:
    • Subcomponent:
      web
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Windows 10, JDK11 (any version).

      A DESCRIPTION OF THE PROBLEM :
      ``bar.css`` includes ``foo.css`` using ``@import "foo.css";``.

      I set ``bar.css`` as user stylesheet using
      ``e.getEngine().setUserStyleSheetLocation(classLoader.getResource("bar.css").toExternalForm())``

      The result is

      #
      # A fatal error has been detected by the Java Runtime Environment:
      #
      # EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00007fffbee83143, pid=11440, tid=11256
      #
      # JRE version: OpenJDK Runtime Environment (11.0.2+7) (build 11.0.2-ea+7)
      # Java VM: OpenJDK 64-Bit Server VM (11.0.2-ea+7, mixed mode, tiered, compressed oops, g1 gc, windows-amd64)
      # Problematic frame:
      # C [jfxwebkit.dll+0x433143]
      #
      # No core dump will be written. Minidumps are not enabled by default on client versions of Windows
      #
      # 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.
      #

      --------------- S U M M A R Y ------------

      Command Line: -javaagent:C:\idea\lib\idea_rt.jar=54420:C:\idea\bin -Dfile.encoding=UTF-8 Failure

      Host: Intel(R) Core(TM) i7-8700K CPU @ 3.70GHz, 12 cores, 63G, Windows 10 , 64 bit Build 18995 (10.0.18995.1)
      Time: Mon Oct 7 14:21:59 2019 Russia TZ 2 Standard Time elapsed time: 0 seconds (0d 0h 0m 0s)

      --------------- T H R E A D ---------------

      Current thread (0x0000024c103e6800): JavaThread "JavaFX Application Thread" [_thread_in_native, id=11256, stack(0x0000005c19b00000,0x0000005c19c00000)]

      Stack: [0x0000005c19b00000,0x0000005c19c00000], sp=0x0000005c19bfa960, free space=1002k
      Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
      C [jfxwebkit.dll+0x433143]

      Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
      j com.sun.webkit.WebPage.twkSetUserStyleSheetLocation(JLjava/lang/String;)V+0 javafx.web@11.0.2-ea
      j com.sun.webkit.WebPage.setUserStyleSheetLocation(Ljava/lang/String;)V+10 javafx.web@11.0.2-ea
      j javafx.scene.web.WebEngine$2.invalidated()V+150 javafx.web@11.0.2-ea
      j javafx.beans.property.StringPropertyBase.markInvalid()V+13 javafx.base@11.0.2-ea
      j javafx.beans.property.StringPropertyBase.set(Ljava/lang/String;)V+89 javafx.base@11.0.2-ea
      j javafx.beans.property.StringPropertyBase.set(Ljava/lang/Object;)V+5 javafx.base@11.0.2-ea
      j javafx.scene.web.WebEngine.setUserStyleSheetLocation(Ljava/lang/String;)V+5 javafx.web@11.0.2-ea
      j Failure.start(Ljavafx/stage/Stage;)V+79
      j com.sun.javafx.application.LauncherImpl.lambda$launchApplication1$9(Ljava/util/concurrent/atomic/AtomicBoolean;Ljavafx/application/Application;)V+20 javafx.graphics@11.0.2-ea
      j com.sun.javafx.application.LauncherImpl$$Lambda$76.run()V+8 javafx.graphics@11.0.2-ea
      j com.sun.javafx.application.PlatformImpl.lambda$runAndWait$11(Ljava/lang/Runnable;Ljava/util/concurrent/CountDownLatch;)V+1 javafx.graphics@11.0.2-ea
      j com.sun.javafx.application.PlatformImpl$$Lambda$69.run()V+8 javafx.graphics@11.0.2-ea
      j com.sun.javafx.application.PlatformImpl.lambda$runLater$9(Ljava/lang/Runnable;)Ljava/lang/Void;+1 javafx.graphics@11.0.2-ea
      j com.sun.javafx.application.PlatformImpl$$Lambda$71.run()Ljava/lang/Object;+4 javafx.graphics@11.0.2-ea


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      * Create JavaFX with WebView
      * Create two .css files, with first one loads the second one.
      * Set first one using ``setUserStyleSheetLocation``

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Both css files are loaded
      ACTUAL -
      Native crash (EXCEPTION_ACCESS_VIOLATION)

      ---------- BEGIN SOURCE ----------
      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.StackPane;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class Failure extends Application {
          public static void main(String[] args) {
              launch(args);
          }

          @Override
          public void start(Stage primaryStage) {
              primaryStage.setTitle("Hello World!");

              StackPane root = new StackPane();
              WebView e = new WebView();
              ClassLoader classLoader = getClass().getClassLoader();
              e.getEngine().load(String.valueOf(classLoader.getResource("Hello.html")));
              e.getEngine().setUserStyleSheetLocation(classLoader.getResource("bar.css").toExternalForm());
              root.getChildren().add(e);
              primaryStage.setScene(new Scene(root, 300, 250));
              primaryStage.show();
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ajoseph Arun Joseph
                Reporter:
                webbuggrp Webbug Group
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: