Hi,
When launched the outline of the GUI appears with the proper dimensions, then immediately and simultaneously resizes smaller and jumps to the top left of the screen, then crashes. What is interesting to note is that it gets to the point where the main method finishes and the GUI is left to stand on its own and crashes before init, reshape, or display are entered (I placed a println at the beginning of those methods to verify). I’m using the latest release builds of jogl.jar and precompiled system libraries for Solaris on a Sparc machine avaiable from the website. The program does run perfectly fine in Windows XP Pro SP2, XP Home, and even on an old Win 98SE machine with a VooDoo5 card using the last official divers from 3Dfx (although it does draw the world upside down, but it doesn’t crash and the drivers are ancient).
The program does compile without error on the Sun machine, and the only warnings are from me using the pre Java 5 convention of having to cast objects back out of the java.util containers.
Anyone with any ideas on a solution, or where the problem is originating? Is it a mistake in my code or system configuration? Potential conflict between JOGL and the X11 libs?
Thanks,
nova dragoon
Terminal text:
bash-2.05$ java -classpath .:jogl.jar: -Djogl.debug -Djava.library.path=. AiGUI
AiGUI:main:Entered
Warning: Cannot convert string “-monotype-arial-regular-r-normal–-140---p--iso8859-1” to type FontStruct
AiGUI:main:Creating the gui.
AiGUI:AiGUI:Entered
AiGuiMenuAndToolBars:AiGuiMenuAndToolBars:Entered
AiGuiMenuAndToolBars:AiGuiMenuAndToolBars:Exit
AiGuiMenuAndToolBars:getMenuBar:Entered
AiGuiMenuAndToolBars:getMenuBar:Exit
AiGuiMenuAndToolBars:getToolBar:Entered
AiGuiMenuAndToolBars:getToolBar:Exit
AiGuiWorldSpace:AiGuiWorldSpace:Entered
AiGuiWorldSpace:AiGuiWorldSpace:Exit
AiGUI:AiGUI:About to set size ans set visible.
Available 0: GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 32, StencilBits: 8, Red: 5, Green: 5, Blue: 5: Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ]
Available 1: null
Scores: [ -460, -9999999 ]
Chosen index: 0
Chosen capabilities:
GLCapabilities [DoubleBuffered: true, Stereo: false, HardwareAccelerated: true, DepthBits: 32, StencilBits: 8, Red: 5, Green: 5, Blue: 5: Alpha: 0, Red Accum: 16, Green Accum: 16, Blue Accum: 16, Alpha Accum: 16 ]
GLJPanel.addNotify()
AiGUI:AiGUI:Exit
AiGUI:main:Exit
AWT-EventQueue-0: GLContext.setRealized(true) for context net.java.games.jogl.impl.x11.X11OnscreenGLContext@1729854
GLCanvas.addNotify()
An unexpected error has been detected by HotSpot Virtual Machine:
SIGBUS (0xa) at pc=0xf7eb87ec, pid=18111, tid=16
Java VM: Java HotSpot™ Client VM (1.5.0-b64 mixed mode, sharing)
Problematic frame:
C [libX11.so.4+0x387ec] XVisualIDFromVisual+0x4
An error …
Abort
Logfile:
An unexpected error has been detected by HotSpot Virtual Machine:
SIGBUS (0xa) at pc=0xf7eb87ec, pid=18111, tid=16
Java VM: Java HotSpot™ Client VM (1.5.0-b64 mixed mode, sharing)
Problematic frame:
C [libX11.so.4+0x387ec] XVisualIDFromVisual+0x4
--------------- T H R E A D ---------------
Current thread (0x003ec2f8): JavaThread “AWT-EventQueue-0” [_thread_in_native, id=16]
siginfo:si_signo=10, si_errno=0, si_code=1, si_addr=0x00300069
Registers:
O0=0x00300065 O1=0x00000000 O2=0xf7cfec9c O3=0x003ec2f8
O4=0xff0cfabc O5=0x00005c00 O6=0xf7cfec38 O7=0xfb8af8d0
G1=0x000e4000 G2=0x00005c00 G3=0x00000000 G4=0x00000000
G5=0x00000000 G6=0x00000000 G7=0xff271200 Y=0x000073e7
PC=0xf7eb87ec nPC=0xfb8af8d8
Top of Stack: (sp=0xf7cfec38)
0xf7cfec38: 003ec3b0 ff0b6000 fedd2898 ff0cbe4c
0xf7cfec48: fb8f5908 00000001 fedce404 ff0cbe4c
0xf7cfec58: fb8f5a80 0041d340 0041d198 0041d2a0
0xf7cfec68: fb8f0ae0 000e0f6c f7cfecf8 f7e4b8c
0xf7cfec78: ff0d00c4 00000000 00000050 000e6fb4
0xf7cfec88: ff0bd81c 000e6fb4 00000028 00000000
0xf7cfec98: 0000000c 00000000 00000000 00000000
0xf7cfeca8: 00000100 00000000 00000000 00300065
Instructions: (pc=0xf7eb87ec)
0xf7eb87dc: 00 00 00 00 00 00 00 00 00 00 00 00 81 c3 e0 08
0xf7eb87ec: d0 02 20 04 9d e3 bf a0 d0 06 24 d0 80 a2 20 00
Stack: [0xf7c80000,0xf7d00000), sp=0xf7cfec38, free space=507k
Native frames: (J=compiled Java code, j=interpreted, Vv=VM code, C=native code)
C [libX11.so.4+0x387ec] XVisualIDFromVisual+0x4
C [libjogl.so+0x64b94] Java_net_java_games_jogl_impl_JAWT_1DrawingSurface_GetDrawingSurfaceInfo0+0x5c
j net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Ljava/nio/Buffer;)Ljava/nio/ByteBuffer;+0
j net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Ljava/nio/Buffer;)Ljava/nio/ByteBuffer;+0
j net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo()Lnet/java/games/jogl/impl/JAWT_DrawingSurfaceInfo;+5
j net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface()Z+104
j net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(Ljava/lang/Runnable;)Z+1
j net.java.games.jogl.impl.GLContext.invokeGL(Ljava/lang/Runnable;ZLjava/lang/Runnable;)V+258
j net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(Ljava/lang/Runnable;Ljava/lang/Runnable;Z)V+52
j net.java.games.jogl.GLCanvas.reshape(IIII)V+48
j java.awt.Component.setBounds(IIII)V+6
j java.awt.BorderLayout.layoutContainer(Ljava/awt/Container;)V+380
j java.awt.Container.layout()V+11
j java.awt.Container.doLayout()V+1
j java.awt.Container.validateTree()V+30
j java.awt.Container.validate()V+61
j java.awt.Window.show()V+12
j java.awt.Component.show(Z)V+5
j java.awt.Component.setVisible(Z)V+2
j net.java.games.jogl.GLJPanel$4.run()V+8
j java.awt.event.InvocationEvent.dispatch()V+47
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+200
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub
V [libjvm.so+0xd96e8]
V [libjvm.so+0xef968]
V [libjvm.so+0xef7c4]
V [libjvm.so+0xef648]
V [libjvm.so+0xd2da4]
Java frames: (J=compiled Java code, j=interpreted, Vv=VM code)
j net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Ljava/nio/Buffer;)Ljava/nio/ByteBuffer;+0
j net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo()Lnet/java/games/jogl/impl/JAWT_DrawingSurfaceInfo;+5
j net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface()Z+104
j net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(Ljava/lang/Runnable;)Z+1
j net.java.games.jogl.impl.GLContext.invokeGL(Ljava/lang/Runnable;ZLjava/lang/Runnable;)V+258
j net.java.games.jogl.GLCanvas.maybeDoSingleThreadedWorkaround(Ljava/lang/Runnable;Ljava/lang/Runnable;Z)V+52
j net.java.games.jogl.GLCanvas.reshape(IIII)V+48
j java.awt.Component.setBounds(IIII)V+6
j java.awt.BorderLayout.layoutContainer(Ljava/awt/Container;)V+380
j java.awt.Container.layout()V+11
j java.awt.Container.doLayout()V+1
j java.awt.Container.validateTree()V+30
j java.awt.Container.validate()V+61
j java.awt.Window.show()V+12
j java.awt.Component.show(Z)V+5
j java.awt.Component.setVisible(Z)V+2
j net.java.games.jogl.GLJPanel$4.run()V+8
j java.awt.event.InvocationEvent.dispatch()V+47
j java.awt.EventQueue.dispatchEvent(Ljava/awt/AWTEvent;)V+26
j java.awt.EventDispatchThread.pumpOneEventForHierarchy(ILjava/awt/Component;)Z+200
j java.awt.EventDispatchThread.pumpEventsForHierarchy(ILjava/awt/Conditional;Ljava/awt/Component;)V+26
j java.awt.EventDispatchThread.pumpEvents(ILjava/awt/Conditional;)V+4
j java.awt.EventDispatchThread.pumpEvents(Ljava/awt/Conditional;)V+3
j java.awt.EventDispatchThread.run()V+9
v ~StubRoutines::call_stub