Important Dates

Currently Online

Latest Posts

Topic: Dedicated server issues?

fu-fu
Joined: 2012-07-08, 21:37
Posts: 3
Ranking
Just found this site
Location: Canada
Posted at: 2014-05-19, 15:26
So, I've been (trying to) running/run a widelands hosting bot, as I just have a computer that's up near 24/7, however it seems to crash whenever anyone attempts to start a game. The output of the console is in the big code block.
This is the Arch Linux build, which uses https://projects.archlinux.org/svntogit/community.git/tree/trunk/PKGBUILD?h=packages/widelands for it's compiling.

(There's also a intresting feature of "METASERVER: You got disconnected from the metaserver, as you did not answer a PING request in time." and it never seems to reconnect... but that's a seperate story..)

Hopefully someone can tell me how to find more info about the error, or knows something relvant, or sees I'm just doing everything wrong.

cat widelands/server.sh 
 date +%F >> serverlog.txt
 widelands --version >> serverlog.txt
 widelands --dedicated=/usr/share/widelands/maps/Crater.wmf/ --nickname=ahostbot --servername=ahostbotgame --maxclients=10 --dedicated_saving=true --dedicated_motd="Feel free to use this however you wish, Have a good game.(fu-fu) NOTE: It seemed to have segfult crashed last I saw it. Looking into it." --ciredump=yes --verbose | tee -a serverlog.txt

x=0; while true; do echo $i >> ./serverlog.txt; let i++; sh server.sh; sleep 60; done

#cat  ./serverlog.txt 

2014-05-19
Widelands build-18(Release)
Set home directory: /home/fu-fu/.widelands
No version file found
Adding directory:/usr/share/widelands
Version file found with id "build-18" (real "build-18" )
No version file found
Adding directory:/usr/share/games/widelands
Adding directory:.
No version file found
selected language: (system language)
using locale en_CA.UTF-8
[] Section [global], key 'disable_fx' not used (did you spell the name correctly?)
[] Section [global], key 'EXENAME' not used (did you spell the name correctly?)
[] Section [global], key 'ciredump' not used (did you spell the name correctly?)
[] Section [global], key 'dedicated_motd' not used (did you spell the name correctly?)
[] Section [global], key 'maxclients' not used (did you spell the name correctly?)
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (win_conditions,00_endless_game)
Registering script: (win_conditions,01_defeat_all)
Registering script: (win_conditions,02_collectors)
Registering script: (win_conditions,03_territorial_lord)
Registering script: (win_conditions,03_territorial_time)
Registering script: (win_conditions,04_wood_gnome)
Registering script: (win_conditions,05_endless_game_fogless)
InternetGaming: Connecting to the metaserver.
InternetGaming: Sending login request.
InternetGaming: Client ahostbot logged in.
[Host]: starting up.
InternetGaming: Client opened a game with the name ahostbotgame.
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (win_conditions,00_endless_game)
Registering script: (win_conditions,01_defeat_all)
Registering script: (win_conditions,02_collectors)
Registering script: (win_conditions,03_territorial_lord)
Registering script: (win_conditions,03_territorial_time)
Registering script: (win_conditions,04_wood_gnome)
Registering script: (win_conditions,05_endless_game_fogless)
InternetGaming: Connecting to the metaserver.
InternetGaming: Sending login request.
InternetGaming: Client ahostbot logged in.
[Host]: starting up.
InternetGaming: Client opened a game with the name ahostbotgame.
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (tribe_atlanteans,sc00_headquarters_medium)
Registering script: (tribe_atlanteans,sc01_castle_village)
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (tribe_barbarians,sc00_headquarters_medium)
Registering script: (tribe_barbarians,sc01_citadel_village)
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (tribe_empire,sc00_headquarters_medium)
Registering script: (tribe_empire,sc01_castle_village)
Map/Save is a directory! No way for making it available a.t.m.!
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (win_conditions,00_endless_game)
Registering script: (win_conditions,01_defeat_all)
Registering script: (win_conditions,02_collectors)
Registering script: (win_conditions,03_territorial_lord)
Registering script: (win_conditions,03_territorial_time)
Registering script: (win_conditions,04_wood_gnome)
Registering script: (win_conditions,05_endless_game_fogless)
[Dedicated] Entering set up mode, waiting for user interaction!
InternetGaming: Server time offset is 208 seconds.
InternetGaming: Client update on metaserver.
InternetGaming: Received a client list update with 2 items.
InternetGaming: Received a game list update with 0 items.
InternetGaming: Game update on metaserver.
InternetGaming: Client update on metaserver.
[Host]: chat: : METASERVER: Server time offset is 208 seconds.
[Host]: chat: : METASERVER: </p><p font-face=Widelands/Widelands font-color=00FF00 font-size=22>
Welcome on the Widelands Metaserver
<br>
</p><p font-face=FreeSerif font-color=CCCCFF font-size=14>
* Next official play day is on the 31st of May.
<br>
-> If you can not find another player online at the moment, retry at least on th
e 31st of May 
<br>
* Our forums can be found at http://wl.widelands.org/forums
<br>
* Please report bugs at https://launchpad.net/widelands
[Host]: Received a connection request
[Host]: Received ping from metaserver.
InternetGaming: Game update on metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
[Host]: Received a connection request
[Host]: Received ping from metaserver.
Received QUERY packet
[Host]: Received a connection request
[Host]: Client 0: welcome to usernum 1
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (win_conditions,00_endless_game)
Registering script: (win_conditions,01_defeat_all)
Registering script: (win_conditions,02_collectors)
Registering script: (win_conditions,03_territorial_lord)
Registering script: (win_conditions,03_territorial_time)
Registering script: (win_conditions,04_wood_gnome)
Registering script: (win_conditions,05_endless_game_fogless)
Registering script: (win_conditions,00_endless_game)
lastserial: 0
[Host]: personal chat: from ahostbot to fu-fu
InternetGaming: Client announced the start of the game ahostbotgame.
Registering script: (aux,coroutine)
Registering script: (aux,format_help)
Registering script: (aux,formatting)
Registering script: (aux,infrastructure)
Registering script: (aux,lunit)
Registering script: (aux,objective_utils)
Registering script: (aux,set)
Registering script: (aux,table)
Registering script: (aux,ui)
Registering script: (aux,win_condition_functions)
Registering script: (aux,win_condition_texts)
Registering script: (win_conditions,00_endless_game)
Registering script: (win_conditions,01_defeat_all)
Registering script: (win_conditions,02_collectors)
Registering script: (win_conditions,03_territorial_lord)
Registering script: (win_conditions,03_territorial_time)
Registering script: (win_conditions,04_wood_gnome)
Registering script: (win_conditions,05_endless_game_fogless)
[Dedicated] Starting the game...
No version file found
Parsing world bobs...
Parsing global bobs in world...
Parsing map gen info...
Compatibility ware "flax"="thatchreed" loaded.
Registering script: (tribe_barbarians,sc00_headquarters_medium)
Registering script: (tribe_barbarians,sc01_citadel_village)
1 <-- indicating the server crashed/restarted

Edited: 2014-05-19, 15:29

That is all.

Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 829
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-05-19, 19:54

Hi fu-fu,

nice to hear you are interested in hosting an open dedicated server. As I am the one who mainly programmed the dedicated part of the source I guess I should try to help you here.

However unfortunally I do not have the ability to start a dedicated server over here (not IP v4 - just IP v6 face-sad.png ) so I can not reproduce the error.

So sorry for this, but could you please try to start Widelands in gdb and check the backtrace?

Thank you in advance, regards

Nasenbaer


Top Quote
fu-fu
Joined: 2012-07-08, 21:37
Posts: 3
Ranking
Just found this site
Location: Canada
Posted at: 2014-05-24, 01:40

I ran the server, and attached gdb, when it "crashed" it: "(gdb) continue Continuing.

Program received signal SIGSEGV, Segmentation fault. 0x00000000007b4c84 in Graphic::get_yres() () "

Edited: 2014-05-24, 01:44

That is all.

Top Quote
Nasenbaer
Avatar
Joined: 2009-02-21, 18:17
Posts: 829
Ranking
One Elder of Players
Location: Germany
Posted at: 2014-05-24, 11:18

Thank you fu-fu for the gdb output.

I guess I have to take a look through the changes committed in last time. Seems someone added a check for the graphic device without taking care that there is not GUI in dedicated server mode. face-confused.png


Top Quote
SirVer
Joined: 2009-02-19, 15:18
Posts: 1439
Ranking
One Elder of Players
Location: Germany - Munich
Posted at: 2014-05-24, 17:19

Seems someone added a check for the graphic device without taking care that there is not GUI in dedicated server mode.

Well, if you had added a test that makes sure that dedicated works, it would not break as easily if others make changes. How about you do that when you look into this bug? face-tongue.png


Top Quote
fu-fu
Joined: 2012-07-08, 21:37
Posts: 3
Ranking
Just found this site
Location: Canada
Posted at: 2014-08-19, 01:22

So.... is has this been fixed at all or anything...?


That is all.

Top Quote