Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (408)
games submitted by our members
Games in WIP (293)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Multithreading problem?  (Read 1101 times)
0 Members and 1 Guest are viewing this topic.
Offline adriankierman

Junior Newbie




Java games rock!


« Posted 2003-09-03 04: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


Medals: 54
Projects: 20


Mentally unstable, best avoided.


« Reply #1 - Posted 2003-09-03 06: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

Junior Newbie




Java games rock!


« Reply #2 - Posted 2003-09-03 07:09:36 »

Yep thats solved the problem. Thanks  Smiley
Games published by our own members! Check 'em out!
Play the free demo of Revenge of the Titans!
Offline Ken Russell

JGO Coder




Java games rock!


« Reply #3 - Posted 2003-09-07 06: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]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
cubemaster21 (140 views)
2013-05-17 21:29:12

alaslipknot (149 views)
2013-05-16 21:24:48

gouessej (179 views)
2013-05-16 00:53:38

gouessej (173 views)
2013-05-16 00:17:58

theagentd (183 views)
2013-05-15 15:01:13

theagentd (167 views)
2013-05-15 15:00:54

StreetDoggy (212 views)
2013-05-14 15:56:26

kutucuk (236 views)
2013-05-12 17:10:36

kutucuk (235 views)
2013-05-12 15:36:09

UnluckyDevil (240 views)
2013-05-12 05:09:57
Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38

Java Data structures
by Roquen
2013-03-29 13:21:12

Topic Request
by kutucuk
2013-03-22 21:42:01
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!
Page created in 0.727 seconds with 21 queries.