[gcompris-devel] gcompris 3.2

Bruno Coudoin bruno.coudoin at free.fr
Wed Aug 6 12:31:14 UTC 2003


I have been noticed by Ronny Standtke <Ronny.Standtke at gmx.de> that
gcompris 3.2 eats all the user CPU.

It's fixed in the cvs.

Bruno.

> BTW, which activity you found in gcompris takes 100% CPU. I usually
take
> > care not to be the case.
> 
> I tested again and found that I even do not need to start a board to
get 100% 
> CPU. It justs happens after this messages appeares on the console:
> 
> ---------------
> ... get_next_sound_to_play : welcome
> 
> ** (gcompris:31365): WARNING **: Can't find sound welcome
> 
> ** (gcompris:31366): WARNING **: Couldn't open music dir: 
> /usr/local/share/gcompris/boards/music/background
> ---------------
> 
> The interesting part is, that the directory 
> "/usr/local/share/gcompris/boards/music" does exist but it is not very
full:
> 
Great, you found a major bug in gcompris. When there is no music to play
(/usr/local/share/gcompris/boards/music/background as no .ogg in it.)
there is an infinite loop !!!
It is fixed in my copy. I'll update the cvs as soon as it is available.
The gnome cvs seems to be down by now.

In the mean time, add at the line 131 in file src/gcompris/soundutil.c
  /* No music no play */
  if(g_list_length(musiclist)==0)
    return NULL;

Bruno.





More information about the Gcompris-devel mailing list