bugBattle for Wesnoth - Bugs: bug #22147, networking instability in linger...

Show feedback again

bug #22147: networking instability in linger mode

Submitted by:  Chris Beck <involution>
Submitted on:  Fri Jun 6 17:17:01 2014  
Category: BugSeverity: 3 - Normal
Priority: 5 - NormalItem Group:  None of the others
Status: FixedPrivacy: Public
Assigned to: Daniel <gfgtdf>Open/Closed: Closed
Release: 1.12Operating System: Linux Mint 16

Add a New Comment (Rich MarkupRich Markup):

You are not logged in

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


Wed Oct 8 17:36:29 2014, comment #4:

backported commit in https://github.com/wesnoth/wesnoth/commit/1b8199685e2178a380edfbd8c4d2af65868d9731

Daniel <gfgtdf>
Project MemberIn charge of this item.
Sat Jun 7 22:12:51 2014, comment #3:

ok i tested in master, it looks fixed to me. i think should backport to 1.12.

Chris Beck <involution>
Project Member
Fri Jun 6 22:31:47 2014, comment #2:

ok i commited e3f7f2bcbc64a679f780919ebaf0ef9de775a1a3 to master which should fix.

Daniel <gfgtdf>
Project MemberIn charge of this item.
Fri Jun 6 19:58:20 2014, comment #1:

did you get a "Error network: found unexpected attribute: ..." or similar in the log ?

Fri Jun 6 17:17:01 2014, original submission:

If clients lose connection from the host while in linger mode at the end of a networked mp scenario, host, client and obs all crash.

wesnoth: src/playturn_network_adapter.cpp:73: bool playturn_network_adapter::read(config &): Assertion `!is_at_end()' failed.
./client: line 2: 13535 Aborted ./wesnoth/wesnoth --data-dir ./wesnoth/ --server localhost:12345 --log-debug=enginerefac,mp/connect/engine,network $*

Test procedure:
Launch a local wesnothd instance and 3 connected clients. Set two of them to fight, and the third to observer. Then, during linger mode, kill the server with a kill signal. The other three clients will crash as well.

Alternatively, connect to the main server, let the game run to completion, then turn off your wifi and let the connection time out.

I didn't test yet what happens if these kinds of things happen before linger mode is entered.

Chris Beck <involution>
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 shadowmaster (Updated the item)
  • -unavailable- added by gfgtdf (Posted a comment)
  • -unavailable- added by involution (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sun Oct 12 12:21:54 2014shadowmasterOpen/ClosedOpen=>Closed
    Wed Oct 8 17:49:57 2014gfgtdfStatusReady For Test=>Fixed
    Wed Oct 8 17:36:29 2014gfgtdfAssigned toNone=>gfgtdf
    Sat Jun 7 22:00:28 2014gfgtdfStatusNone=>Ready For Test
    Show feedback again

    Back to the top

    Powered by Savane 3.1-cleanup