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

GdxRuntimeException: Couldn't create window #7139

Closed
1 of 6 tasks
isHarryh opened this issue May 7, 2023 · 3 comments
Closed
1 of 6 tasks

GdxRuntimeException: Couldn't create window #7139

isHarryh opened this issue May 7, 2023 · 3 comments
Labels
bug LWJGL3 third-party? May be caused by a third-party library

Comments

@isHarryh
Copy link

isHarryh commented May 7, 2023

Issue details

When one of my app's users tried to initialize the Lwjgl app, he got a GdxRuntimeException: Couldn't create window. However, when launched in other computers, it works very well.

It may be a rare problem of some particular computers. Could you tell me how to continue my investigation into this problem?

Reproduction steps/code

It is not reproducable, since this exception has only occurred in my user's computer. Btw, my app project is ArkPets.

Version of libGDX

  • libGDX 1.11.0

Stacktrace

// OS: Windows 10 (amd64), with Java 20.0.1

com.badlogic.gdx.utils.GdxRuntimeException: Couldn't create window
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:527)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:462)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:448)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:162)
	at cn.harryh.arkpets.EmbeddedLauncher.main(EmbeddedLauncher.java:70)

Here the exception threw:
https://github.com/libgdx/libgdx/blob/1.11.0/backends/gdx-backend-lwjgl3/src/com/badlogic/gdx/backends/lwjgl3/Lwjgl3Application.java#L527

Affected platforms

  • Android
  • iOS
  • HTML/GWT
  • Windows
  • Linux
  • macOS
@crykn
Copy link
Member

crykn commented May 17, 2023

You could try to see whether GLFW has anything useful to say about the error, either via GLFW#glfwGetError(...) or by setting an error callback (GLFW#glfwSetErrorCallback(...)). The possible error codes can be found here.

@isHarryh
Copy link
Author

I let my user outputting the GLFW error, read:

(Code 65542) WGL: The driver does not appear to support OpenGL

My user's graphic card is AMD Radeon(TM) Graphics with the driver version 27.20.21030.8001.

@crykn crykn added bug LWJGL3 third-party? May be caused by a third-party library labels May 20, 2023
@crykn
Copy link
Member

crykn commented May 20, 2023

The driver seems to be over one and a half years old, so maybe updating does fix the issue. Anyways, this is a third-party issue, so there is nothing really we can do about it.

@crykn crykn closed this as completed May 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug LWJGL3 third-party? May be caused by a third-party library
Projects
None yet
Development

No branches or pull requests

2 participants