Crash when building artwork list

Bug #1257916 reported by SladeCraven
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wah!Cade
Fix Committed
Undecided
Wayne Moulden

Bug Description

From devel branch, latest revision.
To reproduce it :
 - Just do 1 snapshot for 1 game (F12 key in default mame config)
 - Ensure that there are no other artwork for this game
 - Launch wahcade, navigate to this game -> crash

Traceback (most recent call last):
  File "/usr/local/share/wahcade/win_main.py", line 627, in on_winMain_key_press
    self.sclGames.update()
  File "/usr/local/share/wahcade/scrolled_list.py", line 97, in update
    self.signals['update'](self._ls_idx)
  File "/usr/local/share/wahcade/win_main.py", line 931, in on_sclGames_changed
    self.display_scaled_image(img, img_filename, self.keep_aspect, img.get_data('text-rotation'))
  File "/usr/local/share/wahcade/wc_common.py", line 288, in display_scaled_image
    pb = self.get_scaled_pixbuf(img, img_filename, keep_aspect, rotate=rotate)
  File "/usr/local/share/wahcade/wc_common.py", line 246, in get_scaled_pixbuf
    pb = gtk.gdk.PixbufAnimation(img_filename)
GError: Le fichier image « /home/sfabre/emulators/mame/snap/airduel » ne contient pas de données

The last sentence is in french. It means "The file ..... does not contain data".

The problem is related to the fact that the walk_dir function is adding another "*." to the pattern given as argument. So the search is performed wth a pattern like : "*.*.png" and so on. As the snapshot is in the form XXXX.png, the file is never returned properly.

Related branches

SladeCraven (sylvain-h)
description: updated
Revision history for this message
Wayne Moulden (waynemou) wrote :

Fixed in commit 146

Changed in wahcade:
assignee: nobody → Wayne Moulden (waynemou)
status: New → Fix Committed
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.