Chess uses 100% cpu only when I play black

Bug #288593 reported by Ryan Fugger
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-games (Ubuntu)
Fix Released
Medium
Ubuntu Desktop Bugs

Bug Description

Binary package hint: gnome-games

When I play white against computer's black, the program takes very little cpu, but when I play black against the computer's white, it takes 100% cpu.

Using Hardy 8.04.1, kernel 2.6.27-1-generic. Gnome-games 1:2.22.3-0ubuntu2.

Revision history for this message
Pedro Villavicencio (pedro) wrote :

thanks for your report, it uses the same quantity of cpu here if you play human: white, comp: black or viceversa are you using the 3d engine? does it works the same way with another new user created on your system? may you try to reproduce the same with hardy? thanks in advance.

Changed in gnome-games:
assignee: nobody → desktop-bugs
importance: Undecided → Medium
status: New → Incomplete
Revision history for this message
Ryan Fugger (rfugger) wrote :

A little more investigation shows that it uses 100% cpu whenever I start a new game using the "new game" command. The only way it uses a reasonable amount of cpu is when I have ended a game on the previous session, and the new session starts with the default game (human: white vs. comp: black).

The 100% cpu usage persists on games started with "new game" even if I restart the app, as long as I have made a move before restarting. If I haven't made a move, the "new game" is lost and the app restarts with the default game, so it is impossible for me to play black without having the 100% cpu.

The behaviour doesn't change in 3d mode. (I am unable to make more than one move in 3d mode due to another bug.)

As I mentioned, I am using Hardy. I will be upgrading to Intrepid in the next days.

I created a new user and the problem is the same.

I notice that the app spawns a new gnome-gnuchess process for every new game, and those processes are the ones using all the cpu. If I start one "new game", and then start another, the system will have two gnome-gnuchess processes running, each using 50% cpu. WTF?

Revision history for this message
Ryan Fugger (rfugger) wrote :

I should clarify that when I say above that I start two new games in a row, I mean from the same application window -- and yet there are two gnome-gnuchess processes churning away at the cpu, even though I'm only playing one game (only one chess window is open).

Revision history for this message
Ryan Fugger (rfugger) wrote :

Upgrade to intrepid seems to resolve this problem.

Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the bug since that works correctly now

Changed in gnome-games:
status: Incomplete → Fix Released
Revision history for this message
Ao Phidly (aophidly) wrote :

cpu problem still existed for me in Intrepid. 100% usage with a quad core. switched to Crafty chess engine and cpu usage dropped down to almost nothing.

Revision history for this message
Akdo (menoft) wrote :

Still existed on jaunty

Revision history for this message
Alicia Boya (ntrrgc) wrote :

Still existing on karmic
wtf?

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.