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

Unciv not launching #12379

Closed
1 task done
meyou69 opened this issue Oct 30, 2024 · 5 comments
Closed
1 task done

Unciv not launching #12379

meyou69 opened this issue Oct 30, 2024 · 5 comments
Labels

Comments

@meyou69
Copy link

meyou69 commented Oct 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Game Version

4.14.1

Describe the bug

When launching the game, the game does not load and exits immediately.

Not even a window appears at all on my desktop.

Please note: I am specifically talking about the flatpak version of the game

Steps to Reproduce

  1. Load the game page in Discover
  2. Press the Launch button (the game needs to be installed beforehand)
  3. Wait a couple of seconds
  4. Nothing happens

Alternatively, you can also try to launch the game from the command line, where the following error appears:

(base) alex@fedora:~$ /usr/bin/flatpak run --branch=stable --arch=x86_64 --command=unciv io.github.yairm210.unciv
[LWJGL] GLFW_PLATFORM_ERROR error
        Description : Wayland: Failed to connect to display
        Stacktrace  :
                org.lwjgl.glfw.GLFW.glfwInit(GLFW.java:1109)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.initializeGlfw(Lwjgl3Application.java:89)
                com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration.getPrimaryMonitor(Lwjgl3ApplicationConfiguration.java:281)
                com.unciv.app.desktop.DesktopScreenMode$Companion.getMaximumWindowBounds$desktop$default(DesktopDisplay.kt:85)
                com.unciv.app.desktop.DesktopLauncher.main(DesktopLauncher.kt:82)
Exception in thread "main" com.badlogic.gdx.utils.GdxRuntimeException: Unable to initialize GLFW
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.initializeGlfw(Lwjgl3Application.java:90)
        at com.badlogic.gdx.backends.lwjgl3.Lwjgl3ApplicationConfiguration.getPrimaryMonitor(Lwjgl3ApplicationConfiguration.java:281)
        at com.unciv.app.desktop.DesktopScreenMode$Companion.getMaximumWindowBounds$desktop$default(DesktopDisplay.kt:85)
        at com.unciv.app.desktop.DesktopLauncher.main(DesktopLauncher.kt:82)

Screenshots

No response

Link to save file

No response

Operating System

Linux

Additional Information

The operating system that I was using was Fedora KDE Spin version 40. Since then, I have upgraded to Fedora KDE Spin version 41. The bug reproduces on both of them, equally

@meyou69 meyou69 added the bug label Oct 30, 2024
@FilipRank
Copy link

FilipRank commented Oct 30, 2024

I have the same issue with 1.14.1 (jar) on my Mac. 1.14.0 works without issues.

@nintyfan
Copy link

Same error on Wayland.

Temporary solution: Start new terminal emulator window and type:

unset WAYLAND_DISPLAY
flatpak run io.github.yairm210.unciv && exit

@meyou69
Copy link
Author

meyou69 commented Oct 30, 2024

Same error on Wayland.

Temporary solution: Start new terminal emulator window and type:

unset WAYLAND_DISPLAY
flatpak run io.github.yairm210.unciv && exit

I can confirm that this solution worked for me.

A long term solution is still needed, though

@yairm210
Copy link
Owner

Looks like this is a problem with the latest LibGDX version which I just updated
libgdx/libgdx#7495
I'll revert this change in next version

@yairm210
Copy link
Owner

Resolved with 0c6ae89

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

No branches or pull requests

4 participants