Java-Gaming.org Java4K winners: [ by our judges | by the community ]         
Featured games (67)
games approved by the League of Dukes
Games in Showcase (∞)
games submitted by our members



News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  Print  
  Multithreading problem?  (Read 993 times)
0 Members and 2 Guests are viewing this topic.
Offline adriankierman

JGO n00b
*

Posts: 2


Java games rock!


« on: 2003-09-02 22:12:03 »

Hi foks
I've been using jogl for a couple of weeks and I've been hugely impressed with how clean the api's are. Nice work guys  Smiley

I seem to have run into a problem that has stumped me a little though - perhaps one of you guys has some idea what might be causing this error message.

<-- Error message follows  -->

An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xA11C9BD7
Function=XVisualIDFromVisual+0x7
Library=/usr/X11R6/lib/libX11.so.6

Current Java thread:
       at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo0(Native Method)
       at net.java.games.jogl.impl.JAWT_DrawingSurface.GetDrawingSurfaceInfo(JAWT_DrawingSurface.java:42)
       at net.java.games.jogl.impl.x11.X11OnscreenGLContext.lockSurface(X11OnscreenGLContext.java:167)
       at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:108)
       - locked <0x44927448> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
       - locked <0x44927448> (a net.java.games.jogl.impl.x11.X11OnscreenGLContext)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
       at net.java.games.jogl.Animator$1.run(Animator.java:104)
       at java.lang.Thread.run(Thread.java:536)

Dynamic libraries:


< ---              --- >


This was generated from the last nightly using code that is almost exactly the same as the nvidia refraction demo (except no refraction extensions used here)
This is running on redhat linux with jvm 1.4.1 and an nvidia 5600 with the latest nvidia drivers.

Any advice appreciated.


I also tried it with java version 1.4.2 and I get a different exception as follows

net.java.games.jogl.GLException: Error making context current
       at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
       at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
       at net.java.games.jogl.Animator$1.run(Animator.java:104)
       at java.lang.Thread.run(Thread.java:534)
net.java.games.jogl.GLException: Error making context current
       at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
       at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
       at net.java.games.jogl.GLCanvas.reshape(GLCanvas.java:119)
       at java.awt.Component.setBounds(Component.java:1664)
       at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
       at java.awt.Container.layout(Container.java:1020)
       at java.awt.Container.doLayout(Container.java:1010)
       at java.awt.Container.validateTree(Container.java:1092)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validateTree(Container.java:1099)
       at java.awt.Container.validate(Container.java:1067)
       at java.awt.Window.dispatchEventImpl(Window.java:1604)
       at java.awt.Component.dispatchEvent(Component.java:3477)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
net.java.games.jogl.GLException: Error making context current
       at net.java.games.jogl.impl.x11.X11GLContext.makeCurrent(X11GLContext.java:141)
       at net.java.games.jogl.impl.x11.X11OnscreenGLContext.makeCurrent(X11OnscreenGLContext.java:111)
       at net.java.games.jogl.impl.GLContext.invokeGL(GLContext.java:162)
       at net.java.games.jogl.GLCanvas.displayImpl(GLCanvas.java:196)
       at net.java.games.jogl.GLCanvas.display(GLCanvas.java:91)
       at net.java.games.jogl.GLCanvas.paint(GLCanvas.java:102)
       at sun.awt.RepaintArea.paint(RepaintArea.java:177)
       at sun.awt.motif.MComponentPeer.handleEvent(MComponentPeer.java:405)
       at java.awt.Component.dispatchEventImpl(Component.java:3678)
       at java.awt.Component.dispatchEvent(Component.java:3477)
       at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
       at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
       at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
       at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
       at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Offline kevglass
« League of Dukes »

JGO Kernel
*****

Posts: 5214
Medals: 49


Mentally unstable, best avoided.


« Reply #1 on: 2003-09-03 00:41:49 »

The second stack trace is becoming a common theme Smiley

Seems to be a problem when you're trying to run JOGL with X in 16 bit graphics mode.

This report report here:

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=newbies;action=display;num=1062001166

Might be worth adding to the FAQ if its actually the case?

Kev

Offline adriankierman

JGO n00b
*

Posts: 2


Java games rock!


« Reply #2 on: 2003-09-03 01:09:36 »

Yep thats solved the problem. Thanks  Smiley
Games published by our own members! Go get 'em!
Offline Ken Russell

JGO Kernel
*****

Posts: 3446
Medals: 3


Java games rock!


« Reply #3 on: 2003-09-07 00:21:01 »

Actually could one of you please file an issue about this on http://jogl.dev.java.net/ ? This is the first report I've personally seen about this problem. Thanks.
Pages: [1]
  Print  
 
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.081 seconds with 20 queries.