Main Menu

JVM crash

Started by smu42, October 03, 2009, 12:44:36

Previous topic - Next topic

smu42


Hi everyone,

I'm writing an lwjgl app and under some circumstances the app crashes.
I tried

java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03)
Java HotSpot(TM) Client VM (build 14.1-b02, mixed mode, sharing)


which works.

However
java version "1.6.0_16"
Java(TM) SE Runtime Environment (build 1.6.0_16-b01)
Java HotSpot(TM) Client VM (build 14.2-b01, mixed mode, sharing)

crashes while initializing the display.

The logfile says:
Stack: [0x07ac0000,0x07b10000],  sp=0x07b0f510,  free space=317k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C  [KERNELBASE.dll+0xb727]
C  [windows_lwjgl.dll.8212691040754365197.tmp+0x8fe6]
C  [windows_lwjgl.dll.8212691040754365197.tmp+0x8ea7]
j  org.lwjgl.opengl.AWTSurfaceLock.access$100(Ljava/nio/ByteBuffer;Ljava/awt/Canvas;)Z+2
j  org.lwjgl.opengl.AWTSurfaceLock$1.run()Ljava/lang/Object;+11
v  ~StubRoutines::call_stub
V  [jvm.dll+0xecf9c]
V  [jvm.dll+0x1741e1]
V  [jvm.dll+0xed01d]
V  [jvm.dll+0x11c2bf]
C  [java.dll+0x1047]
j  org.lwjgl.opengl.AWTSurfaceLock.privilegedLockAndInitHandle(Ljava/awt/Canvas;)Z+25
j  org.lwjgl.opengl.AWTSurfaceLock.lockAndGetHandle(Ljava/awt/Canvas;)Ljava/nio/ByteBuffer;+2
j  org.lwjgl.opengl.WindowsAWTGLCanvasPeerInfo.doLockAndInitHandle()V+8
j  org.lwjgl.opengl.PeerInfo.lockAndGetHandle()Ljava/nio/ByteBuffer;+65
j  org.lwjgl.opengl.WindowsDisplay.getHwnd(Ljava/awt/Canvas;)J+17
j  org.lwjgl.opengl.WindowsDisplay.createWindow(Lorg/lwjgl/opengl/DisplayMode;Ljava/awt/Canvas;II)V+35
j  org.lwjgl.opengl.Display.createWindow()V+68
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;Lorg/lwjgl/opengl/Drawable;Lorg/lwjgl/opengl/ContextAttribs;)V+63
j  org.lwjgl.opengl.Display.create(Lorg/lwjgl/opengl/PixelFormat;)V+9
j  org.lwjgl.opengl.Display.create()V+13



The working Java-Version comes with the JDK and the non working version comes with the SDK.

The completet log file is attached.

The error is reproducible.

Is this a lwjgl bug or a jvm bug? Is there a workaround (without updating java)?

Thanks in advance.