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

Some :web:test tests fail when -Xcheck:jni is enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3 P3
    • tbd
    • jfx25
    • javafx
    • None
    • web

      When testing the 8347937 fix, I enabled the -Xcheck:jni option for each test run and several errors occurred:

      FATAL ERROR in native method: Bad global or local ref passed to JNI
              at com.sun.webkit.WebPage.twkDestroyPage(javafx.web@25-internal/Native Method)
              at com.sun.webkit.WebPage.dispose(javafx.web@25-internal/WebPage.java:1045)
              at javafx.scene.web.WebEngine$SelfDisposer.dispose(javafx.web@25-internal/WebEngine.java:1125)
              at com.sun.webkit.Disposer$WeakDisposerRecord.dispose(javafx.web@25-internal/Disposer.java:192)
              at com.sun.webkit.Disposer$DisposerRunnable.run(javafx.web@25-internal/Disposer.java:168)
              at com.sun.javafx.application.PlatformImpl.lambda$runLater$4(javafx.graphics@25-internal/PlatformImpl.java:424)
              at com.sun.javafx.application.PlatformImpl$$Lambda/0x00001800011b8638.run(javafx.graphics@25-internal/Unknown Source)
              at com.sun.glass.ui.monocle.RunnableProcessor.runLoop(javafx.graphics@25-internal/RunnableProcessor.java:92)
              at com.sun.glass.ui.monocle.RunnableProcessor.run(javafx.graphics@25-internal/RunnableProcessor.java:51)
              at java.lang.Thread.runWith(java.base@22/Thread.java:1583)
              at java.lang.Thread.run(java.base@22/Thread.java:1570)


      Particularly LeakTest, FormControlsTest, LoadTest are affected.

            jbhaskar Jay Bhaskar
            snazarki Sergey Nazarkin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: