Bug repport after installing the "linux Lwjgl xrand fix"

We've posted an important announcement regarding the current situation and the future of the game: Announcement

  • Bug repport after installing the "linux Lwjgl xrand fix"

    Hi,

    I have this error when launching the game. I've installed the "linux Lwjgl xrand fix"

    Display Spoiler

    Linux 4.4.8-300.fc23.x86_64 Java: 1.8.0_73 amd640.6.5.1_26 -H:null -D:null (Steam)
    -------------------------------------------------------------------------------------------------------------
    Uncaught exception thrown in Thread[jME3 Main,5,main]
    java.lang.ExceptionInInitializerError
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:111)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    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)
    ... 4 more
    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)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:111)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
  • I did it and I had the error report that I send you in the first post ^^ (the error I had was reported in other post in the forum).
    I'm on Fedora 23 and I have an HDMI cable connected to my tv. I've disconnected the HDMI cable, but the error wasn't gone.
    I thought that the problem was the java version of my system, but I've found that the game uses theirs (Java: 1.8.0_73).
    Also I've launched the game in a terminal and it works, but I can't log in. (I'm not sure if this problem is related for this error).
  • darknekros wrote:

    I did it and I had the error report that I send you in the first post

    Oh sorry, I have misread that you already tried the Beta :D

    darknekros wrote:

    Also I've launched the game in a terminal and it works, but I can't log in

    Hmm... what Java version is installed on your system? Maybe you can try to replace the JRE of the game (in steam/steamapps/common/Rising World/java) with your System JRE and see if you can start the game then (perhaps it's indeed related to the Java version).
    If that doesn't work, you can try to replace the "lwjgl.jar" in "steam/steamapps/common/Rising World/core" with this one: github.com/tfg13/lwjgl/releases/tag/test_lwjgl%23112
  • red51 wrote:


    Oh sorry, I have misread that you already tried the Beta

    Don't worry, I thought you did :P

    red51 wrote:


    Hmm...
    what Java version is installed on your system? Maybe you can try to
    replace the JRE of the game (in steam/steamapps/common/Rising
    World/java) with your System JRE and see if you can start the game then
    (perhaps it's indeed related to the Java version).


    My java version is:

    Source Code

    1. openjdk version "1.8.0_91"
    2. OpenJDK Runtime Environment (build 1.8.0_91-b14)
    3. OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)


    After launching the game with my java version I've got this without the xrand fix:
    Display Spoiler

    Linux 4.4.9-300.fc23.x86_64 Java: 1.8.0_91 amd640.6.5.1_26 -H:null -D:null (Steam)
    -------------------------------------------------------------------------------------------------------------
    Uncaught exception thrown in Thread[jME3 Main,5,main]
    java.lang.ExceptionInInitializerError
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
    ... 5 more
    Caused by: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 5 more
    java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 5 more
    org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)


    And this with the xrand fix:
    Display Spoiler

    Linux 4.4.9-300.fc23.x86_64 Java: 1.8.0_91 amd640.6.5.1_26 -H:null -D:null (Steam)
    -------------------------------------------------------------------------------------------------------------
    Uncaught exception thrown in Thread[jME3 Main,5,main]
    java.lang.ExceptionInInitializerError
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    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)
    ... 5 more
    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)
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)



    If that doesn't work, you can try to replace the "lwjgl.jar" in
    "steam/steamapps/common/Rising World/core" with this one:
    github.com/tfg13/lwjgl/releases/tag/test_lwjgl%23112

    I'll try later the last one ^^

    The post was edited 1 time, last by darknekros ().

  • I've tried the git lwjgl.jar file and nothing, it stills crashes with the this message:

    Display Spoiler

    Linux 4.4.9-300.fc23.x86_64 Java: 1.8.0_91 amd64 0.7_27 -H:1536-DMemDirect=1024-XX:MaxDirectMemorySize=1024m -D:null (Steam)
    -------------------------------------------------------------------------------------------------------------
    Uncaught exception thrown in Thread[jME3 Main,5,main]
    java.lang.ExceptionInInitializerError
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    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)
    ... 5 more
    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)
    at com.jme3.system.lwjgl.LwjglDisplay.getFullscreenDisplayMode(LwjglDisplay.java:55)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:76)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)


    I've notice that the game has been updated and thus now I can't switch to the xrand fix.
  • Last update fixed the errors from the console on GNU/Linux, but I continue not to be able to launch the game from steam client. I have the same error as before (org.lwjgl.LWJGLException: No modes available):

    Display Spoiler

    Linux 4.4.9-300.fc23.x86_64 Java: 1.8.0_91 amd64 0.7.0.2_28 -H:1536-DMemDirect=1024-XX:MaxDirectMemorySize=1024m -D:null (Steam)
    -------------------------------------------------------------------------------------------------------------
    Uncaught exception thrown in Thread[jME3 Main,5,main]
    java.lang.ExceptionInInitializerError
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:111)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
    ... 4 more
    Caused by: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 4 more
    java.lang.RuntimeException: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.Display.<clinit>(Display.java:141)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:111)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)
    Caused by: org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    ... 4 more
    org.lwjgl.LWJGLException: No modes available
    at org.lwjgl.opengl.LinuxDisplay.init(LinuxDisplay.java:740)
    at org.lwjgl.opengl.Display.<clinit>(Display.java:138)
    at com.jme3.system.lwjgl.LwjglDisplay.createContext(LwjglDisplay.java:111)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.initInThread(LwjglAbstractDisplay.java:114)
    at com.jme3.system.lwjgl.LwjglAbstractDisplay.run(LwjglAbstractDisplay.java:212)
    at java.lang.Thread.run(Thread.java:745)


    Any idea on how to fix it?
  • Of course ^^ , here you have the code:

    Source Code

    1. $ xrandr -q
    2. Screen 0: minimum 8 x 8, current 3360 x 1080, maximum 16384 x 16384
    3. DVI-I-0 connected primary 1440x900+0+0 (normal left inverted right x axis y axis) 430mm x 270mm
    4. 1680x1050 59.88 + 59.95
    5. 1440x900 74.98 59.89*
    6. 1280x1024 75.02 60.02
    7. 1280x960 60.00
    8. 1152x864 75.00
    9. 1024x768 75.03 60.00
    10. 800x600 75.00 60.32 56.25
    11. 640x480 75.00 59.94
    12. DVI-I-1 disconnected (normal left inverted right x axis y axis)
    13. HDMI-0 connected 1920x1080+1440+0 (normal left inverted right x axis y axis) 1107mm x 623mm
    14. 1920x1080 50.00*+ 59.94 29.97 25.00 23.97 60.00 50.04
    15. 1360x768 60.02
    16. 1280x1024 75.02 60.02
    17. 1280x768 74.89 59.99 59.87
    18. 1280x720 59.94 50.00
    19. 1024x768 75.03 70.07 60.00
    20. 800x600 75.00 72.19 60.32 56.25
    21. 720x576 50.00 50.08
    22. 720x480 59.94 60.05
    23. 640x480 75.00 72.81 59.94 59.93
    24. DP-0 disconnected (normal left inverted right x axis y axis)
    25. DP-1 disconnected (normal left inverted right x axis y axis)
    26. DVI-D-0 disconnected (normal left inverted right x axis y axis)
    Display All
  • Thanks for the xrandr output :) It looks fine, and lwjgl should definitely be able to handle this output. But since you're using Fedora, it seems that the issue is more likely related to Steam (Fedora is not officially supported by Steam unfortunately). When launching the game through Steam, it uses his own libraries instead of your system libraries. Apparently xrandr does not deliver a proper output in this case.
    A solution would be to run the game from the game directory directly, but eventually some additional steps may be necessary to do that. Alternatively it could be an option to use the native runtime, at least this is a common solution for similar problems when using Linux Arch (not sure if this is helpful for Fedora in any way). Maybe send me a link to your profile in Steam or alternatively add me to your contacts, then we can solve the issue via chat directly ;)
  • With the new test-branch I finally got the game launch from steam seamless. Thank you very much for your help ;)
    Seems that the Fedora package of steam needs some fixes.

    EDIT: I can't change the thread title nor say it's done because I created it before creating an account. Sorry for the inconvenience :/