nevo / podchess

Automatically exported from code.google.com/p/podchess
GNU General Public License v3.0
0 stars 0 forks source link

PodChess crashed when AI sets with the most Difficult Level #13

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Go to "SETTINGS->General", set "Difficult (Ai)" to the highest "hard".
2. Play a new game
3. Do a few moves
4. Wait while AI is thinking, click on "HOME"
*** May repeat step 3 and 4 a few times.

What is the expected output? What do you see instead?
PodChess should have left the current game and go back to the main Menu screen.
Instead, PodChess crashed and exit.

It is pretty easy to produce this bug.
The main point is making the AI take *some* time to make moves. While AI is 
doing "the 
thinking", then hit the "HOME" or "RESET" buttons. PodChess often crashed as a 
result (because 
the AI is running in a secondary thread while the main UI thread simply resets 
the AI's static 
data.)

I also attached a Crash Log for references (SVN Revision 71).

Original issue reported on code.google.com by huypha...@gmail.com on 4 Oct 2009 at 11:21

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed on r83

Original comment by Sakur.de...@gmail.com on 10 Oct 2009 at 4:44