[BUG] FATAL ERROR in native method: Bad global or local ref passed to JNI

Started by princec, January 14, 2014, 11:26:12

Previous topic - Next topic

princec

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 :)

spasi