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

-Xcheck:jni - Bad global or local ref passed to JNI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 7u80
    • 7u45
    • javafx
    • deskop pc / win7 x64 / nvidia

      Running any application with -Xcheck:jni always leads to the following FATAL error.

      Note: the problem affects only JDK7/JavaFX 2.2.54. JDK8 seems to be ok.

      FATAL ERROR in native method: Bad global or local ref passed to JNI
      at com.sun.glass.ui.win.WinScreen._getMainScreen(Native Method)
      at com.sun.glass.ui.win.WinScreen.getMainScreen_impl(WinScreen.java:43)
      at com.sun.glass.ui.win.WinApplication.staticScreen_getMainScreen(WinApplication.java:163)
      at com.sun.glass.ui.Screen.getMainScreen(Screen.java:15)
      at com.sun.javafx.tk.quantum.WindowStage.initPlatformWindow(WindowStage.java:134)
      at com.sun.javafx.tk.quantum.WindowStage.init(WindowStage.java:85)
      at com.sun.javafx.tk.quantum.QuantumToolkit.createTKStage(QuantumToolkit.java:504)
      at javafx.stage.Stage.impl_visibleChanging(Stage.java:928)
      at javafx.stage.Window$9.invalidated(Window.java:690)
      at javafx.beans.property.BooleanPropertyBase.markInvalid(BooleanPropertyBase.java:127)
      at javafx.beans.property.BooleanPropertyBase.set(BooleanPropertyBase.java:161)
      at javafx.stage.Window.setShowing(Window.java:779)
      at javafx.stage.Window.show(Window.java:794)
      at javafx.stage.Stage.show(Stage.java:229)
      at JavaFX.CanvasTest.start(CanvasTest.java:70)
      at com.sun.javafx.application.LauncherImpl$5.run(LauncherImpl.java:319)
      at com.sun.javafx.application.PlatformImpl$5.run(PlatformImpl.java:216)
      at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:179)
      at com.sun.javafx.application.PlatformImpl$4$1.run(PlatformImpl.java:176)
      at java.security.AccessController.doPrivileged(Native Method)
      at com.sun.javafx.application.PlatformImpl$4.run(PlatformImpl.java:176)
      at com.sun.glass.ui.InvokeLaterDispatcher$Future.run(InvokeLaterDispatcher.java:76)
      at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
      at com.sun.glass.ui.win.WinApplication.access$100(WinApplication.java:17)
      at com.sun.glass.ui.win.WinApplication$3$1.run(WinApplication.java:67)
      at java.lang.Thread.run(Thread.java:744)

            anthony Anthony Petrov (Inactive)
            mpuccinijfx Michele Puccini (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: