Rise to Ruins

Rise to Ruins

necroromnt May 23, 2016 @ 2:13pm
Game wan't start on Arch Linux x64
Try launch game with openjdk 7 and openjdk 8

[username@island logs]$ uname -a
Linux island 4.5.4-1-ARCH #1 SMP PREEMPT Wed May 11 22:21:28 CEST 2016 x86_64 GNU/Linux

[username@island logs]$ ./RetroPixelCastles.sh
Exception in thread "main" java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58)
Caused by: java.lang.ExceptionInInitializerError
at rpc.system.ScaleControl.setWorldScale(ScaleControl.java:54)
at rpc.system.ScaleControl.initDisplay(ScaleControl.java:15)
at rpc.system.Game.launchGame(Game.java:81)
at rpc.system.Launcher.main(Launcher.java:50)
... 5 more
Caused by: java.lang.ArrayIndexOutOfBoundsException: 0
at org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)
at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:738)
at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
... 9 more

[username@island logs]$ pwd
/home/username/.local/share/Steam/SteamApps/common/Retro-Pixel Castles/logs

[username@island logs]$ ls
2016-05-24-00-22-19.txt 2016-05-24-00-35-31.txt 2016-05-24-00-50-56.txt
2016-05-24-00-22-46.txt 2016-05-24-00-39-09.txt 2016-05-24-00-54-22.txt
2016-05-24-00-22-51.txt 2016-05-24-00-39-29.txt 2016-05-24-00-54-26.txt
2016-05-24-00-23-55.txt 2016-05-24-00-40-51.txt 2016-05-24-00-57-00.txt
2016-05-24-00-27-30.txt 2016-05-24-00-47-29.txt 2016-05-24-00-57-39.txt
2016-05-24-00-27-57.txt 2016-05-24-00-47-42.txt 2016-05-24-00-57-46.txt
2016-05-24-00-29-04.txt 2016-05-24-00-49-45.txt 2016-05-24-01-02-20.txt
2016-05-24-00-29-39.txt 2016-05-24-00-49-56.txt
2016-05-24-00-35-18.txt 2016-05-24-00-50-49.txt

[username@island logs]$ cat ./*
Failed to load graphics properties file, resetting to default!

[username@island logs]$ pacman -Ss openjdk
extra/jdk7-openjdk 7.u101_2.6.6-1 [установлен]
OpenJDK Java 7 development kit
extra/jdk8-openjdk 8.u92-1 [установлен]
OpenJDK Java 8 development kit
extra/jre7-openjdk 7.u101_2.6.6-1 [установлен]
OpenJDK Java 7 full runtime environment
extra/jre7-openjdk-headless 7.u101_2.6.6-1 [установлен]
OpenJDK Java 7 headless runtime environment
extra/jre8-openjdk 8.u92-1 [установлен]
OpenJDK Java 8 full runtime environment
extra/jre8-openjdk-headless 8.u92-1 [установлен]
OpenJDK Java 8 headless runtime environment
extra/openjdk7-doc 7.u101_2.6.6-1
OpenJDK Java 7 documentation
extra/openjdk7-src 7.u101_2.6.6-1
OpenJDK Java 7 sources
extra/openjdk8-doc 8.u92-1
OpenJDK Java 8 documentation
extra/openjdk8-src 8.u92-1
OpenJDK Java 8 sources

[установлен] read as [installed]
default java-7-openjdk
Last edited by necroromnt; May 23, 2016 @ 2:14pm
< >
Showing 1-2 of 2 comments
Rayvolution  [developer] May 23, 2016 @ 2:45pm 
Hrm, it seems to be crashing on Display.getWidth(). But Display.getWidth() is part of LWJGL, a third party library most Java game developers user for OpenGL bindings.

Do you have any trouble running other Java based OpenGL games, like Minecraft, Project Zomboid or Towns?

I have had a few isolated reports that LWJGL has trouble getting the Display's width/height in some multimonitor or custom configurations in Linux. If you have anything out of the ordinary, like an overclocked monitor, you could try resetting it back to default.

There was one bug report a while back where the user's second monitor was confusing OpenGL (or OpenJDK), when he unplugged the secondary monitor RPC booted up just fine. Obviously that's not an ideal situation, but at least we can get the game running. :)

Some other options you can try;
- Try running the game directly, via RetroPixelCastles.sh or core.jar
- Try installing Oracle's JDK instead.
- Update the graphics drivers. It's possible your version may have a stray OpenGL bug.
necroromnt May 23, 2016 @ 10:17pm 
Thank you! :steamhappy:

Problem was resolved with install xorg-xrandr
Page with another advices https://bbs.archlinux.org/viewtopic.php?id=184190
< >
Showing 1-2 of 2 comments
Per page: 1530 50