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

JavaFx WebView get Segmentation Fault in SpringBoot Fat Jar

    XMLWordPrintable

    Details

    • Subcomponent:
      web
    • CPU:
      x86_64
    • OS:
      windows_10

      Description

      A DESCRIPTION OF THE PROBLEM :
      I have a SpringBoot Application that uses JavaFx and i added a Discord Oauth Authentication. It's working fine when i run it in Eclipse, but as soon as i create the Spring Fat Jar and run in on command line i get a segmentation fault.

      I first thought that https://bugs.openjdk.java.net/browse/JDK-8242361 might be the same, but as far as i have seen that bug should be fixed in javafx-web 17-ea+7, which i use and i still get segmenation faults.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Load the Discord OAuth authorization website in a WebView inside a Spring fat jar.
      Example URL
      https://discord.com/oauth2/authorize?response_type=code&client_id=10&scope=identify&redirect_uri=https://www.blub.de/

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Authorization Page is shown in the WebView
      ACTUAL -
      Application crashs with a Segmentation Fault

      ---------- BEGIN SOURCE ----------
      I made a little maven project to create the fat jar, which give me segmentation fault all the time when i call it https://github.com/tiramon/javafx_segfault

      @Override
      public void start(Stage primaryStage) throws Exception {
      WebView wv = new WebView();
      wv.setContextMenuEnabled(false);
      WebEngine we = wv.getEngine();
      String authUrl = "https://discord.com/oauth2/authorize?response_type=code&client_id=10&scope=identify&redirect_uri=https://www.blub.de/";
      we.load(authUrl);
      Scene scene = new Scene(wv, 500, 750);
      primaryStage.setScene(scene);
      primaryStage.show();

      }
      ---------- END SOURCE ----------

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ajoseph Arun Joseph (Inactive)
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: