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

"Invalid value for parameter" error in the latest snapshot build #837

Closed
Ali-RS opened this issue Dec 20, 2022 · 5 comments
Closed

"Invalid value for parameter" error in the latest snapshot build #837

Ali-RS opened this issue Dec 20, 2022 · 5 comments

Comments

@Ali-RS
Copy link

Ali-RS commented Dec 20, 2022

Version

3.3.2 (nightly)

Platform

Linux x64

JDK

Adoptium OpenJDK 19

Module

LWJGL Core, GLFW

Bug description

Hi,

After upgrading to LWJGL 3.3.2-snapshot+8 I am getting this error when running my project. I am using jMonkeyEngine.

It works fine in the LWJGL 3.3.2-snapshot+7 and older versions.

Stacktrace or crash log output

18:02:50,890 ERROR [LegacyApplication] Invalid value for parameter
java.lang.Exception: Invalid value for parameter
	at com.jme3.system.lwjgl.LwjglWindow$1.invoke(LwjglWindow.java:229) [jme3-lwjgl3-3.6.0-SNAPSHOT.jar:3.6.0-SNAPSHOT]
	at org.lwjgl.glfw.GLFWErrorCallbackI.callback(GLFWErrorCallbackI.java:43) [lwjgl-glfw-3.3.2-SNAPSHOT.jar:build 8]
	at org.lwjgl.system.JNI.invokeI(Native Method) ~[lwjgl-3.3.2-SNAPSHOT.jar:build 8]
	at org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:1071) [lwjgl-glfw-3.3.2-SNAPSHOT.jar:build 8]
	at com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:233) [jme3-lwjgl3-3.6.0-SNAPSHOT.jar:3.6.0-SNAPSHOT]
	at com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:582) [jme3-lwjgl3-3.6.0-SNAPSHOT.jar:3.6.0-SNAPSHOT]
	at com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:704) [jme3-lwjgl3-3.6.0-SNAPSHOT.jar:3.6.0-SNAPSHOT]
	at java.lang.Thread.run(Thread.java:1589) [?:?]
18:02:52,590 INFO  [LwjglContext] LWJGL 3.3.2-snapshot+8 context running on thread jME3 Main
 * Graphics Adapter: GLFW 3.4.0 Wayland X11 GLX Null EGL OSMesa monotonic shared
18:02:53,022 INFO  [GLRenderer] OpenGL Renderer Information
 * Vendor: X.Org
 * Renderer: AMD CEDAR (DRM 2.50.0 / 5.4.0-58-generic, LLVM 10.0.0)
 * OpenGL Version: 3.3 (Core Profile) Mesa 20.0.8
 * GLSL Version: 3.30
 * Profile: Core
@Ali-RS
Copy link
Author

Ali-RS commented Dec 21, 2022

I switched JME implementation of GLFWErrorCallback with GLFWErrorCallback.createPrint() to see if I can get a more useful error log. Now the app does not stop and continues to run and here is the error log printed to the output:

[LWJGL] GLFW_INVALID_VALUE error
	Description : Invalid value for parameter
	Stacktrace  :
		org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:1071)
		com.jme3.system.lwjgl.LwjglWindow.createContext(LwjglWindow.java:228)
		com.jme3.system.lwjgl.LwjglWindow.initInThread(LwjglWindow.java:577)
		com.jme3.system.lwjgl.LwjglWindow.run(LwjglWindow.java:699)
		java.base/java.lang.Thread.run(Thread.java:1589)

But what does it mean? which parameter does it refer to?

@Spasi
Copy link
Member

Spasi commented Dec 21, 2022

Hey @Ali-RS,

This error is reporting a bad controller mapping entry. It is harmless, the entry is simply skipped and you can safely ignore the error.

This is supposed to never happen in GLFW, it was my mistake when I updated to the latest SDL_GameControllerDB version. It will go away in the next snapshot. If it can't wait, this fresh GLFW build is fixed.

@Ali-RS
Copy link
Author

Ali-RS commented Dec 21, 2022

Ok, thanks @Spasi

@Spasi
Copy link
Member

Spasi commented Feb 15, 2023

Hey @Ali-RS,

LWJGL 3.3.2-snapshot+9 is now available and this error should be gone. Also updated to latest SDL_GameControllerDB.

@Spasi Spasi closed this as completed Feb 15, 2023
@Ali-RS
Copy link
Author

Ali-RS commented Feb 15, 2023

Great, thank you so much @Spasi

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

No branches or pull requests

2 participants