No Graphics In Stendhal 0.68.1

2008-07-07
2013-06-06
  • I just ran Stendhal in Ubuntu Linux 8.04, and the text window and graphical window opened. However, there is only a white blank screen in the graphics window. The text window works fine, but the graphics window is blank. I downloaded Stendhal-FULL-0.68.1.zip, and nothing else. Also, the startup window worked fine, but after I logged in, it didn't. What can I do to fix this?

     
    • please check if you are really running on sun java.

       
    • I'm quite sure I am. This is the output of java -version.
      [CODE]
      java -version
      java version "1.6.0"
      OpenJDK  Runtime Environment (build 1.6.0-b10)
      OpenJDK 64-Bit Server VM (build 1.6.0-b10, mixed mode)
      [/CODE]

       
      • oslsachem
        oslsachem
        2008-07-14

        Could you try starting the client from a X-terminal window (with java -jar stendhal-0.68.1.jar ) and then paste the log here?

         
    • java -jar stendhal-0.68.1.jar
      Integrating old updates and looking for new ones
      GAME: stendhal
      our classpath:
      vm  classpath: stendhal-0.68.1.jar
      Current Version
      our classpath:
      vm  classpath: stendhal-0.68.1.jar
      Configuring Log4J using data/conf/log4j.properties
      INFO  [main] stendhal.java                 (  93) - Setting base at :/stendhal/
      INFO  [main] stendhal.java                 (  94) - Stendhal 0.68.1
      INFO  [main] stendhal.java                 ( 101) - OS: Linux  2.6.24-19-generic amd64
      INFO  [main] stendhal.java                 ( 104) - Java-Runtime: OpenJDK  Runtime Environment 1.6.0-b10 from /usr/lib/jvm/java-6-openjdk/jre
      INFO  [main] stendhal.java                 ( 107) - Java-VM: Sun Microsystems Inc. OpenJDK 64-Bit Server VM 1.6.0-b10
      INFO  [main] SoundSystem.java              ( 500) - Sound driver: dmix:0 [default](Direct Audio Device: dmix:0, dmix:0, dmix:0)
      ERROR [main] AudioClip.java                (  85) - format is not supported(PCM_UNSIGNED 22050.0 Hz, 8 bit, stereo, 2 bytes/frame, )
      ERROR [main] AudioClip.java                (  85) - format is not supported(PCM_SIGNED 22050.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian)
      ERROR [main] AudioClip.java                (  85) - format is not supported(PCM_SIGNED 11025.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian)
      ERROR [main] AudioClip.java                (  85) - format is not supported(PCM_UNSIGNED 22050.0 Hz, 8 bit, stereo, 2 bytes/frame, )
      INFO  [main] SoundSystem.java              ( 411) - Stendhal Soundsystem OK: 131 samples approved / 131 loaded / 65 library sounds
      INFO  [main] StaticGameLayers.java         ( 195) - Area: int_semos_guard_house

       
      • oslsachem
        oslsachem
        2008-07-16

        Thanks, could you paste now the server's log file?
        It should be in the server's directory (named marauroa, perhaps) and it is called server.log

         
        • oslsachem
          oslsachem
          2008-07-16

          "I downloaded Stendhal-FULL-0.68.1.zip, and nothing else"

          Sorry :)
          I saw you had OpenJDK installed and I thought you had built and were running your own server.
          If you could try to log in again and then tell us the username (not the password!) with which you tried to log in, perhaps the server's log could be looked up for any error or warning.

           
    • Server: stendhal.game-host.org
      Port: 32160
      Username: cutiekitty

       
      • oslsachem
        oslsachem
        2008-07-17

        Could you try using Sun's JDK ( http://java.sun.com/javase/index.jsp ) instead of Sun's OpenJDK ( https://openjdk.dev.java.net/ )?
        The idea is that OpenJDK could not be fully compatible with Java SE 6 because of remaining encumbrances.

         
    • I actually have both OpenJDK and SunJDK installed. Do I just uninstall OpenJDK?

       
      • oslsachem
        oslsachem
        2008-07-18

        Yes, I'd suggest you to just uninstall OpenJDK because that is the Java Runtime Environment that your system is using by default (as is shown by the output of the "java -version" command and stendhal's client log).
        Besides it isn't necessary, for general purposes, to have more than one JRE/JDK installed because only one of them is going to be used by default and you will have to explicitly type the full path of the "java, javac..." commands to use the other JRE.
        So, after uninstalling OpenJDK, check that your system is now using SunJDK by typing "java -version" in a X-terminal window. And then try to run stendhal's client.

         
    • Now it won't even load. The output is this:

      Integrating old updates and looking for new ones
      GAME: stendhal
      our classpath:
      vm  classpath: stendhal-0.68.1.jar
      Timeout (http://arianne.sourceforge.net/stendhal/updates/update.properties):  java.net.SocketTimeoutException: connect timed out
      our classpath:
      vm  classpath: stendhal-0.68.1.jar
      Configuring Log4J using data/conf/log4j.properties
      INFO  [main] stendhal.java                 (  93) - Setting base at :/stendhal/
      INFO  [main] stendhal.java                 (  94) - Stendhal 0.68.1
      INFO  [main] stendhal.java                 ( 101) - OS: Linux  2.6.24-19-generic amd64
      INFO  [main] stendhal.java                 ( 104) - Java-Runtime: OpenJDK  Runtime Environment 1.6.0-b10 from /usr/lib/jvm/java-6-openjdk/jre
      INFO  [main] stendhal.java                 ( 107) - Java-VM: Sun Microsystems Inc. OpenJDK 64-Bit Server VM 1.6.0-b10
      ERROR [main] SoundSystem.java              ( 492) - *** SoundSystem: no sound driver available!
      ERROR [main] SoundSystem.java              ( 311) - *** SOUNDSYSTEM JAVA INIT ERROR
      java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
          at java.lang.Runtime.load0(Runtime.java:787)
          at java.lang.System.load(System.java:1022)
          at java.lang.ClassLoader$NativeLibrary.load(Native Method)
          at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
          at java.lang.Runtime.loadLibrary0(Runtime.java:840)
          at java.lang.System.loadLibrary(System.java:1047)
          at sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:143)
          at java.security.AccessController.doPrivileged(Native Method)
          at sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:140)
          at java.lang.Class.forName0(Native Method)
          at java.lang.Class.forName(Class.java:186)
          at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
          at games.stendhal.client.sprite.SpriteStore.<init>(SpriteStore.java:52)
          at games.stendhal.client.sprite.SpriteStore.<clinit>(SpriteStore.java:42)
          at games.stendhal.client.Cache.init(Cache.java:57)
          at games.stendhal.client.StendhalClient.<init>(StendhalClient.java:151)
          at games.stendhal.client.StendhalClient.get(StendhalClient.java:129)
          at games.stendhal.client.stendhal.startClient(stendhal.java:119)
          at games.stendhal.client.stendhal.main(stendhal.java:161)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at games.stendhal.client.update.Bootstrap$PrivilegedBoot.loadProgram(Bootstrap.java:257)
          at games.stendhal.client.update.Bootstrap$PrivilegedBoot.run(Bootstrap.java:268)
          at java.security.AccessController.doPrivileged(Native Method)
          at games.stendhal.client.update.Bootstrap.boot(Bootstrap.java:308)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at games.stendhal.client.update.Starter.main(Starter.java:70)
      java.lang.reflect.InvocationTargetException
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke(Method.java:616)
          at games.stendhal.client.update.Starter.main(Starter.java:70)
      Caused by: java.lang.UnsatisfiedLinkError: Can't load library: /usr/lib/jvm/java-6-openjdk/jre/lib/amd64/xawt/libmawt.so
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1666)
          at java.lang.Runtime.load0(Runtime.java:787)
          at java.lang.System.load(System.java:1022)
          at java.lang.ClassLoader$NativeLibrary.load(Native Method)
          at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1767)
          at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1684)
          at java.lang.Runtime.loadLibrary0(Runtime.java:840)
          at java.lang.System.loadLibrary(System.java:1047)
          at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:67)
          at sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:47)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.awt.Toolkit.loadLibraries(Toolkit.java:1610)
          at java.awt.Toolkit.<clinit>(Toolkit.java:1632)
          at java.awt.Component.<clinit>(Component.java:568)
          at games.stendhal.client.update.Bootstrap.unexpectedErrorHandling(Bootstrap.java:353)
          at games.stendhal.client.update.Bootstrap$PrivilegedBoot.loadProgram(Bootstrap.java:259)
          at games.stendhal.client.update.Bootstrap$PrivilegedBoot.run(Bootstrap.java:268)
          at java.security.AccessController.doPrivileged(Native Method)
          at games.stendhal.client.update.Bootstrap.boot(Bootstrap.java:308)
          ... 5 more

       
      • Hello ametur,

        there are two issues:

        1st: You installation of OpenJDK is incomplete. It is missing a core library.
        2nd: Unfortunatally Stendhal requires the official Sun JDK at the moment.

        Hendrik

         
      • oslsachem
        oslsachem
        2008-07-19

        According to the log:

        "INFO [main] stendhal.java ( 104) - Java-Runtime: OpenJDK Runtime Environment 1.6.0-b10 from /usr/lib/jvm/java-6-openjdk/jre"

        your system still expects to run java using OpenJDK:

        As hendrik points out, in Ubuntu, "Just installing new Java flavours does not change the default Java pointed to by /usr/bin/java. You must explicitly set this":

        https://help.ubuntu.com/community/Java#Choosing%20the%20default%20Java%20to%20use explains how to do it

        As a final note, are you using the Synaptic graphical package manager? Be  aware that:

        The runtime environment for OpenJDK is located in the openjdk-6-jre package while Sun Java6 requires two packages: sun-java6-bin, sun-java6-jre, though the  latter package is a dependency and should be installed automatically ( https://help.ubuntu.com/community/JavaInstallation )

         
    • If you have multiple versions of java installed using the Debian/Ubuntu way you can switch between them using this command as root:
      update-alternatives --config java

       
    • I'm happy to say that it worked... sort of. The graphics window now works fine, but the text and chat window no longer work. It's another blank window. It's not as big of an impediment, but it would be nice to get fixed. Any ideas? Also, thank you for your help.

       
      • oslsachem
        oslsachem
        2008-07-20

        Could you paste the stendhal's client log and the output from the command "sudo update-java-alternatives -l" ?

         
        • Maybe it is related to Java+compiz problem?

          Try running on a console

          metacity --replace &

          and then run stendhal.
          If stendhal works correctly in that way then have a look to http://ubuntuforums.org/showthread.php?t=425110

           


Anonymous


Cancel   Add attachments