jMonkeyEngine / jmonkeyengine

A complete 3-D game development suite written in Java.
http://jmonkeyengine.org
BSD 3-Clause "New" or "Revised" License
3.76k stars 1.12k forks source link

printContextInitInfo() prints nulls on Linux #1133

Open stephengold opened 5 years ago

stephengold commented 5 years ago

jMonkeyEngine application startup messages on Windows 7:

Jul 02, 2019 10:08:03 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.3-alpha2
 * Branch: HEAD
 * Git Hash: 3f1f2e8
 * Build Date: 2019-05-22
Jul 02, 2019 10:08:04 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 2.9.3 context running on thread jME3 Main
 * Graphics Adapter: nvd3dumx,nvwgf2umx,nvwgf2umx
 * Driver Version: 23.21.13.8873
 * Scaling Factor: 1

When I boot Linux Mint 19.1 on the same hardware, the graphics adapter and driver version are described as null:

Jul 02, 2019 10:13:54 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.3-alpha2
 * Branch: HEAD
 * Git Hash: 3f1f2e8
 * Build Date: 2019-05-22
Jul 02, 2019 10:13:56 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 2.9.3 context running on thread jME3 Main
 * Graphics Adapter: null
 * Driver Version: null
 * Scaling Factor: 1

This has been true since at least JME 3.1. Is there some way we can obtain this information on Linux?

Ali-RS commented 5 years ago

Does it also happen with LWJGL3?

I also get null for the graphics adapter and driver version when running on LWJGL2 on Linux Mint but it works fine when running on LWJGL3.

stephengold commented 5 years ago

On my Linux system, LWJGL3 doesn't print a driver version (or scaling factor), but it does print adapter information:

Jul 02, 2019 10:56:16 AM com.jme3.system.JmeDesktopSystem initialize
INFO: Running on jMonkeyEngine 3.3-alpha2
 * Branch: HEAD
 * Git Hash: 3f1f2e8
 * Build Date: 2019-05-22
Jul 02, 2019 10:56:17 AM com.jme3.system.lwjgl.LwjglContext printContextInitInfo
INFO: LWJGL 3.2.1 build 12 context running on thread main
 * Graphics Adapter: GLFW 3.3.0 X11 GLX EGL clock_gettime evdev shared
Jul 02, 2019 10:56:17 AM com.jme3.renderer.opengl.GLRenderer loadCapabilitiesCommon