LWJGL
May 22, 2012, 14:46:52 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: LWJGL 2.8.3 released!
 
   Home   Help Search Login Register  



Pages: [1]
  Print  
Author Topic: An exception on Windows only.  (Read 1104 times)
multiHYP
Newbie
*
Posts: 1


« on: April 20, 2010, 19:29:01 »

Hi peeps!

Exception in thread "main" java.util.NoSuchElementException
   at java.util.StringTokenizer.nextToken(Unknown Source)
   at org.lwjgl.opengl.GLContext.getSupportedExtensions(GLContext.java:190)
   at org.lwjgl.opengl.ContextCapabilities.initAllStubs(ContextCapabilities.java:3442)
   at org.lwjgl.opengl.ContextCapabilities.<init>(ContextCapabilities.java:3690)
   at org.lwjgl.opengl.GLContext.useContext(GLContext.java:328)
   at org.lwjgl.opengl.GLContext.useContext(GLContext.java:287)

The exception above refers me to the line of code in which I have:

Code:
public class someclass extends GLCanvas implements Runnable {

  public someclass () {
   
    setCurrent();

    try {
      GLContext.useContext(this);
    } catch (LWJGLException e) {
      e.printStackTrace();
    }

  }

  public void run() {
  ...
  }

}

Now, this exception happens when I test my application on Windows XP SP3 Virtual Machine inside Parallels Desktop. However, the same code works perfectly fine under Mac OS X (10.5 & 10.6). Suggestions in the IRC channel directed me to perhaps the lack of support for OpenGL in my Virtual Machine. Therefore I tested the LWJGL online demos and they all did indeed run perfectly fine under the Windows XP SP3 Virtual Machine. Next step was to look through the documentation APIs. Under the GLContext class documentation I gathered the following:

  • Version:
    $Revision: 3279 $ $Id: GLContext.java 3279 2010-03-11 21:06:49Z spasi $
  • Author:
    elias_naur

I would appreciate if the author, revisor or any other member of the LWJGL team could help me with this issue.

Regards,

multiHYP
Logged
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #1 on: April 20, 2010, 22:42:55 »

fire up your debugger, check the contents of the string. if its empty - have you created a context at all? if its not empty does it have weird characters?
Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
Matzon
Administrator
Demigod
*****
Posts: 2177



« Reply #2 on: April 21, 2010, 02:20:52 »

from irc:
value of version is: ""
a normal lwjgl app has "2.0 ATI-1.6.10" - and works under the parallels environment

could be SWT or context initialization that somehow fails with the swt/paralells implementation. Not sure how :/

Logged

http://certusgames.com (Free Online Multiplayer Java Games)
http://lwjgl.org (OpenGL/OpenAL for Java)
spasi
Nerdus Imperius
*****
Posts: 643



WWW
« Reply #3 on: April 21, 2010, 03:59:50 »

Could you please run the OpenGL Extensions Viewer under Parallels and let us know the results?
Logged

mringwal
Newbie
*
Posts: 1


« Reply #4 on: November 10, 2011, 07:12:42 »

Hi. I'm running into the same error (in Parallels Deskop 6, Windows XP SP3 on a Mac Mini).
glGetString(GL_VERSION) returns an empty string inside the VM.

OpenGL Extension Viewer 4.04 reports

Renderer: Parallels using NVIDIA GeForce 9400 OpenGL Engine
Vendor: Parallels and NVIDIA Corporation
Memory: 256 MB
Version: 2.1 NVIDIA-1.6.36
Shading language version: 1.20

any hints/ideas?
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines
SMFAds for Free Forums
Valid XHTML 1.0! Valid CSS!