Attract-Mode Support Forum

Attract-Mode Support => General => Topic started by: robertofresca on February 03, 2016, 09:01:41 PM

Title: Does AM crash while generating its game list for anyone else?
Post by: robertofresca on February 03, 2016, 09:01:41 PM
I pointed AM to the latest MAME, and it crashes at around 20% every time. This is the latest version.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: bionictoothpick on February 04, 2016, 08:27:13 AM
If you are able to try from the command line...that might work.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: hermine.potter on February 04, 2016, 11:02:27 PM
@robertofresca
which version of mame (current 0.170)?
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: butanebob on February 07, 2016, 12:33:18 AM
Quote
I pointed AM to the latest MAME, and it crashes at around 20% every time. This is the latest version.
Yep, it gets to about 2% for me and then crashes to desktop. My mame is slightly older though, i think it's groovymame .164.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: robertofresca on February 07, 2016, 08:51:34 PM
Isn't this a really horrible and obvious problem that should be fixed? It doesn't leave a very good first impression.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: omegaman on February 11, 2016, 06:23:27 AM
AM should work fine with the latest MAME or any other version for that matter. So, before we start blaming AM, lets get some more information first. Like, what OS version of AM are you using, and is it 32b or 64b? Also, posting a config file would help rule out configuration issues. Though, config issues for the most part  shouldn't cause AM to crash.

Here are some basic troubleshooting tips:

Run AM from the cmd line, any config issues will generate error dialog.
If you are having a problem with 64b AM, try the 32b ver. 
Make sure you have the emulator configured before importing romlist.
Worst case senario, delete configs and run AM again.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: raygun on February 11, 2016, 05:52:10 PM
Isn't this a really horrible and obvious problem that should be fixed? It doesn't leave a very good first impression.

I agree this is bad and needs to be fixed.  Please describe as much as you can what is happening so I can try to reproduce it here.

Also, there have been some recent changes to the scraping/list generation, could you try the development version of attract-mode and let me know if that still crashed for you as well: https://build.zaplabs.com/project/attractmode/
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: necrosis on February 12, 2016, 02:34:06 AM
This might sound strange, but i did get a crash recently when generating a mame list, but it only occurred after I was missing around with displays. Normally i just used cools but I was playing with a different one (not even the mame display!) and it  crashed two times in a row during rom list generation, then i reverted back to cools and it worked again.

This is probably just a red herring but thought I would mention it, i dismissed it myself as being a random event given one thing shouldn't really affect the other.



Title: Re: Does AM crash while generating its game list for anyone else?
Post by: omegaman on February 12, 2016, 07:10:01 PM
A good test would be to import a romlist as opposed to generating one. If AM doesn't crash then it's a safe bet that the rom generation is broken now.  Never had AM crash on me that I can remember.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: robertofresca on February 12, 2016, 08:04:45 PM
It doesn't crash for me when generating the list from the command line only when using the UI.

Here's what I see:

Starting Attract-Mode 1.6.2 (Windows)
Config: D:\amfe\attract.cfg
*** Generating Collection/Rom List
 - Found 32883 files.
 - Obtaining -listxml info... 11%terminate called after throwing an instance of 'std::out_of_range'
 what():  basic_string:substr: __pos (which is 16842800) > this->size() (which is 103)

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

Hangs every time, but it doesn't hang at the same completion rate every time. Sometimes it gets to 20%, and sometimes it crashes as low as 11%.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: omegaman on February 12, 2016, 08:46:33 PM
Interesting... Do you want to try importing this mame.xml file for a test. Drop this xml in your layout folder root then at the cmd line and run attract - i mame mame.xml. Assuming you have an emulator named mame. 

[attachment deleted by admin]
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: robertofresca on February 14, 2016, 06:27:17 AM
Why would I do that? I'm already using the XML generated by the official MAME 0.170.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: cools on February 14, 2016, 07:30:44 AM
I am 99% sure this is down to not having enough free RAM to deal with the number of ROMs found. I know if I have something taking up a big chunk of RAM in the background it will either crash or silently fail, and seems the frontend itself takes up enough RAM when running to cause it.

I've not been able to generate a new list for a few months.

--full doesn't seem to work from commandline either.

If I use a small directory of files it works without a hitch.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: robertofresca on February 14, 2016, 09:05:14 AM
It works from the command line every time, so something about the UI process versus the CLI process must be different.

I've got 16GB of RAM, and AM is 64bit. It's not using up anywhere near enough to run out of memory.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: brywalker on February 14, 2016, 09:51:10 AM
Had the same issue with like .164 maybe? Did it in compatibility mode and it finished properly and then ran it normal after they. No issues.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: cools on February 14, 2016, 11:33:11 AM
It works from the command line every time, so something about the UI process versus the CLI process must be different.

I've got 16GB of RAM, and AM is 64bit. It's not using up anywhere near enough to run out of memory.

I have 4GB. You have 32000 files compared to my 18000. I can make it fail earlier by having less memory...

However - I've done what brywalker suggested and ran it in compatibility mode for Vista, and it's worked!
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: brywalker on February 20, 2016, 05:28:41 AM
Yeah figure that out. On thing about Vista that has ever worked.
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: slydog43 on March 15, 2016, 10:29:39 AM
I too get crashes when trying to generate a romlist for MAME 0.171 with AM2.0 RC2 with AM gui.  I can run attract64 -b mame and it works, but with GUI it crashes.  (win10x64).  I tried AM1.62 and its gui was able to generate a list. 
Title: Re: Does AM crash while generating its game list for anyone else?
Post by: raygun on March 16, 2016, 11:32:25 PM
This should be fixed now with the latest nightly build: https://build.zaplabs.com/project/attractmode/