Bug#359925: pioneers-client: Robber kills client

Jørgen Elgaard Larsen jel at elgaard.net
Tue Apr 4 03:03:10 UTC 2006


Bas Wijnen wrote:
> I cannot reproduce this behaviour.  Can you send the code the server mentions
> when starting (something like #1143994777.G.788) and a screenshot of the
> client window (directly after reconnecting)?  Also, it would be helpful if you
> can run the client from a terminal, and see if it gives any messages when
> crashing.

I had also problems reproducing it - as I wrote, it only happens 
sometimes. But I think I have discovered what is going on:

I just had a game (#1144117604.G.173) crash on me. And here is what was 
special about that game:
  * I won the previous game (#1144116936.G.858) by getting the largest
    army, putting me one point over victory target (i.e. victory target
    was 12, I won having 13 points).
  * When I won, the AI clients disconected (as they should), and I
    stopped the server. I then started the server again and added 3 AI
    clients.
  * When I connected to this game, the field under Resources still said
    "Place the robber" (which seems to be normal after you win by getting
    the Largest Army)
  * In this game, I rolled something which wasn't 7. I decided to build a
    road between the 8/woll and the 4/grain field (I'm playing red). When
    I clicked to place it, the client crashed.
  * Since I had started the client from a terminal, I could see the error
    message:

    ** ERROR **: file callback.c: line 76 (cb_build_road): assertion
    failed: (callback_mode == MODE_TURN || callback_mode ==
    MODE_ROAD_BUILD || callback_mode == MODE_SETUP)
    aborting...
    Abort

   * When I re-connected, the client told me that I had just rolled 7 and
     asked me to place the robber (see attached screen dump).

I guess what happens is that the server somehow remembers that the 
previos game ended without me placing the robber. When the client 
reconnects after a (perhaps unrelated) crash, it is then told that I 
have to place the robber.

It is entirely possible that my previous crashes has nothing to do with 
the robber and rolling 7 - I probably just have though so because the 
client told me that I just had rolled 7 on reconnect - even if I hadn't.

I hope this makes sense :-)


Jørgen Elgaard Larsen


----------------------------
Total message log from server:

04:15:32 Preparing game #1144116932.G.660
04:15:36 Preparing game #1144116936.G.858
04:15:38 Player 2 is now Checkers
04:15:38 Player Checkers from leffe.elgaard.net entered
04:15:39 Player 1 is now Gorbachev
04:15:39 Player Gorbachev from leffe.elgaard.net entered
04:15:40 Player 3 is now Kermit the Frog
04:15:40 Player Kermit the Frog from leffe.elgaard.net entered
04:15:43 Player 0 is now Elhaard
04:15:43 Player Elhaard from leffe.elgaard.net entered
04:25:41 The game is over.
04:25:41 Player Checkers from leffe.elgaard.net left
04:25:41 Player Gorbachev from leffe.elgaard.net left
04:25:41 Error writing to socket: Røret blev brudt
04:25:41 Player Kermit the Frog from leffe.elgaard.net left
04:26:41 Player Checkers from leffe.elgaard.net left
04:26:42 Player Gorbachev from leffe.elgaard.net left
04:26:42 Player Kermit the Frog from leffe.elgaard.net left
04:26:42 Player Elhaard from leffe.elgaard.net left
04:26:44 Preparing game #1144117604.G.173
04:26:45 Player 3 is now Richard Stallman
04:26:45 Player Richard Stallman from leffe.elgaard.net entered
04:26:46 Player 2 is now Saddam Hussein
04:26:46 Player Saddam Hussein from leffe.elgaard.net entered
04:26:46 Player 1 is now Richard Nixon
04:26:46 Player Richard Nixon from leffe.elgaard.net entered
04:26:53 Player 0 is now Elhaard
04:26:53 Player Elhaard from leffe.elgaard.net entered
04:29:40 Player Elhaard from leffe.elgaard.net left
04:30:38 Player 0 is now Elhaard
04:30:38 Player Elhaard from leffe.elgaard.net entered


Note: The message 'Røret blev brudt' at 04:25:41 is Danish for 'broken 
pipe'. Obviously this error message comes from the system, which 
respects my language settings.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pic6.png
Type: image/png
Size: 235449 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20060404/d00307d9/pic6-0001.png


More information about the Pkg-games-devel mailing list