mickelson / attract

A graphical front-end for command line emulators that hides the underlying operating system and is intended to be controlled with a joystick or gamepad.
http://attractmode.org
GNU General Public License v3.0
393 stars 115 forks source link

AM crashes while generating MAME/MESS rom list (listsoftware) #201

Open yoshi41 opened 8 years ago

yoshi41 commented 8 years ago

I use AM on my GroovyMAME CRT (UMSA) arcade pc with Windows 7.

Great frontend for CRT setups. Thanks for your work!

I have troubles generating rom lists for MAME/MESS.

Tested with regular MAME and GroovyMAME 0.171 using different builds of AM version 2.

It works fine with MAME (listxml) and short MESS (listsoftware) rom lists, but it crashes with long MESS rom lists.

Working Example (sms)

sms.cfg

# Generated by Attract-Mode v2.0.0-rc3-1
#
executable           ..\mame\mame64.exe
args                 [system] -cart "[romfilename]"
rompath              ..\mame\roms\sms
romext               .zip;.7z
system               sms;Sega Master System
info_source          listsoftware
artwork    flyer           
artwork    marquee         
artwork    snap           
artwork    wheel           

It works in the GUI and on the command line.

E:\temp\firefox\attract.nightly>attract -b mess-sms
*** Generating Collection/Rom List: mess-sms
 - Found 584 files.
100%
 * Calculated CRCs for 0 files in 1553ms.
 - Obtaining -listsoftware info [sms]
 > 20em1                     ==> 20 em 1 (Bra)             [ 11]
 > 3dragon                   ==> The Three Dragon Story... [ 11]
 ...
 > zool                      ==> Zool - Ninja of the 'N... [ 11]
 - Removing any duplicate entries...
 + Writing 584 entries to: E:\temp\firefox\attract.nightly\romlists/mess-sms1.txt

E:\temp\firefox\attract.nightly>

Non-Working Example (megadriv)

mess-genesis.cfg

# Generated by Attract-Mode v2.0.0-rc3-1
#
executable           ..\mame\mame64.exe
args                 [system] -cart "[romfilename]"
rompath              ..\mame\roms\megadriv
romext               .zip;.7z
system               megadriv;Sega Genesis
info_source          listsoftware
artwork    flyer           
artwork    marquee         
artwork    snap           
artwork    wheel           

AM crashes in the GUI and on the command line. Also tried with "Vista" compatibility mode, same issue.

E:\temp\firefox\attract.nightly>attract -b mess-genesis
*** Generating Collection/Rom List: mess-genesis
 - Found 2327 files.
100%

E:\temp\firefox\attract.nightly>

I was able to generate the rom list for MAME and MESS sms, pce, tg16, sgx roms.

But I can't generate it for MESS megadriv, nes, snes roms. It always crashes around 50% progress.

PS: Generating the software list with mame command line works fine.

Thanks for your help.

mickelson commented 8 years ago

Hi there, just a note that I have been unable to reproduce this to date.

TeknikFrik commented 8 years ago

I have this exact problem with nes and megadriv collections. Using just a few roms makes the list generation work.

Is there a debug build that could give you stack trace info or something?

I tested with both the release and nightly builds (just replacing the .exe), 64-bit. Nightly 32-bit also crashed.

janisc commented 8 years ago

Happens to me too with nes and snes roms. Using Groovy Arcade Linux distro. I am also willing to give more information, but I don't know how to do it. I only have 1 gig memory in my arcade cab, wonder if that could be a reason...

ZeroQI commented 8 years ago

Windows 10 x64, so used latest mame 64 bit here: http://mamedev.org/release.html > "mame0176b_64bit.exe" [https://github.com/mamedev/mame/releases/download/mame0176/mame0176b_64bit.exe] in command prompt i did: C:\mame>mame64 -listsoftware snes>"mame - snes.xml" mame - snes.zip C:\Users\Default.DESKTOP-B6V7IAG\Desktop\attract-v2.1.0-win64>attract -i "mame - snes.xml" *\ Importing Collection/Rom List: mame - snes.xml [Import mame - snes.xml] - Imported 0 entries. [Import Z:\Software\Emulation\Emulators\Mame\Catver.ini] - found info for 0 entries. [Import Z:\Software\Emulation\Emulators\mame\nplayers.ini] - found info for 0 entries.

davidmateusreis commented 7 years ago

Hi,

I had the same issue moments ago... So, just zip your .gen/.sms roms and will works.

TiBeN commented 7 years ago

Same issue for me, can't generate Neogeo AES list using mame.

antonioginer commented 7 years ago

Same issue here, both MESS-genesis and MESS-snes make Attract Mode crash (AM latest version / GroovyMAME 0.183).

mbalfour commented 6 years ago

For nes files, the crash is due to a bad pointer, the fix is in https://github.com/mickelson/attract/pull/405 .