[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] BUG: Crash when reviewing sgf file

From: Jon Kinsey
Subject: Re: [Bug-gnubg] BUG: Crash when reviewing sgf file
Date: Fri, 08 Oct 2004 11:15:23 +0100
User-agent: Mozilla Thunderbird 0.7.2 (Windows/20040707)

Øystein Johansen wrote:

The problem is that this bug appears some times and some times not. It
happes when a player dance from the bar, but not everytime a player
dances. The assert error comes from line 1793 in play.c. It says


in the beginning of NextTurn()

The funny thing is that a message window pop up first and says:

player cannot move
player cannot move

(Look at the screenshots in the bugtracker.)

The only function I can imagine creates this message is ShowAutoMove(),
also located in play.c.

It also looks like a new game is started in the game record list, if it
is open.

What I'm trying to find, is the reason ShowAutoMove is called, which
call it is, and what happens from that point on untill NextTurn() is

There is a call to ShowAutoMove() in line 1440. This call is in
ComputerTurn(), so I don't believe it's this call.

There is also a call to ShowAutoMove() in line 1782. This is in
TryBearoff(), so I don't think it's this call either.

Now what about the call to ShowAutoMove() in line 3072? This is in a
function called CommandMove(). This can be it!

It's called in CommandRoll() - not that it really matters. My guess is that something is getting confused with gtk timers/events, possibly the move is getting played twice when in GTKDelay(). Try setting the move delay to a large value and see if it goes wrong more often - alternatively try a low value...

I didn't notice anything that looked wrong though...


Attachment: signature.asc
Description: OpenPGP digital signature

reply via email to

[Prev in Thread] Current Thread [Next in Thread]