Destination Sol

Destination Sol

 This topic has been pinned, so it's probably important
SimonC4  [developer] Jul 7, 2015 @ 5:38pm
FIX: Game Not Starting in Linux with 2 Graphics Cards
If the game is not starting for you and you are running Linux and have multiple graphics cards, then this fix might help you out.

  1. Download lwjgl.jar from here[github.com].
  2. Open ~/.steam/steam/steamapps/common/Destination Sol/libs
  3. Replace lwjgl-2.9.2.jar with the jar file downloaded in step 1. Make sure the new file is named correctly.

You should be able to start your game from within Steam.

< >
Showing 1-4 of 4 comments
koala 🐨 Jul 23, 2015 @ 11:18am 
Hello! I just ran into that problem on my notebook (desktop Linux worked fine, lovely game!) and tried what was described above. Sadly, that didn't work. I also created a settings.ini by copying and adjusting the one that was created on my desktop Linux (no settings.ini was created by launching the game on my notebook), which still did not change anything. Meanwhile, there was no log output whatsoever on the console other than the usual Steam stuff.

I'm going to give it a try with the Github version when I can, but I thought I'd let you know.


[edit] I just started the game using sol.sh in the Steam directory and finally got some log output:

LwjglApplication: Couldn't initialize audio, disabling audio java.lang.UnsatisfiedLinkError: /tmp/libgdxkoala/1c78875b/liblwjgl.so: libXrandr.so.2: Kann die Shared-Object-Datei nicht öffnen: Datei oder Verzeichnis nicht gefunden at java.lang.ClassLoader$NativeLibrary.load(Native Method) at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1937) at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1822) at java.lang.Runtime.load0(Runtime.java:809) at java.lang.System.load(System.java:1086) at org.lwjgl.Sys$1.run(Sys.java:70) at java.security.AccessController.doPrivileged(Native Method) at org.lwjgl.Sys.doLoadLibrary(Sys.java:66) at org.lwjgl.Sys.loadLibrary(Sys.java:96) at org.lwjgl.Sys.<clinit>(Sys.java:117) at org.lwjgl.openal.AL.<clinit>(AL.java:59) at com.badlogic.gdx.backends.lwjgl.audio.OpenALAudio.<init>(OpenALAudio.java:72) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:83) at com.badlogic.gdx.backends.lwjgl.LwjglApplication.<init>(LwjglApplication.java:64) at com.miloshpetrov.sol2.desktop.SolDesktop.main(SolDesktop.java:57) Exception in thread "LWJGL Application" java.lang.NoClassDefFoundError: Could not initialize class org.lwjgl.Sys at org.lwjgl.opengl.Display.<clinit>(Display.java:135) at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:446) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:118)

The German stuff at the beginning translates to "Can't open the shared object file: file or directory not found".

When I run the game with my installed JRE (Oracle Java 8), the output looks like this:

Exception in thread "LWJGL Application" java.lang.ExceptionInInitializerError at com.badlogic.gdx.backends.lwjgl.LwjglGraphics.setVSync(LwjglGraphics.java:446) at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:118) Caused by: java.lang.ArrayIndexOutOfBoundsException: 0 at org.lwjgl.opengl.XRandR.findPrimary(XRandR.java:344) at org.lwjgl.opengl.XRandR.ScreentoDisplayMode(XRandR.java:333) at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:746) at org.lwjgl.opengl.LinuxDisplay$3.run(LinuxDisplay.java:743) at java.security.AccessController.doPrivileged(Native Method) at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:743) at org.lwjgl.opengl.Display.<clinit>(Display.java:138) ... 2 more AL lib: (EE) alc_cleanup: 1 device not closed
Last edited by koala 🐨; Jul 23, 2015 @ 12:14pm
cervator  [developer] Jul 23, 2015 @ 9:49pm 
Thanks for the report! So just to be sure what you're doing, you've replaced the LWJGL file with the workaround, but that then triggers an issue with an audio library file? I've linked to here on the related GitHub issue so we can look at it sometime.

Probably we need to sort out the LWJGL/LibGDX situation so we don't need the workaround, and see if this still happens. That may take a little bit though.
SimonC4  [developer] Jul 24, 2015 @ 2:39am 
What version of linux are you using?

I'm fairly certain that in the bottom output you posted the cause of this issue is the two graphics cards. Could try the fix in the original post and try running with your local java again and posting the output.

You could also try opening a terminal and running sol64.sh from the Steam folder. This launches the game with the 64-bit java.
koala 🐨 Jul 24, 2015 @ 12:57pm 
I moved further discussion of my particular problem over to GitHub[github.com].
< >
Showing 1-4 of 4 comments
Per page: 1530 50