EMULAB Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

The new forum is online, hope you enjoy it!

Pages: [1]   Go Down

Author Topic: Problem with MAME/MESS devices when importing from exe  (Read 9204 times)

xyrico

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 6.0.2 Firefox 6.0.2
    • View Profile
Problem with MAME/MESS devices when importing from exe
« on: 08 September 2011, 23:51 »

There seems to be a problem when creating a new profile from either a MAME or MESS executable in that devices (maybe others?) aren't always properly imported. This problem is intermittent, so I am unable to reproduce it every single time. The most common way for it to occur is while creating brand new MAME and MESS profiles back-to-back in a clean install of cmpro 4.00b, though 4.00a also had this issue. What happens is that the second profile to be created will have an incomplete setlist, in the case of MAME missing proper entries for around 12 sets such as namco50, namco51, etc. Using %I=1 in the set selection box will select 0 sets when this happens, and even if everything is selected the affected sets will not be scanned or rebuilt.

This has also happened when creating only a single profile or when updating from a newer executable, though I cannot pinpoint an exact way to reproduce it. I should note that sometimes everything goes fine and the profile is created as expected, though it may take a few tries. I'm running Windows 7 with the 64-bit versions of clrmamepro. This screenshot shows what a broken profile looks like:

Logged


Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 13.0.782.220 Chrome 13.0.782.220
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #1 on: 09 September 2011, 07:13 »

Well, I've tried only MAME but for several times and cannot reproduce this in any way. The screenshot does not show anything wrong. Devices are not counted separately so the title line is correct, the selected set 005 got no connections to devices and you haven't selected anything in "Select Sets" (e.g. %I=1).
Selecting %I=1 (+Apply) gives me 12/14027 Sets as title line count and e.g. the Namxo 51xx etc sets are enabled.
Assuming that your MAME/MESS binary always produces the same -listxml output, the parsing process is deterministic, so I don't see a reason why devices are once parsed correctly and the other time it's not....
Logged

xyrico

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 6.0.2 Firefox 6.0.2
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #2 on: 09 September 2011, 08:02 »

Sorry, I should have clarified-- the screenshot was only meant to illustrate the title line. Here's how things look when everything is "OK":





The title line shows 14029/14029 when Select All is clicked (also by default) and shows the Namco sets as selected when "%I=1" is applied. The title line then reads 12/14029, as I would expect. Like this the Namco sets are able to be scanned and rebuilt as usual.

Here's an additional picture to clarify the one in my initial post:



Even though "%I=1" is applied and the proper sets are selected the title bar now shows 0/14027 (not 14029) and any attempts to scan or rebuild the affected sets fail to list them-- they appear to be ignored.

Here are two additional pictures showing the same thing happening with MESS:





I'm not sure which sets are affected when it comes to MESS but I suspect it is related.

I've replicated this with two different binaries of MAME 0.143u4, one I compiled myself and another I got elsewhere. The pictures here were taken with both MESS and MAME at 0.143u5, each build being 64-bit. When creating the MAME profile I always answer Ok to All/No to All/No to All. I was initially reluctant to post this because it's entirely possible that this is all on my end. What nags at me is that even though it appears to be semi-random, only two distinct cases are ever the result and the same sets are affected each time. I'll see if I can narrow it down some more.

Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 13.0.782.220 Chrome 13.0.782.220
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #3 on: 09 September 2011, 11:51 »

Hmm...looks interesting...
What do you actually do inbetween? I mean ok, new MAME profile, load it, go to set information, select %I=1, hit apply, shows 12/14027 and Namco* enabled...
But what then? Restart cmpro with the same profile? Or quit, reget data from a (changed) MAME executable? I tried various ways and currently it always show 12/14027 here.....

Maybe you have a step by step instruction...

I wonder if it's device-only related and not a set-information window issue....did you try a different filter?


another idea is that -if the problem occurs- you use the export button to export the currently loaded data as datfile (and send it to me)...then I/we can check if really no devices were parsed.
« Last Edit: 09 September 2011, 16:27 by Roman »
Logged

xyrico

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 6.0.2 Firefox 6.0.2
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #4 on: 09 September 2011, 21:33 »

I just replicated this on a brand new laptop, also running Windows 7 64-bit, but with an entirely different set of hardware. Once again, it seemed partly random. I extracted cmpro, copied the MESS and MAME executables directly into its root folder, and created the profiles. I created MAME first, which showed a "correct" screen with 14029/14029. Without restarting cmpro, I went back to the profiler and created the MESS profile as before, and it showed a Set Information screen like in my last screenshot: 1568/1647. Since this can take a few tries, I repeated the process.

I selected both profiles, right clicked and chose the delete option. Without ever restarting cmpro, I did everything once again, though this time I created MESS first. It returned 1568/1647 once more, and this time when I then created MAME the 14015/14027 scenario occurred.

Other filters seem to work fine, as I was able to do something like %f=vasara to select the correct set. Unfortunately, exporting the dat yielded the same inconsistent result-- sometimes it would load fine, other times not. As an alternative, I am uploading an example of an entire affected cmpro directory. As far as I can tell, extracting from this archive and running the program without touching anything will always show this issue.

http://www.megaupload.com/?d=R37942R4
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Mac OS X Mac OS X
  • Browser:
  • Safari 5.0.2 Safari 5.0.2
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #5 on: 10 September 2011, 17:32 »

thanks for the details. I will do further checking in a week earliest due to holiday.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 14.0.835.163 Chrome 14.0.835.163
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #6 on: 18 September 2011, 22:09 »

Well, in your uploaded cmpro package you don't have the 'device' system enabled, that's why you get the lower count in setinformation. Go to systems and enabled 'device'.
I still can't repeat your behaviour of switching between MAME and MESS....
Logged

xyrico

  • Karma: 0
  • Offline Offline
  • Posts: 5
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Firefox 6.0.2 Firefox 6.0.2
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #7 on: 19 September 2011, 04:39 »

Thanks for taking a look. The only thing I did with the uploaded package was to create a MAME profile in a freshly-extracted cmpro directory using default settings, then closed it and zipped up the folder. I never went near the systems settings (I never have need to) so I didn't think to check there to see if devices were enabled. The problem seems to be that this is toggled without my input. If all I need to do is manually re-enable it, this at least gives me a more viable workaround than deleting the profile and recreating it over and over until it works.

Like I said, I managed to do it on another computer and for me it's really as simple as creating the profile-- it's roughly 50/50 whether devices will be enabled or not. It doesn't sound easy to replicate without more information, and since I think I've provided all I can, there's probably not much to be done. Thanks for checking it out anyway.
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 14.0.835.163 Chrome 14.0.835.163
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #8 on: 19 September 2011, 16:50 »

well, I will do some more research....it might be some not initialized variable so it randomly activates or deactivates the devices setting....and I guess that's then the reason for all your detected problems....stay tuned ;)
Logged

Roman

  • Global Moderator
  • Member
  • ***
  • Karma: 112
  • Offline Offline
  • Posts: 3287
  • Operating System:
  • Windows 7/Server 2008 R2 Windows 7/Server 2008 R2
  • Browser:
  • Chrome 14.0.835.163 Chrome 14.0.835.163
    • View Profile
Re: Problem with MAME/MESS devices when importing from exe
« Reply #9 on: 19 September 2011, 20:26 »

While I can't reproduce it, I however found a place where an initialization was missing...guess that'll fix it for you...
Logged
Pages: [1]   Go Up
 

Page created in 0.17 seconds with 20 queries.

anything