[SOLVED] Wa!hcade crashing on list generation

A nice (keyboard based) front end for Arcade / Console game emulators.

Moderator: battlecat

[SOLVED] Wa!hcade crashing on list generation

Postby eldiau » Tue Apr 17, 2012 6:46 pm

Hi all, my first message in this forum, thanks for Wah!cade I LOVE IT!

Just wanted to share a small bug that drove me crazy with mame 145 + Wah!cade (bzr checkout rev 104 devel version) in the hope it will save some time to others:

I did generate my mame.ini file like this:
Code: Select all
make ~/.mame
cd .mame
mame -createconfig

after that my Wah!cade started crashing while generating game list if I choose "XML file" as list generation method with this error:
Code: Select all
Traceback (most recent call last):
  File "/usr/local/share/wahcade/win_filter.py", line 197, in on_btnApplyFilter_clicked
  File "/usr/local/share/wahcade/win_filter.py", line 316, in create_initial_filter
  File "/usr/local/share/wahcade/filters.py", line 386, in create_initial_filter
    gd = mi.next()
  File "/usr/local/share/wahcade/filters.py", line 215, in get_xml_game_item
    for event, mame_element in ET.iterparse(xml_filename, events=('start', 'end')):
  File "<string>", line 84, in next
ParseError: not well-formed (invalid token): line 1, column 11

after many many many tests it came out that mame was outputting an error on standard output when doing "mame -listxml":
Code: Select all
[1017] diego@mother ~/.mame> mame -listxml
While parsing $HOME/.mame/mame.ini:
Illegal integer value for numprocessors: "auto"; reverting to auto

<?xml version="1.0"?>
<!DOCTYPE mame [
<!ELEMENT mame (game+)>

meaning that my "~/.wahcade/files/mameinfo.xml" was invalid.

Three conclusions:
- mame shouldn't generate an invalid .ini
- mame shouldn't ouput errors on stdout
- Wah!cade shouldn't just crash because of that, but tell me something like "invalid xml file" (I know the exception is generated by xml.etree but should be catched)
User avatar
Posts: 2
Joined: Mon Mar 05, 2012 11:33 pm

Re: [SOLVED] Wa!hcade crashing on list generation

Postby sairuk » Tue Apr 17, 2012 11:24 pm

eldiau thanks for the post, there are a number of exceptions we still need to catch and report cleanly. I will look at adding something for this instance.
mameau - My random bits | Wah!Ki - A Wah!Cade wiki | Mah!Cade - Experimental Wah!cade Branch | ListGen | Lazarus
User avatar
Posts: 432
Joined: Sat May 22, 2010 12:37 am

Return to Wah!Cade

Who is online

Users browsing this forum: No registered users and 2 guests