Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exceptions when running viewer #18

Open
mickey9294 opened this issue Sep 16, 2017 · 1 comment
Open

Exceptions when running viewer #18

mickey9294 opened this issue Sep 16, 2017 · 1 comment

Comments

@mickey9294
Copy link

mickey9294 commented Sep 16, 2017

I'm trying to run shapenet-viewer to render shapenet shapes.
However, when I run the viewer.sh on my Ubuntu 16.04, the following exceptions show up:

Uncaught exception thrown in Thread[jME3 Main,5,main]
java.lang.ExceptionInInitializerError
at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:112)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:113)
at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:211)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
at org.lwjgl.opengl.Display.(Display.java:141)
... 4 more
Caused by: org.lwjgl.LWJGLException: No modes available
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
at org.lwjgl.opengl.Display.(Display.java:138)
... 4 more

Exception: java.lang.NullPointerException thrown from the UncaughtExceptionHandler in thread "jME3 Main"

My java version is:

java version "1.8.0_144"
Java(TM) SE Runtime Environment (build 1.8.0_144-b01)
Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)

And the configure file I use just contains the following lines:

viewer.commands = [
"register shapeNetCore /home/magic/liuchuan/Projects/PointSetGeneration/data/ShapeNetCore.v1",
"load model random",
"show meshes",
"set cameraAngleFromHorizontal 0",
]

Can you tell me how to fix it?
Thank you very much!

@msavva
Copy link
Member

msavva commented Sep 18, 2017

These errors look like they are due to an OpenGL context being unavailable. This would happen if you are running the code through a remote SSH session. You would need to either run on a machine locally, or set up a server such that you can acquire an OpenGL context from a remote session. Please see issue #4 for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants