protonscr

Slay the Spire crashes with `org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes` exception

protonclosed
ValveSoftware/Proton#8222 · opened 2024-11-08 by ntBre · updated 2024-11-08 · 2 comments · github
NntBre 2024-11-08 github

Compatibility Report

  • Name of the game with compatibility issues: Slay the Spire
  • Steam AppID of the game: 646570

System Information

  • GPU: AMD Radeon Graphics
  • Video driver version: Mesa 24.2.6
  • Kernel version: Linux 6.11.6
  • Proton version: N/a(?) See below

I confirm:

  • [x] that I haven't found an existing compatibility report for this game.
  • [x] that I have checked whether there are updates for my system available.

I also tried submitting a support request through Steam since I'm not sure this is a Proton-specific issue, but the response I got redirected me here.

Symptoms

Slay the Spire suddenly fails to launch through Steam but runs fine by invoking the executable directly through the command line. stderr for Steam reports this exception:

Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError
    at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:558)
    at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:124)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
    at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:954)
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 2 more

I'm on Arch Linux and have been playing StS fine for months. I hadn't updated my Arch Linux computer in a couple of weeks and played StS two days ago, but I saw Steam update when I first opened it today and then the game wouldn't launch. Other games are working fine, but StS won't launch either as a native game (as I usually play) or through the couple of Proton versions I tested (experimental, and the most recent numbered version). After encountering an issue, I did update my Arch packages and restarted both my computer and Steam multiple times to no avail.

In searching this error message, I found that some people reported needing to install xrandr, but I definitely have xrandr installed and use it to set up my displays in my .xinitrc. I also tried removing info.displayconfig as suggested here, as well as modifying it with various values. I also tried changing the resolution after opening the game from the command line, both using the normal executable and SlayTheSpireTroubleshoot.sh. Finally, I tried setting XDG_SESSION_TYPE to x11 as suggested here, but that also didn't work. I didn't try setting it in my .xinitrc or anything, but I tried adding XDG_SESSION_TYPE=x11 as a launch option and setting it when invoking steam.

Reproduction

Try to open Slay the Spire on the most recent version of Steam on Linux.

I hope this is the right place to report this. I know much of my debugging sounds like this is a game-specific issue, but the fact that it happened immediately after the Steam update and that the game launches fine without Steam makes me think it's some kind of Steam issue. Let me know if you need any more information!

Kkisak-valve maintainer 2024-11-08 github

Hello @ntBre, this issue is already being tracked at https://github.com/ValveSoftware/steam-runtime/issues/702 and Proton is not involved in this specific issue.

Closing as a duplicate.

NntBre 2024-11-08 github

Ah makes sense, thank you! Sorry for the noise. I didn't realize Steam had so many packages on GitHub, this is great!