• Bugs
  • Spine not launching under Linux

Related Discussions
...

[Solved]
Hello,

When launching Spine, I get an error :

Spine Launcher 3.7.30
Esoteric Software LLC (C) 2013-2018
Linux amd64 4.17.14-arch1-1-ARCH
Up to date: Spine 3.6.53
Spine 3.6.53 Essential
Licensed to: <removed> java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at com.esotericsoftware.spine.editor.Editor.a(SourceFile:1481)
at com.esotericsoftware.spine.editor.Editor.main(SourceFile:1440)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at tzax.C.run(SourceFile:1956)
at java.desktop/java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.desktop/java.awt.EventQueue.access$600(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
at java.base/java.security.AccessController.doPrivileged(Native Method)
at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.RuntimeException: Error initializing the OpenGL display. Please note libxrandr is required, eg:
sudo apt-get install x11-xserver-utils
at mT.run(SourceFile:109)
... 25 more
Caused by: java.lang.ExceptionInInitializerError
at mT.run(SourceFile:106)
... 25 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(SourceFile:954)
at org.lwjgl.opengl.LinuxDisplay.init(SourceFile:738)
at org.lwjgl.opengl.Display.<clinit>(SourceFile:138)
... 26 more

I am under Archlinux and libxrandr is installed and up to date (version 1.5.1-2).

What else can cause this error?
[Solved] I installed several packages and modified several configuration files, and it works now! I think the main problem was that the package xorg-xrandr was not installed, only libxrandr was.

Glad you got it working!

4 anni dopo

Hi. I'm using Fedora 36. I got this libxrandr needs to be installed message even though it was installed. After installing just xrandr I got spine working. Maybe this gets installed automatically in Ubuntu. Hopefully this helps someone else using Fedora.

  • qua3ro ha risposto a questo messaggio
  • qua3ro ha messo mi piace.
    2 anni dopo

    RhythmPattern I also use fedora. I am a beginner user in Linux. I unpacked the program and launched the file - Spine.sh. The program launched, but when I closed it, the program shortcut was not in the installation programs. How do you launch Spine?

    • Luke ha risposto a questo messaggio
      • Modificato

      qua3ro Hi, is the Spine.sh script still in the folder that you unpacked the "Spine.tar.gz" archive to? Open a terminal, navigate to the folder you unpacked the Spine archive to (the folder is probably called "Spine", and it's probably in your Downloads folder), and run the command ./Spine.sh from within the Spine folder.

      You can also create a .desktop file for Spine's CLI script so that you don't have to navigate to the folder and manually execute the script every time. You can find out more info about creating .desktop files here:
      https://unix.stackexchange.com/questions/103213/how-can-i-add-an-application-to-the-gnome-application-menu