Return-To-The-Roots / s25client

Return To The Roots (Settlers II(R) Clone)
http://www.rttr.info
GNU General Public License v2.0
481 stars 77 forks source link

rttr.sh gets stuck when running s25update #255

Closed mplatt closed 9 years ago

mplatt commented 9 years ago

I used to be able to run the game fine, since I updated today I receive the following message when executing rttr.sh:

checking for an update ...

There is no progress.

When starting s25client directly, I receive the following message:

mo@freebird-ubuntu:~/s25rttr/bin$ ./s25client 
lade "/home/mo/.s25rttr/CONFIG.INI": fertig (0ms)
searching for drivers in ./share/s25rttr/driver/video/*.so
0 video drivers found!
Video driver couldn't be loaded!

Any ideas what to do here?

Flamefire commented 9 years ago

You have to run it from s25rttr dir. So type:

cd ~/s25rttr
bin/s25client

For the update: Maybe just redownload it from http://www.siedler25.org/index.php?com=dynamic&mod=2 the problem should be solved there

Flow86 commented 9 years ago

you should always use "rttr.sh" (since it sets all necessary paths) and not running the client by yourself

mplatt commented 9 years ago

Thanks, Flow and Flamefire! As I said, running rttr.sh just gives me the following:

checking for an update ...

and gets stuck after this.

The update itself is successful though, as running /s25rttr/share/s25rttr/RTTR/25update directly indicates.

BTW, this is the contents of /share/s25rttr/driver/video/ on my machine:

mo@freebird-ubuntu:~/s25rttr/share/s25rttr/driver/video$ ll
total 104
drwxr-xr-x 2 mo mo  4096 Jul 26 20:04 ./
drwxr-xr-x 4 mo mo  4096 Jun 13 00:00 ../
-rw-r--r-- 1 mo mo 95562 Jul 26 20:04 libvideoSDL.so

Running mo@freebird-ubuntu:~/s25rttr$ bin/s25client as suggested by Flamefire allows me to start the game. So I guess there is something wrong with rttr.sh. Would be great if the output of this was a little more verbose so you would actually have a chance to see what's going wrong instead of the dreaded checking for an update ...-message only...

Flamefire commented 9 years ago

Can you just redownload the game and try again? There was an error with the updater in the last few days. I just tried the x86_64 version and it works fine. Which one do you use?

mplatt commented 9 years ago

Hm, yea. I will try this. I am now on 5189 after running /s25rttr/share/s25rttr/RTTR/25update manually. From a brief look at rttr.sh I can see that it is running fine up to /tmp/s25update.$$ --verbose --dir "$DIR/../" which fails without further output.

Flamefire commented 9 years ago

Just redownload it from here: http://www.siedler25.org/index.php?com=dynamic&mod=2. If that does not work we'll need the version you are using (x86_64 or i386)

uqs commented 9 years ago

Can you please run it like so (and put the output somewhere on pastebin or whatever)

$ bash -x rttr.sh

Thanks!

mplatt commented 9 years ago

Sure thing, @uqs Here you go:

mo@freebird-ubuntu:~/s25rttr$ bash -x bin/rttr.sh
++ cd bin
++ pwd -P
+ DIR=/home/mo/s25rttr/bin
+ chmod 0755 /home/mo/s25rttr/bin/../bin/rttr.sh /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update /home/mo/s25rttr/bin/../bin/s25client /home/mo/s25rttr/bin/../share/s25rttr/RTTR/sound-convert
+ '[' '' = '' ']'
+ export LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib
+ LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib
+ cmd=
+ noupdate=0
+ updateonly=0
+ '[' 0 -eq 0 ']'
+ '[' -f /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update ']'
+ echo 'checking for an update ...'
checking for an update ...
+ cp /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update /tmp/s25update.11822
+ chmod 0755 /tmp/s25update.11822
+ /tmp/s25update.11822 --verbose --dir /home/mo/s25rttr/bin/../
mplatt commented 9 years ago

Edit: Renaming as this is not related to video drivers

uqs commented 9 years ago

Ok, that means s25update gets stuck. Short of running this through gdb, can you first try running under strace?

$ export LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib $ strace -f -o /tmp/s25update.trace /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update --verbose --dir /home/mo/s25rttr/bin/..

Then look at /tmp/s25update.trace and upload it somewhere. If you have gdb installed, you could also try: $ export LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib $ gdb /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update then "run" it with: run --verbose --dir /home/mo/s25rttr/bin/.. once it hangs, CTRL-c should get you to the debugger prompt, enter "bt" to get a full backtrace and post that here. Thanks!

Flamefire commented 9 years ago

Someone else just had the same problem, but he run the stable not the nightly. Is this the case for you too? Can you download the latest nightly to see if this already solves your problem?

@Flow86 Can you check what is wrong with the updater from the stable? I can reproduce the problem here

Flow86 commented 9 years ago

I'll have a look

Flow86 commented 9 years ago

ah,

I know now why it does not work - the stable updater tries to update to nightly on linux, since the updater is called without "--stable" argument,

but I dont know why it seems to hang somewhere then internally

davidstenstroem commented 9 years ago

I seem to be having the same problem as reported by mplatt. Whenever I try to run the game i get this message:

Updating "put your S2-Installation in here":                       nan% - decompression failed: download failure?
lade "/Users/DBH/Library/Application Support/Return To The Roots/CONFIG.INI": fertig (0ms)
searching for drivers in ./share/s25rttr/driver/video/*.dylib
0 video drivers found!
Video driver couldn't be loaded!

ERROR: Das Spiel konnte nicht gestartet werden
Verbinde mit 188.40.245.45:4123
Verbindung fehlgeschlagen
Fehler: Bad file descriptor
Fehler beim Verbinden mit 188.40.245.45:4123
failed to send: 7 left
failed to send: 4 left
failed to send: 4 left
failed to send: 4 left
failed to send: 4 left
failed to send: 4 left
failed to send: 4 left
Sending replay...

And then it just hangs. Nothing more happens ... I'm running OSX 10.10.3 and the version of the game is 0.8.1. I have redownloaded from the site as recommended above but to no avail.

Flamefire commented 9 years ago

@byr1al Your error is not the same. The updater seems to have an error but it does not hang. The version released yesterday should print more messages than you show. Can you rerun rttr.sh with -X in the shell (or whatever it takes to print the executed commands)? Can you also have a look to see if any video drivers exist in the mentioned directory?

The error here is the missing of the video drivers which makes the game fail to start. Not sure, why it wants to send a bug report (which fails) or even a replay O.o

@Flow86 Should those drivers exist in the release or are they downloaded from the updater?

Flow86 commented 9 years ago

everything should be exist in the standard package (besides the ogg music)

Flamefire commented 9 years ago

Then maybe those are outdated. I bumbed the driver version after the refactoring. Maybe we can show a message, when it finds a driver but with an other version? And even distinguish if the driver file is found, but cannot be loaded.

mplatt commented 9 years ago

Sorry for ignoring this issue for so long. I tried to re-install based on the newest nightly and ran into #265

mplatt commented 9 years ago

With a new installation of the recent nighty (20150917) this seems to be fixed. RTTR is starting again:

mo@freebird-ubuntu:~/s25rttr$ bash -x bin/rttr.sh
++ cd bin
++ pwd -P
+ DIR=/home/mo/s25rttr/bin
+ chmod 0755 /home/mo/s25rttr/bin/../bin/rttr.sh /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update /home/mo/s25rttr/bin/../bin/s25client /home/mo/s25rttr/bin/../share/s25rttr/RTTR/sound-convert
+ '[' '' = '' ']'
+ export LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib
+ LD_LIBRARY_PATH=/home/mo/s25rttr/bin/../lib
+ cmd=
+ noupdate=0
+ updateonly=0
+ '[' 0 -eq 0 ']'
+ '[' -f /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update ']'
+ echo 'checking for an update ...'
checking for an update ...
+ cp /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update /tmp/s25update.3864
+ chmod 0755 /tmp/s25update.3864
+ /tmp/s25update.3864 --verbose --dir /home/mo/s25rttr/bin/../
Using directory "/home/mo/s25rttr/bin/../"
Requesting current version information from server...
Parsing update list...
Updating "SNG_0014.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0014.OGG"                        100.00% - ok
Updating "SNG_0010.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0010.OGG"                        100.00% - ok
Updating "SNG_0004.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0004.OGG"                        100.00% - ok
Updating "SNG_0006.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0006.OGG"                        100.00% - ok
Updating "SNG_0009.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0009.OGG"                        100.00% - ok
Updating "SNG_0001.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0001.OGG"                        100.00% - ok
Updating "SNG_0007.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0007.OGG"                        100.00% - ok
Updating "libaudioSDL.so" to "./share/s25rttr/driver/audio"

Downloading "libaudioSDL.so"                      100.00% - ok
Updating "SNG_0002.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0002.OGG"                        100.00% - ok
Updating "libvideoSDL.so" to "./share/s25rttr/driver/video"

Downloading "libvideoSDL.so"                      100.00% - ok
Updating "SNG_0013.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0013.OGG"                        100.00% - ok
Updating "SNG_0005.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0005.OGG"                        100.00% - ok
Updating "SNG_0003.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0003.OGG"                        100.00% - ok
Updating "SNG_0012.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0012.OGG"                        100.00% - ok
Updating "SNG_0011.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0011.OGG"                        100.00% - ok
Updating "SNG_0008.OGG" to "./share/s25rttr/RTTR/MUSIC/SNG"

Downloading "SNG_0008.OGG"                        100.00% - ok
Updating "s25client" to "./bin"

Downloading "s25client"                           100.00% - ok
Updating folder structure...
creating symlink libminiupnpc.so.8
Update finished!
++ diff -q /tmp/s25update.3864 /home/mo/s25rttr/bin/../share/s25rttr/RTTR/s25update
+ '[' -z '' ']'
+ PARAM=noupdate
+ /home/mo/s25rttr/bin/../bin/rttr.sh noupdate
Loading "/home/mo/.s25rttr/CONFIG.INI": done in 0ms

WARNING: Your application version has changed - please recheck your settings!

searching for drivers in ./share/s25rttr/driver/video/*.so
1 video drivers found!
searching for drivers in ./share/s25rttr/driver/audio/*.so
1 audio drivers found!
Failed to access the SoundFont /usr/share/sounds/sf2/FluidR3_GM.sf2
Writing "/home/mo/.s25rttr/CONFIG.INI": finished

Starte das Spiel
Loading "./share/s25rttr/S2/GFX/PALETTE/PAL5.BBM": done in 0ms
Loading "./share/s25rttr/S2/GFX/PALETTE/PAL6.BBM": done in 0ms
Loading "./share/s25rttr/S2/GFX/PALETTE/PAL7.BBM": done in 0ms
Loading "./share/s25rttr/S2/GFX/PALETTE/PALETTI0.BBM": done in 0ms
Loading "./share/s25rttr/S2/GFX/PALETTE/PALETTI1.BBM": done in 0ms
Loading "./share/s25rttr/S2/GFX/PALETTE/PALETTI8.BBM": done in 0ms
Loading "./share/s25rttr/RTTR/COLORS.ACT": done in 0ms
Loading "./share/s25rttr/RTTR/splash.bmp": done in 32ms
Loading "./share/s25rttr/S2/DATA/RESOURCE.DAT": done in 82ms
Loading "./share/s25rttr/S2/DATA/IO/IO.DAT": done in 18ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP013.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP015.LBM": done in 6ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP666.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP667.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP801.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP802.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP803.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP804.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP805.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP806.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP810.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP811.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP895.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/SETUP896.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/AFRICA.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/AUSTRA.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/EUROPE.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/GREEN.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/JAPAN.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/NAMERICA.LBM": done in 8ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/NASIA.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/SAMERICA.LBM": done in 7ms
Loading "./share/s25rttr/S2/GFX/PICS/MISSION/SASIA.LBM": done in 8ms
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0001.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0002.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0003.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0004.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0005.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0006.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0007.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0008.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0009.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0010.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0011.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0012.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0013.OGG": finished
Loading "./share/s25rttr/RTTR/MUSIC/SNG/SNG_0014.OGG": finished
Loading LST,BOB,IDX,BMP,TXT,GER,ENG files from "./share/s25rttr/RTTR/LSTS/"
Loading "./share/s25rttr/RTTR/LSTS/CLIENT.GER": done in 0ms
Loading directory ./share/s25rttr/RTTR/LSTS/CREDITS.LST
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/demophobie.bmp": done in 3ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/flosoft.bmp": done in 4ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/jh.bmp": done in 4ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/nastx.bmp": done in 4ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/oliverr.bmp": done in 4ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/spikeone.bmp": done in 3ms
Loading "./share/s25rttr/RTTR/LSTS/CREDITS.LST/z-stef.bmp": done in 3ms
Loading "./share/s25rttr/RTTR/LSTS/LANG.GER": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/OUTLINE_FONTS.LST": done in 2ms
Loading "./share/s25rttr/RTTR/LSTS/RTTR.LST": done in 0ms
Loading directory ./share/s25rttr/RTTR/LSTS/firework.LST
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/1.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/2.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/3.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/4.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/5.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/6.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/7.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/8.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/9.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/10.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/11.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/12.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/13.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/14.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/15.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/16.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/17.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/18.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/19.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/20.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/21.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/22.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/23.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/24.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/25.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/26.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/27.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/28.player.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/29.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/30.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/31.player.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/firework.LST/32.player.bmp": done in 1ms
Loading directory ./share/s25rttr/RTTR/LSTS/io_new.LST
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/000.rle.nx10.ny10.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/001.rle.nx10.ny10.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/002.rle.nx12.ny12.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/003.rle.nx15.ny12.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/004.rle.nx14.ny13.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/005.rle.nx12.ny10.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/006.rle.nx37.ny49.bmp": done in 1ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/007.rle.nx17.ny23.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/008.rle.nx7.ny12.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/009.rle.nx3.ny7.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/010.rle.nx11.ny11.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/011.rle.nx11.ny6.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/012.rle.nx16.ny14.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/io_new.LST/013.rle.nx11.ny11.bmp": done in 0ms
Loading "./share/s25rttr/RTTR/LSTS/logo.bmp": done in 3ms
Loading "./share/s25rttr/RTTR/LSTS/menu.bmp": done in 139ms
finished in 226ms
Loading LST,BOB,IDX,BMP,TXT,GER,ENG files from "/home/mo/.s25rttr/LSTS/"
Loading "/home/mo/.s25rttr/LSTS/SOUND.LST": done in 39ms
finished in 40ms
lade "./share/s25rttr/RTTR/MUSIC/S2_Standard.pll"
3 in_order