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

(GDX-Liftoff crashing FIXED) Missing custom rocket logo on KDE 6 Wayland #206

Open
akkanben opened this issue Oct 23, 2024 · 9 comments
Open

Comments

@akkanben
Copy link

akkanben commented Oct 23, 2024

There appears to be an issue with configuration or implementation of GLFW in GDX-Liftoff 1.13 with regards to Wayland. I am able to launch the configuration tool if I login to my system with X11. I can also successfully launch the tool's previous version 1.12.1.17.

06:01:18 ben@zopilote-machine gdx-liftoff-1.13.0.0-linuxX64 → java -jar gdx-liftoff-1.13.0.0.jar 
[LWJGL] GLFW_PLATFORM_ERROR error
	Description : EGL: Failed to clear current context: An EGLDisplay argument does not name a valid EGL display connection
	Stacktrace  :
		org.lwjgl.glfw.GLFW.nglfwCreateWindow(GLFW.java:2093)
		org.lwjgl.glfw.GLFW.glfwCreateWindow(GLFW.java:2258)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:521)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:451)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:437)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:149)
		gdx.liftoff.Main.main(Main.java:205)
[LWJGL] GLFW_FEATURE_UNAVAILABLE error
	Description : Wayland: The platform does not support setting the window position
	Stacktrace  :
		org.lwjgl.glfw.GLFW.glfwSetWindowPos(GLFW.java:2536)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:542)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:451)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:437)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:149)
		gdx.liftoff.Main.main(Main.java:205)
[LWJGL] GLFW_FEATURE_UNAVAILABLE error
	Description : Wayland: The platform does not support setting the window icon
	Stacktrace  :
		org.lwjgl.glfw.GLFW.nglfwSetWindowIcon(GLFW.java:2435)
		org.lwjgl.glfw.GLFW.glfwSetWindowIcon(GLFW.java:2467)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.setIcon(Lwjgl3Window.java:351)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.setIcon(Lwjgl3Window.java:319)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createGlfwWindow(Lwjgl3Application.java:552)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:451)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.createWindow(Lwjgl3Application.java:437)
		com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:149)
		gdx.liftoff.Main.main(Main.java:205)

My system details:

Operating System: EndeavourOS 
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.4-arch2-1 (64-bit)
Graphics Platform: Wayland
Processors: 8 × Intel® Core™ i7-6700 CPU @ 3.40GHz
Memory: 15.6 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1080 Ti/PCIe/SSE2
Manufacturer: Gigabyte Technology Co., Ltd.
Product Name: Z170MX-Gaming 5

Edit to add Java details:

06:23:00 ben@zopilote-machine gdx-liftoff-1.13.0.0-linuxX64 → java --version
openjdk 17.0.12 2024-07-16
OpenJDK Runtime Environment Temurin-17.0.12+7 (build 17.0.12+7)
OpenJDK 64-Bit Server VM Temurin-17.0.12+7 (build 17.0.12+7, mixed mode, sharing)
@SonicGDX
Copy link

Interesting. For me it loads and seems to work properly, though I get all those errors in the terminal except the first one.

My system info:

Operating System: openSUSE Tumbleweed 20241018
KDE Plasma Version: 6.2.1
KDE Frameworks Version: 6.7.0
Qt Version: 6.8.0
Kernel Version: 6.11.3-1-default (64-bit)
Graphics Platform: Wayland

@SonicGDX
Copy link

SonicGDX commented Oct 23, 2024

Seems the EGLDisplay error may be an NVIDIA specific issue (my system uses an AMD GPU)? Try setting the environment variable detailed here when running the jar: see wired-tomato/WayGL#1 (comment) and glfw/glfw#2510

As for why the previous version works, it may be due to LWJGL3 being updated from 3.3.3 to 3.3.4 since 1.21.1.17
c11f7af

@akkanben
Copy link
Author

Thank you for the tip! Setting __GL_THREADED_OPTIMIZATIONS=0 avoids the crash for me during launch. Like you mentioned I also still see the GLFW feature unavailable errors but the EGLDisplay error is gone.

A couple minor issues I still see (that are not present when I use 13.0 under X11 or 1.12 under Wayland) are:

  1. The custom gdx-liftoff icon is not visible
  2. Resizing the window is very laggy.

That said, I'm going to presume the root cause here will get ironed out with future Nvidia driver updates. Closing the issue, just let me know if there is any other reason to reopen.

@SonicGDX
Copy link

SonicGDX commented Oct 23, 2024

Hmm, resizing the window seems to have higher latency but is smoother on 13 for me, but like you the custom icon is not visible on 13 for me while it is on 12. I think the issue might be worth reopening for that (though maybe with a changed title), as that seem to be a regression for Wayland in general rather than an NVIDIA specific issue

@SonicGDX
Copy link

SonicGDX commented Oct 23, 2024

Also @tommyettinger it might be worth mentioning the NVIDIA issue and associated fix somewhere in the documentation, as it may take some time for NVIDIA to fix the driver issue

@akkanben akkanben changed the title GDX-Liftoff crashing on KDE 6 Wayland ~~GDX-Liftoff crashing~~ Missing custom rocket logo on KDE 6 Wayland Oct 23, 2024
@akkanben akkanben changed the title ~~GDX-Liftoff crashing~~ Missing custom rocket logo on KDE 6 Wayland (GDX-Liftoff crashing FIXED) Missing custom rocket logo on KDE 6 Wayland Oct 23, 2024
@akkanben
Copy link
Author

Reopening this to address the remaining issue related to the missing GDX-Liftoff logo. Like previously stated the logo is visible under X11 with release 13.0 or under Wayland with earlier releases like 1.12.1.17.

@akkanben akkanben reopened this Oct 23, 2024
@tommyettinger
Copy link
Member

So I don't think I even know what Wayland actually is; I have only seen compatibility issues with it. I didn't really follow what the steps are to resolve an unclear bug with some kind of system I'm not familiar with. If I edit the README.md myself to mention this, expect it to be horrifically mangled and loaded with inaccuracies. PRs welcome!

I don't really think the logo (did you mean icon?) missing from a setup tool affects generated projects, unless I'm understanding this wrong. If you're using Linux you have to be used to some apps looking wrong... Or not looking at all, if they're purely CLI. The logo or icon missing may simply be part of LWJGL 3.3.4's various changes, which I can't do much about. I might have removed the icon setting code in some launchers because there were issues with loading assets from the folder they are normally in. I don't really remember. That may have been in my own projects.

@tommyettinger
Copy link
Member

Can anyone verify if this is an issue with 1.13.0.1 ? It downgrades the version of libGDX that Liftoff uses to 1.12.1, which seems to work better on Wayland.

@SonicGDX
Copy link

SonicGDX commented Dec 6, 2024

Can anyone verify if this is an issue with 1.13.0.1 ? It downgrades the version of libGDX that Liftoff uses to 1.12.1, which seems to work better on Wayland.

It's not an issue with 1.13.0.1 yeah. It behaves the same way as Liftoff 1.12.1.17

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

3 participants