question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

TestCanvas crashes with LWJGL3

See original GitHub issue

Current master branch on Windows:

INFO JmeDesktopSystem 10:35:35 AM Running on jMonkeyEngine 3.3-6918
 * Branch: master
 * Git Hash: 46a52af
 * Build Date: 2019-09-20
SEVERE JmeDesktopSystem 10:35:35 AM CRITICAL ERROR: Context class is missing!
Make sure jme3_lwjgl-ogl is on the classpath.
java.lang.ClassNotFoundException: com.jme3.system.lwjgl.LwjglCanvas
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:264)
	at com.jme3.system.JmeDesktopSystem.newContextLwjgl(JmeDesktopSystem.java:196)
	at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:279)
	at com.jme3.system.JmeSystem.newContext(JmeSystem.java:159)
	at com.jme3.app.LegacyApplication.createCanvas(LegacyApplication.java:510)
	at jme3test.awt.TestCanvas.createCanvas(TestCanvas.java:217)
	at jme3test.awt.TestCanvas.main(TestCanvas.java:248)
Exception in thread "main" java.lang.NullPointerException
	at com.jme3.system.JmeDesktopSystem.newContext(JmeDesktopSystem.java:280)
	at com.jme3.system.JmeSystem.newContext(JmeSystem.java:159)
	at com.jme3.app.LegacyApplication.createCanvas(LegacyApplication.java:510)
	at jme3test.awt.TestCanvas.createCanvas(TestCanvas.java:217)
	at jme3test.awt.TestCanvas.main(TestCanvas.java:248)

The same test app works fine with LWJGL2 on Windows.

I’m not sure what ever happened to jme3_lwjgl-ogl.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:14 (13 by maintainers)

github_iconTop GitHub Comments

4reactions
tonihelecommented, Nov 20, 2022

I can try to fix this. I already created an awful working demo. I’ll get it to somewhat nice shape. Try to get feature parity with the LWJGL 2 one and make a PR. Then at least it is implemented and can be improved upon later.

Pic or didn’t happen: image

0reactions
stephengoldcommented, Nov 21, 2022

Thanks @tonihele . This looks promising.

Read more comments on GitHub >

github_iconTop Results From Across the Web

(SOLVED) LWJGL3: ERROR: Context class is missing!
Hi, I'm beginning (and start learning) with jMonkeyEngine and got issue referenced here: TestCanvas crashes with LWJGL3 · Issue #1192 ...
Read more >
LWJGL crashes on glDrawElements - java - Stack Overflow
GL_VERTEX_ARRAY is not a valid buffer binding point for e.g. glBindBuffer . The reason why it crashes is because you enabled generic vertex ......
Read more >
LWJGL3 Stable, Works on Windows, Crashes on Linux
I installed OpenJDK 8 on the virtual machine and tried running the program and this "java.lang.reflect.InvocationTargetException" comes up before the program ...
Read more >
Bandicam crashes my LWJGL3 game - Bandicam Forum
Bandicam crashes my LWJGL3 game. Fri Jan 04, 2019 6:36 pm. - Windows Version: Windows 10 - Graphic card model: NVIDIA GTX 1070...
Read more >
LWJGL 3 HelloWorld example crashing
Given that the crash is inconsistent, it's probably a threading issue. The link you shared says. MacOS users should start their application ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found