Bug#367042: pioneers-ai: AI occasionally dies on its turn

2006-05-14 Thread Bas Wijnen
On Sat, May 13, 2006 at 11:01:17AM -0400, Josh Metzler wrote:
 Player 4 (of 0-4) was Winston Churchill, and he quit during my turn right 
 after I traded with him, so it might not be the same problem.

It probably is.  I just fixed a crash, which was triggered by the AI checking
where to put a road (and going off the board).  The AI does this on several
occasions, in particular when it is checking if it wants resources.  It does
that during the trade.

 - 10:30:10 *ERROR* Error reading socket: Connection reset by peer
 (1x - just Winston Churchill I assume)

No, that would be the server.  Winston Churchill had segfaulted and didn't say
anything anymore.  When an AI dies gracefully, it will also chat about it, so
the player can see that something is wrong (and what).

I'll try to get this into Debian soon.

Thanks for your help,
Bas

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html


signature.asc
Description: Digital signature


Bug#367042: pioneers-ai: AI occasionally dies on its turn

2006-05-13 Thread Bas Wijnen
Hi,

On Fri, May 12, 2006 at 10:17:38PM -0400, Josh Metzler wrote:
 After upgrading to pioneers 0.9.61-1, both games I have played have had
 one of the AI players dies during its turn.

Thanks for reporting this.  I cannot reproduce it though.  Could you please
start the game from a terminal and send me the output?  The contents of the
server log might help as well.

 It is quite annoying as an AI player cannot reconnect in the middle of a
 turn, so it is necessary to start a new client, finish the turn, exit the
 client, and then start another AI player.

Yes, this is an other bug, for which a fix is ready upstream.  It will
probably be in the next release.

Thanks,
Bas Wijnen

-- 
I encourage people to send encrypted e-mail (see http://www.gnupg.org).
If you have problems reading my e-mail, use a better reader.
Please send the central message of e-mails as plain text
   in the message body, not as HTML and definitely not as MS Word.
Please do not use the MS Word format for attachments either.
For more information, see http://129.125.47.90/e-mail.html


signature.asc
Description: Digital signature


Bug#367042: pioneers-ai: AI occasionally dies on its turn

2006-05-13 Thread Josh Metzler
On Saturday 13 May 2006 02:52, Bas Wijnen wrote:
 Hi,

 On Fri, May 12, 2006 at 10:17:38PM -0400, Josh Metzler wrote:
  After upgrading to pioneers 0.9.61-1, both games I have played have had
  one of the AI players dies during its turn.

 Thanks for reporting this.  I cannot reproduce it though.  Could you
 please start the game from a terminal and send me the output?  The
 contents of the server log might help as well.

Ok - I've cleaned up the output (I've been playing Mini another swimming 
pool in the wall with 5 players, 4 of them AI, so there was a lot of 
output on the terminal).

Player 4 (of 0-4) was Winston Churchill, and he quit during my turn right 
after I traded with him, so it might not be the same problem.  I'm only 
including one of each message (there were 4 due to 4 AIs):

- 10:29:50 Dice: Josh rolled 9.
- 10:29:50 Resource: Josh receives 2 ore cards.
- 10:29:50 Resource: Bob Dole receives 2 brick cards, and a wool card.
- 10:29:50 Resource: Abraham Lincoln receives an ore card, and 2 wool cards.
- 10:29:50 Resource: Jesse 'The Body' Ventura receives an ore card, and a 
wool card.
- 10:29:50 - Winston Churchill-  said: CHAT: You don't know what to do with 
that many resources ;)
- 10:29:50 - Bob Dole-  said: CHAT: You don't know what to do with that many 
resources ;)
- 10:29:55 - Quoting.
- 10:29:58 Trade: Josh gave Jesse 'The Body' Ventura a grain card in 
exchange for a wool card.
- 10:30:04 Trade: Josh gave Winston Churchill an ore card in exchange for a 
brick card.
(4x All the messages to this point were repeated, once for each AI)
- 10:30:10 - Rejecting trade.
(3x this message - I guess all AIs but Winston)
- 10:30:10 *ERROR* Error reading socket: Connection reset by peer
(1x - just Winston Churchill I assume)
- 10:30:10 - Winston Churchill has quit
(3x - the other 3 AIs)

I won't be available this coming week, but if you still can't reproduce it, 
I'll run all the AIs under gdb when I have a chance.

  It is quite annoying as an AI player cannot reconnect in the middle of
  a turn, so it is necessary to start a new client, finish the turn, exit
  the client, and then start another AI player.

 Yes, this is an other bug, for which a fix is ready upstream.  It will
 probably be in the next release.

Great.

 Thanks,
 Bas Wijnen


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#367042: pioneers-ai: AI occasionally dies on its turn

2006-05-12 Thread Josh Metzler
Package: pioneers-ai
Version: 0.9.61-1
Severity: normal

After upgrading to pioneers 0.9.61-1, both games I have played have had
one of the AI players dies during its turn.  This did not happen playing
the same scenario with the previous version.  It is quite annoying as an
AI player cannot reconnect in the middle of a turn, so it is necessary
to start a new client, finish the turn, exit the client, and then start
another AI player.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.10-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages pioneers-ai depends on:
ii  libc6 2.3.6-7GNU C Library: Shared libraries
ii  libglib2.0-0  2.10.2-2   The GLib library of C routines

pioneers-ai recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]