Fallback theme for 'aisleriot' not loaded properly

Bug #186753 reported by soutys
0
Affects Status Importance Assigned to Milestone
gnome-games (Ubuntu)
Invalid
Medium
Ubuntu Desktop Bugs

Bug Description

When a configuration string (key) '/apps/aisleriot/cardstyle' is empty 'sol' application crashes with:

** (sol:5671): CRITICAL **: aisleriot_board_set_card_theme: assertion `card_theme != NULL && card_theme[0] != '\0'' failed
** (sol:5671): WARNING **: Theme not loaded yet; cannot set size!

The game have started but we dont see any cards :/
It happens sometimes when you play with themes, gdm or similar packages (install/uninstall/upgrade).
When we use the 'gconf' to set that key to 'foo' it displays:

** (sol:6396): WARNING **: Failed to load theme 'foo'; trying fallback theme 'bonded'

but now application starts and we see some cards. The right name is of course 'bonded' (or other - it depends on your '/usr/share/gnome-games-common/cards/' directory content)...

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

Thanks for your report, which version of Ubuntu are you running? I've tried to reproduce this but it works fine in Hardy.

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

My Ubuntu is 7.10 (Gutsy upgraded a long time ago from Feisty)

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

ok thanks, feel free to re open this report if you encounter the same issue with Hardy.

Changed in gnome-games:
status: Incomplete → Fix Released
Revision history for this message
soutys (soutys-deactivatedaccount) wrote :

Well, I downloaded Hardy Heron Alpha4 .iso and tried to reproduce bug under Live CD session. So, here it is...

> ubuntu@ubuntu:~$ sol
>
> ** (sol:9025): CRITICAL **: aisleriot_board_set_card_theme: assertion `card_theme != NULL && card_theme[0]
> != '\0'' failed
>
> ** (sol:9025): WARNING **: Theme not loaded yet; cannot set size!
> ubuntu@ubuntu:~$

Full problem description with solution how to reproduce a bug and fix it:
  http://ubuntuforums.org/showthread.php?t=602327

Changed in gnome-games:
status: Fix Released → In Progress
Revision history for this message
Pedro Villavicencio (pedro) wrote :

May you post that here? AFAIK the forums aren't a bug tracker. thanks in advance.

Changed in gnome-games:
status: In Progress → Triaged
Revision history for this message
soutys (soutys-deactivatedaccount) wrote :

Here's the solution to fix the problem with 'aisleriot':

    * open gconf (Configuration editor) and go to the '/apps/aisleriot/cardstyle' key/resource
    * my aisleriot uses 'bonded' theme so you can type this name firstly and re-run application
    * if there is still a problem try this:
          - open 'gnome-terminal'
          - type: 'locate gnome-games-common/cards'
          - you should see something like this:

> /usr/share/gnome-games-common/cards
> /usr/share/gnome-games-common/cards/bonded.svg
> ...
<< 'bonded' (without ext.) - this could be a missed theme... Fill an empty 'cardstyle' key/resource with this value.

  You will receive a bug if the key value will be empty string.
  For bad but NON-EMPTY key, 'aisleriot' CAN find a proper theme...

Changed in gnome-games:
status: Triaged → Confirmed
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. You reported this bug a while ago and there hasn't been any activity in it recently. We were wondering is this still an issue for you? Thanks in advance.

Changed in gnome-games:
status: Confirmed → Incomplete
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for. Thanks!.

Changed in gnome-games:
status: Incomplete → Invalid
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.