• EditorBugs
  • Spine Trial Not Working Under Fedora 42

Problem statement

Hi, I'm trying to get the Spine trial to run on Fedora 42 (wayland), and I get an error initializing the OpenGL display and telling me to install x11-xserver-utils. I've tried to install the dnf versions of those packages, but that still doesn't seem to work. I feel like I'm just forgetting to install a very simple package, but I can't figure out what it is.

I have not tested with x11, since I have other apps installed that need wayland.

Currently on a Thinkpad X1C (i7 i55u) with intel graphics.

Describe: 1) what you have tried, 2) what you expected, and 3) what actually happened.
I've tried installing opengl and libxrandr packages

  • OpenGL version string: 4.6 (Compatibility Profile) Mesa 25.0.3
  • libXrandr-1.5.4-5.fc42.x86_64
  • Installed a bunch of other x-server related packages just in case
  • Error still occurs after rebooting

Funnily, I also tried running the windows version of Spine under Bottles (a wrapper around the wine compatibility layer), and it seems to work albeit with some performance issues

Give step-by-step instructions so we can reproduce the problem, if possible.

  • On Fedora 42, download and run SpineTrial.sh

Editor information

Tell us your Spine Editor version.
Spine Launcher 4.3.01 Trial

Spine Launcher 4.3.01 Trial
Esoteric Software LLC (C) 2013-2025 | http://esotericsoftware.com
Linux amd64 6.14.2-300.fc42.x86_64
ERROR: Unable to create the OpenGL display.
[error] Error starting launcher.
   at s.txc._(_:220)
   <events>
Cause: [error] Error initializing the OpenGL display.
   at s.mSb.L(_:85)
   at com.esotericsoftware.spine.launcher.Launcher.L(_:135)
   at com.esotericsoftware.spine.launcher.Launcher.<init>(_:50)
   at s.txc._(_:218) ...
Cause: [NoClassDefFoundError] Could not initialize class s.KRd
   at jdk.internal.misc.Unsafe.ensureClassInitialized0(Native Method)
   at jdk.internal.misc.Unsafe.ensureClassInitialized(Unknown Source)
   at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(Unknown Source)
   at java.lang.invoke.DirectMethodHandle$EnsureInitialized.computeValue(Unknown Source)
   at java.lang.ClassValue.getFromHashMap(Unknown Source)
   at java.lang.ClassValue.getFromBackup(Unknown Source)
   at java.lang.ClassValue.get(Unknown Source)
   at java.lang.invoke.DirectMethodHandle.checkInitialized(Unknown Source)
   at java.lang.invoke.DirectMethodHandle.ensureInitialized(Unknown Source)
   at java.lang.invoke.DirectMethodHandle.internalMemberNameEnsureInit(Unknown Source)
   at s.mSb.L(_:83) ...
ERROR: Please note libxrandr that is required, for example:
ERROR: sudo apt-get install x11-xserver-utils
Related Discussions
...

It seems like you're encountering an issue with initializing the OpenGL display on Fedora 42, which is often related to missing or incompatible libraries. The error message suggests that libxrandr is required, which you have already installed. However, the problem might be related to the specific version of the library or other dependencies. Since you are using Intel graphics, ensure that you have the latest Mesa drivers installed, as they provide the OpenGL implementation for Intel GPUs. Additionally, you might want to try setting the environment variable LIBGL_ALWAYS_SOFTWARE=1 before running Spine to force software rendering, which can sometimes bypass issues with hardware acceleration. You can do this by running the following command in your terminal:

export LIBGL_ALWAYS_SOFTWARE=1
./SpineTrial.sh

If the issue persists, it might be worth checking if there are any specific Fedora packages or configurations that could be affecting OpenGL initialization, or trying a different version of the Spine launcher if available.

Thanks for your reply!
I've already installed the latest Mesa drivers:

mesa-dri-drivers.x86_64                              25.0.3-2.fc42
mesa-filesystem.x86_64                               25.0.3-2.fc42
mesa-libEGL.x86_64                                   25.0.3-2.fc42
mesa-libGL.x86_64                                    25.0.3-2.fc42
mesa-libGLU.x86_64                                   9.0.3-6.fc42
mesa-libgbm.x86_64                                   25.0.3-2.fc42
mesa-va-drivers.x86_64                               25.0.3-2.fc42
mesa-vulkan-drivers.x86_64                           25.0.3-2.fc42

Tried adding LIBGL_ALWAYS_SOFTWARE=1 in the SpineTrial.sh too, and it still does not work.

Where would I get another version of the Spine launcher? I can see the changelog but can't find the downloads anywhere.

Sorry you are having trouble!

It probably doesn't help, but the crash happens in the static initialization of this Display class, probably these lines:
LWJGL/lwjglblob/2df01dd762e20ca0871edb75daf670ccacc89b60/src/java/org/lwjgl/opengl/Display.java#L135-L136
The native libraries are already loaded, so the second line is more likely.

The "libxrandr required" message is shown if anything goes wrong in the Display class static init, as that's usually the issue. It is not checking specifically that libxrandr missing is the issue.

Only the latest trial is available for download. We could dig up older versions if necessary. Please try this first:
Verify you have xrandr binaries: rpm -q xrandr
If not, install: sudo dnf install xrandr
Maybe: sudo dnf install xorg-x11-server-Xwayland
Check: sudo dnf whatprovides '*/libXrandr.so*'
Check for Xwayland or RandR errors: journalctl --user --boot

Xrandr was already installed on this computer, ran the dnf install commands again just to make sure.

However I tried running on my second computer running a fresh Fedora 42 install and it seems to work there. So this seems to be an issue with my setup somewhere, might have messed up something while upgrading fedora versions, will do a fresh OS install.

Thank you for your help!