bugBattle for Wesnoth - Bugs: bug #19302, Lobby doesn't refresh games list...

Show feedback again

bug #19302: Lobby doesn't refresh games list properly

Submitted by:  Gabriel Morin <gabba>
Submitted on:  Wed 18 Jan 2012 08:23:39 PM UTC  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Multiplayer Lobby
Status: ConfirmedPrivacy: Public
Assigned to: Gunter Labes <soliton>Open/Closed: Open
Release: 1.9.14+svn(52648)Operating System: Ubuntu 10.04

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

Please log in, so followups can be emailed to you.


Thu 05 Apr 2012 08:43:32 AM UTC, comment #4:

Marking as confirmed since this seems reproducible. Soliton, assigning to you since you're the one who knows most about the network - I don't know whether this is a client or server issue.

Gabriel Morin <gabba>
Project Member
Sat 25 Feb 2012 11:12:20 AM UTC, comment #3:

I can confirm the previous posts. Creating and closing the game will break the lobby. The players cannot see the others games or chat messages any longer.
Whispering still works!
The command-line output says error server: ERROR: Could not find game for player: marcel. (socket: 2)

marcel is the hosting or message-sending player, 2 the socket that is used for that player.

The error appears when creating or sending a message after creating/closing the first game.
When a new player enters the lobby after that his name seems to appear twice in the list.
Two different errors appear while he connects to the server or writes a message/creates a game:
error network: Error socket: 17216176 not found in connection_map. Not sending...
and error network: Error socket: 16813152 not found in connection_map. Not sending...

All messages sent by this last entered player are doubled for him. All other players can read his messages.
A game created by him is not seen.
After he created a game (and I think after he closes the game) one of the other players playerlist disappeared.
The others could no longer see his messages.
Whispering still works. To the player with no playerlist too. Whispering with /msg playername message still works for the player without the list.

Somewhen (possibly after the first player lost his player list or when the last player closed the game) the last player did no longer see his messages or name in the player list twice.

My testcase was to create 3 players and join to the local lobby. The first created a game, the second joined and the first canceled the game. The fourth player joined to the lobby afterwards.
Between all that I tried to send messages in the lobby with the results mentioned above.

Marcel Miebach <retr0virus>
Sun 22 Jan 2012 02:30:34 AM UTC, comment #2:

I can confirm this. Additionally, once one or both clients have quit the game, simple chatting breaks. One client may see all messages doubled, and the other sees nothing at all.

Galen Brooks <fluffbeast>
Thu 19 Jan 2012 12:06:32 AM UTC, comment #1:

Easier way to reproduce the bug: create a game with the first client then immediately close it before anyone joins; your next game will not show in the lobby for the second client.

Gabriel Morin <gabba>
Project Member
Wed 18 Jan 2012 08:23:39 PM UTC, original submission:

This consistently reproduces the problem. I run all of these commands under gdb (managed by Eclipse) with debug builds, btw.

./wesnothd --verbose

./wesnoth --log-debug=whiteboard,engine,network,replay,unit --nomusic --server localhost

./wesnoth --log-debug=whiteboard,engine,network,replay,unit --nomusic --server localhost

Create a game with one client, join it with the other and start the game. Then quit it with both clients. Afterwards, one client or the other will have problems creating new games: the other won't be able to see them in the lobby.

Gabriel Morin <gabba>
Project Member


(Note: upload size limit is set to 1024 kB, after insertion of the required escape characters.)

Attach File(s):

No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -unavailable- added by retr0virus (Posted a comment)
  • -unavailable- added by fluffbeast (Posted a comment)
  • -unavailable- added by gabba (Submitted the item)

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.


    Error: not logged in



    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 05 Apr 2012 08:43:32 AM UTCgabbaStatusNone=>Confirmed
      Assigned toNone=>soliton
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup