[V99pre7] Error on list generation

Bug #364421 reported by gspat
2
Affects Status Importance Assigned to Milestone
Wah!Cade
Fix Committed
Medium
Andy Balcombe

Bug Description

Program crashes during list (.lst/.ftr file) creation.

Traceback (most recent call last):
  File "wahcade.py", line 76, in <module>
    app = WinMain(options)
  File "/usr/share/games/wahcade/win_main.py", line 300, in __init__
    self.load_emulator()
  File "/usr/share/games/wahcade/win_main.py", line 1063, in load_emulator
    self.load_list()
  File "/usr/share/games/wahcade/win_main.py", line 1120, in load_list
    self.current_filter = filters.read_filter(filter_file)
  File "/usr/share/games/wahcade/filters.py", line 444, in read_filter
    for line in f:
  File "/usr/lib/python2.6/codecs.py", line 679, in next
    return self.reader.next()
  File "/usr/lib/python2.6/codecs.py", line 610, in next
    line = self.readline()
  File "/usr/lib/python2.6/codecs.py", line 525, in readline
    data = self.read(readsize, firstline=True)
  File "/usr/lib/python2.6/codecs.py", line 472, in read
    newchars, decodedbytes = self.decode(data, self.errors)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xb0 in position 0: unexpected code byte

This happens using either setup editor or create list function in main wahcade program

using Ubuntu 9.04 32 bit.

Program runs fine using .lst/.ftr files from old, archived version (pre hardware failure - unknown wahcade software revision) attempts to either create new or overwrite old results in error(s) above.

Related branches

gspat (gspat)
description: updated
summary: - Error on list generation
+ [V99pre7] Error on list generation
description: updated
Changed in wahcade:
assignee: nobody → andy-balcombe
importance: Undecided → Medium
Revision history for this message
Andy Balcombe (andy-balcombe) wrote :

Hi,

Have you tried regenerating the mameinfo.xml file before trying to create the lists?

Cheers,
Andy

Changed in wahcade:
status: New → In Progress
Revision history for this message
wibble (mwhite) wrote :

I have noticed this on a new build running Ubuntu 9.10 Desktop.

we have all our roms/snap/marquees/cpanel/flyers folders symlinked from /var/Mame/<folder> to ~/emulators/mame/<folder>

For a test we copied a handful of the roms into other folders and were able to generate a filter using this without error. The issue appears to be with the way the filter is generated and parsing the data in the ROMs themselves.

I am going to try and see if i can isolate a few ROM files that are causing issues. I am going to leave the other folders with the graphics etc in complete as i wouldnt have thought these will be affected in the building of the filters list.

Will post my findings shortly

Revision history for this message
Andy Balcombe (andy-balcombe) wrote :

Hi wibble,

Any progress?

Cheers,
Andy

Changed in wahcade:
status: In Progress → Incomplete
Revision history for this message
Wayne Moulden (waynemou) wrote :

FYI, This bug is still present in v99pre8 under both linux and windows.

Revision history for this message
Joeltron (yo-joeltron) wrote :

Bug is still present in 1.0pre1, however I found a work-around.

Try using a mameinfo.xml generated from an older mame - I found sucess with v0.132 (Jun 30 2009).

Wayne Moulden (waynemou)
Changed in wahcade:
status: Incomplete → 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.