LWJGL Forum

Programming => Bug Reports / RFE => Topic started by: princec on January 14, 2014, 11:26:12

Title: [BUG] FATAL ERROR in native method: Bad global or local ref passed to JNI
Post by: princec on January 14, 2014, 11:26:12
Running 1.7.0_45 on Win7 64-bit, attempting to create() the Display and using -Xcheck:jni on the commandline. JNI stacktrace as follows:


FATAL ERROR in native method: Bad global or local ref passed to JNI
at org.lwjgl.opengl.WindowsDisplay.nCreateWindow(Native Method)
at org.lwjgl.opengl.WindowsDisplay.createWindow(WindowsDisplay.java:239)
at org.lwjgl.opengl.Display.createWindow(Display.java:306)
at org.lwjgl.opengl.Display.create(Display.java:848)
- locked <0x0a57a2d8> (a java.lang.Object)
at org.lwjgl.opengl.Display.create(Display.java:757)


Workaround is not to use -Xcheck:jni but it makes me think there's no smoke without a fire. Any thoughts? Can anyone reproduce?

Cas :)
Title: Re: [BUG] FATAL ERROR in native method: Bad global or local ref passed to JNI
Post by: spasi on January 14, 2014, 15:13:44
Thanks, should be fixed in the next nightly.