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

[macos] JavaFX WebView crashes when using Chinese Input Method

XMLWordPrintable

    • web
    • x86_64
    • os_x

      ADDITIONAL SYSTEM INFORMATION :
      System: macOS Monterey 12.6.3
      Java: zulu-javafx-17.40.19

      kotlin.version=1.8.20
      agp.version=7.3.0
      compose.version=1.5.0-rc02

      A DESCRIPTION OF THE PROBLEM :
      Crash every time (like dead-lock) using Chinese Input Method (Both System IME and third-party IME) with WebView on macOS(Both Intel and Apple M1 Chip). There is only one possible error message:

      Caused by: java.lang.NullPointerException: Cannot invoke "String.substring(int, int)" because the return value of "com.sun.webkit.WebPage.getClientCommittedText()" is null

      BTW: I am using compose desktop with JavaFX WebView, it only crashes on WebView, other JavaFX components(Like TextField) are working well. The same code works on Linux(Ubuntu) and Windows(10).

      You can find out how to use JavaFX WebView on compose desktop: <LINK>


      FREQUENCY : always


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

              Created:
              Updated:
              Resolved: