Rusted Warfare - RTS

Rusted Warfare - RTS

[SOLVED][LINUX] Game segfaults when being launched
Dear Support,

unfortunately the game does crash when being launched. How do I force it to use system jvm instead? Is openjdk supported?

Thanks for your help!

Crashlog
GameAction [AppID 647960, ActionID 3] : LaunchApp changed task to SynchronizingCloud with "" GameAction [AppID 647960, ActionID 3] : LaunchApp changed task to SiteLicenseSeatCheckout with "" GameAction [AppID 647960, ActionID 3] : LaunchApp changed task to CreatingProcess with "" GameAction [AppID 647960, ActionID 3] : LaunchApp waiting for user response to CreatingProcess "" GameAction[AppID 647960, ActionID 3] : LaunchApp continues with user response "CreatingProcess" Opted-in Controller Mask: 1 Game update: AppID 647960 "Rusted Warfare - RTS", ProcID 2687, IP 0.0.0.0:0 >>> Adding process 2687 for game ID 647960 GameAction [AppID 647960, ActionID 3] : LaunchApp changed task to WaitingGameWindow with "" ERROR: ld.so: object '/home/gandalf/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/gandalf/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. ERROR: ld.so: object '/home/gandalf/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. GameAction [AppID 647960, ActionID 3] : LaunchApp changed task to Completed with "" Using embedded jvm args: -steam ERROR: ld.so: object '/home/gandalf/.local/share/Steam/ubuntu12_32/gameoverlayrenderer.so' from LD_PRELOAD cannot be preloaded (wrong ELF class: ELFCLASS32): ignored. >>> Adding process 2688 for game ID 647960 >>> Adding process 2689 for game ID 647960 >>> Adding process 2690 for game ID 647960 2017-11-09 13:34:29.418: Reading args 2017-11-09 13:34:29.420: OS name: Linux 2017-11-09 13:34:29.420: OS version: 4.13.8-1-ARCH 2017-11-09 13:34:29.519: LWJGL version: 2.9.3 2017-11-09 13:34:29.519: Build Number: #24 2017-11-09 13:34:29.519: JVM maxMemory:1836580864 2017-11-09 13:34:29.519: JVM totalMemory:124780544 2017-11-09 13:34:29.519: JVM freeMemory:118928360 2017-11-09 13:34:29.521: Early steam init 2017-11-09 13:34:29.521: SteamEngine - java steamEngine init() steam librarySystemPath name:/tmp/steamworks4j/26e9cd51/47b07ce6-ec27-4e1b-8fec-749c394f7328 steam extractLibrary name:libsteam_api64.so steam extractLibrary name:libsteamworks4j64.so Game update: AppID 647960 "Rusted Warfare - RTS", ProcID 2690, IP 0.0.0.0:0 Setting breakpad minidump AppID = 647960 Steam_SetMinidumpSteamID: Caching Steam ID: 76561197992279386 [API loaded no] 2017-11-09 13:34:29.546: Early steam init done. corroding: nativePollOnce:100,0 >>> Adding process 2708 for game ID 647960 2017-11-09 13:34:29.816: uncaughtException start 2017-11-09 13:34:29.816: gameEngine:uncaughtExceptionHandler 2017-11-09 13:34:29.816: java.lang.ExceptionInInitializerError 2017-11-09 13:34:29.816: cause:java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ExceptionInInitializerError at com.corrodinggames.rts.java.Main.a(SourceFile:562) at com.corrodinggames.rts.java.Main.main(SourceFile:115) 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) ... 2 more 2017-11-09 13:34:29.817: CustomExceptionHandler: no game 2017-11-09 13:34:29.817: CustomExceptionHandler: defaultUEH==null Game removed: AppID 647960 "Rusted Warfare - RTS", ProcID 2690

System
Kernel: 4.13.8-1-ARCH x86_64 lspci -nnk | grep -i VGA -A2 lspci: Unable to load libkmod resources: error -12 01:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Ellesmere [Radeon RX 470/480/570/580] [1002:67df] (rev c7) Subsystem: Micro-Star International Co., Ltd. [MSI] Radeon RX 480 [1462:3413] Kernel driver in use: amdgpu glxinfo | grep 'OpenGL version string' OpenGL version string: 3.0 Mesa 17.2.4
Last edited by I use arch btw; Nov 9, 2017 @ 1:14pm
< >
Showing 1-8 of 8 comments
corrodinggames  [developer] Nov 9, 2017 @ 5:29am 
You can move the 'jvm-linux' folder or edit rustedWarfareLinux.sh to make it use the system java jvm but I don't think that will fix your problem.

It looks like 'org.lwjgl.opengl.LinuxDisplay.getAvailableDisplayModes(LinuxDisplay.java:951)' is returning an empty list which is quite odd and not handled nicely by the low level libraries. Which would mean you have no possible 3d display modes. Do you have any problems with other 3d games?

Could you try running 'rustedWarfareLinux.sh' directly outside of steam to rule out steam going something weird with libraries. Also if the game worked before try deleting preferences.ini in the game's folder to reset your display settings.
I use arch btw Nov 9, 2017 @ 6:50am 
Thanks for your instant response. Unfortunately running the game directly (what I already tried as well before) has the same troubles it seems:

▶ ./rustedWarfareLinux.sh Using embedded jvm args: 2017-11-09 15:48:27.476: Reading args 2017-11-09 15:48:27.477: OS name: Linux 2017-11-09 15:48:27.478: OS version: 4.13.11-1-ARCH 2017-11-09 15:48:27.591: LWJGL version: 2.9.3 2017-11-09 15:48:27.591: Build Number: #24 2017-11-09 15:48:27.592: JVM maxMemory:1836580864 2017-11-09 15:48:27.592: JVM totalMemory:124780544 2017-11-09 15:48:27.592: JVM freeMemory:118927648 2017-11-09 15:48:27.592: steam not requested corroding: nativePollOnce:100,0 2017-11-09 15:48:27.870: uncaughtException start 2017-11-09 15:48:27.870: gameEngine:uncaughtExceptionHandler 2017-11-09 15:48:27.871: java.lang.ExceptionInInitializerError 2017-11-09 15:48:27.871: cause:java.lang.ArrayIndexOutOfBoundsException: 0 java.lang.ExceptionInInitializerError at com.corrodinggames.rts.java.Main.a(SourceFile:562) at com.corrodinggames.rts.java.Main.main(SourceFile:115) 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) ... 2 more 2017-11-09 15:48:27.872: CustomExceptionHandler: no game 2017-11-09 15:48:27.872: CustomExceptionHandler: defaultUEH==null

Any other gaming that used to run before still seems to run. I tried Mad Max, Cities: Skylines and Dota 2 for now.

EDIT: As you said, using the system JVM doesn't solve the problem.
Last edited by I use arch btw; Nov 9, 2017 @ 6:51am
I use arch btw Nov 9, 2017 @ 7:05am 
For a minute I thought I may have a chance to solve the issue, since you mentioned the problem seem to be related to missing displays. I actually had "Multi GPU Display" enabled in the UEFI, which activates the internal graphics in addition to the external one. I disabled this feature, but still no luck.

Do you have any further ideas?

Output of xrandr
▶ xrandr Screen 0: minimum 320 x 200, current 5760 x 1080, maximum 16384 x 16384 DP-1 disconnected (normal left inverted right x axis y axis) DP-2 disconnected (normal left inverted right x axis y axis) HDMI-1 connected 1920x1080+3840+0 (normal left inverted right x axis y axis) 160mm x 90mm 1920x1080 60.00*+ 50.00 59.94 30.00 25.00 24.00 29.97 23.98 1920x1080i 60.00 50.00 59.94 1600x1200 75.00 70.00 65.00 60.00 1680x1050 59.88 1400x1050 74.76 59.98 1280x1024 75.02 60.02 1440x900 74.98 59.90 1280x960 60.00 1360x768 60.02 1280x800 59.91 1152x864 75.00 1280x720 60.00 50.00 59.94 1024x768 75.05 60.04 75.03 70.07 60.00 960x720 75.00 60.00 928x696 75.00 60.05 896x672 75.05 60.01 832x624 74.55 800x600 75.00 70.00 65.00 60.00 72.19 75.00 60.32 56.25 720x576 50.00 700x525 74.76 59.98 720x480 60.00 59.94 640x512 75.02 60.02 640x480 60.00 75.00 72.81 75.00 66.67 60.00 59.94 720x400 70.08 576x432 75.00 512x384 75.03 70.07 60.00 416x312 74.66 400x300 72.19 75.12 60.32 56.34 320x240 72.81 75.00 60.05 HDMI-2 connected 1920x1080+0+0 (normal left inverted right x axis y axis) 510mm x 287mm 1920x1080 60.00*+ 50.00 59.94 1920x1080i 60.00 50.00 59.94 1680x1050 59.88 1400x1050 59.98 1280x1024 60.02 1280x960 60.00 1280x720 60.00 50.00 59.94 1024x768 60.04 70.07 60.00 960x720 60.00 928x696 60.05 896x672 60.01 800x600 70.00 65.00 60.00 60.32 56.25 720x576 50.00 720x576i 50.00 700x525 59.98 720x480 60.00 59.94 720x480i 60.00 59.94 640x512 60.02 640x480 60.00 60.00 59.94 720x400 70.08 512x384 70.07 60.00 400x300 60.32 56.34 320x240 60.05 DVI-D-1 connected 1920x1080+1920+0 (normal left inverted right x axis y axis) 510mm x 287mm 1920x1080 60.00*+ 1680x1050 59.88 1400x1050 59.98 1280x1024 60.02 1280x960 60.00 1280x720 60.00 1024x768 60.04 70.07 60.00 960x720 60.00 928x696 60.05 896x672 60.01 800x600 70.00 65.00 60.00 60.32 56.25 700x525 59.98 640x512 60.02 640x480 60.00 59.94 720x400 70.08 512x384 70.07 60.00 400x300 60.32 56.34 320x240 60.05


Also, if i disconnect 2 displays and just have one active, nothing changes.
Last edited by I use arch btw; Nov 9, 2017 @ 7:27am
corrodinggames  [developer] Nov 9, 2017 @ 12:10pm 
Had more of a look, it's crashing on "Display.getDisplayMode();" it's not even trying to setup a display yet, just querying the current display. So it's likely nothing do to with opengl.

Yeah this does seem to be related to xrandr output, can you run 'which xrandr' to see what's in the path? and is xorg-xrandr installed. What you posted looks fine, the only main difference to mine is that you don't seem to have a primary display set. It might help to set a primary display.

Otherwise, I'm using lwjgl 2.9.3 in the game, but it looks like lwjgl 2.9.4 which was never released has some xrandr fixes. Could you try getting the nightly build from: http://legacy.lwjgl.org/download.php.html should be labelled 'lwjgl-2.9.4.zip' and backup and replace 'liblwjgl64.so' in the game folder.
I use arch btw Nov 9, 2017 @ 1:14pm 
It looks like after actually installing and running xrandr the problem seems to be solved. I have no idea why. But the game is running now very well! Thank you very much!
corrodinggames  [developer] Nov 9, 2017 @ 8:20pm 
Cool I'm glad it's fixed. Weird that you were running xrandr without xorg-xrandr, must have been from a different package or something. I am disappointed that lwjgl didn't show a better error message for this, but good to know how to fix it now.
I use arch btw Nov 10, 2017 @ 9:47am 
I'm not sure if this was the solution. But I can't recall to have anything changed except for de-activating the Intel IGP (whicn didn't help in the first place) and running xrandr.
Steel Jan 4, 2018 @ 10:31am 
Using Manjaro Linux (64bit) w/ nVidia drivers and ran into this problem as well. Installing xorg-xrandr solved it.
< >
Showing 1-8 of 8 comments
Per page: 1530 50