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

[macos] WebView crashes App while using openjfx18

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      ADDITIONAL SYSTEM INFORMATION :
      MacOs 10.13.6 (High Sierra)
      jdk-18+36 (build from adoptium.net)
      openjfx-18


      A DESCRIPTION OF THE PROBLEM :
      App crash every time when code try to create WebView component.

      I see this problem on my Mac only on JDK17 and 18. In JDK16 everything works good.

      My last debug point before crash is:
      `com.sun.webkit.WebPage` when invoking native method: `pPage = twkCreatePage(editable);`

      REGRESSION : Last worked in version 16

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Just create WebView component - it crashes in default constructor.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Application do not crash, and WebView should work correctly.
      ACTUAL -
      Application crash, and print output to console:
      ```
      Ran out of executable memory while allocating 160 bytes.
      ```

      ---------- BEGIN SOURCE ----------
      package my.test;

      import javafx.application.Application;
      import javafx.scene.Scene;
      import javafx.scene.layout.BorderPane;
      import javafx.scene.web.WebView;
      import javafx.stage.Stage;

      public class WebView2 extends Application {

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

          @Override
          public void start(Stage primaryStage) throws Exception {

              WebView webView = new WebView();

              BorderPane layout = new BorderPane();
              layout.setCenter(webView);

              Scene s = new Scene(layout);
              primaryStage.setScene(s);
              primaryStage.show();
          }
      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            pnarayanaswa Praveen Narayanaswamy
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: