Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

[RESOLVED] If map file is specified, create snaps crashes


Recommended Posts

Posted

If an emulator has a map file specified it seems to crash the create snaps function. Is this expected behavior? Can this be fixed? I have attached the log.

log.txt

Posted

I'm a newbie in this matter, so please consider my attempt just as a try.

I've noticed this line in your ini:

21:10:10.5 2/28/2011: EmUDBCache Diff: 5/21/2008 1:16:18 AM - 1/19/2009 3:41:55 PM

I would suggest the following procedures:

1) delete all files with "cache" in their name and/or extension that are in GameEx\DATA directory.

1) make sure you have downloaded the databeses during GameEx installation. If you did, the entry above would suggest me to update the most recent ones.

Posted

I'm a newbie in this matter, so please consider my attempt just as a try.

I've noticed this line in your ini:

I would suggest the following procedures:

1) delete all files with "cache" in their name and/or extension that are in GameEx\DATA directory.

1) make sure you have downloaded the databeses during GameEx installation. If you did, the entry above would suggest me to update the most recent ones.

Thanks for the suggestion. I downloaded the latest databases and deleted the cache files in the data directory as you recommended. Unfortunately the problem still exists. Here is the log from the last crash.

log.txt

Posted

Is it a particular emulator? It's hard to go through your logs since you have so many errors to begin with. I would eventually fix all your paths when you get a chance. I was unable to duplicate this issue. Please give more detail. I see Scumm was maybe your attempt on the 2nd log? I can't tell from the first.

Posted

I'll try this on one of my emus that uses a MAP file and get back at ya. Hold on. :)

Not a problem on my machine. Sorry. :(

Posted

Is it a particular emulator? It's hard to go through your logs since you have so many errors to begin with. I would eventually fix all your paths when you get a chance. I was unable to duplicate this issue. Please give more detail. I see Scumm was maybe your attempt on the 2nd log? I can't tell from the first.

It appears to me that those warnings about paths not existing happen if you leave it blank. Blank is the default if you don't specify a path so these should be ignored I guess.

21:46:19.5 3/1/2011: Validating: Emulator_1: Custom Art Path 4:

21:46:19.5 3/1/2011: Warning: Emulator_1: Custom Art Path 4 Does not exist

The emulator that was experiencing the problem with in both cases was scummvm. I was concerned particularly with this error in the log:

The requested operation cannot be performed on a file with a user-mapped section open.

Posted

I'll try this on one of my emus that uses a MAP file and get back at ya. Hold on. :)

Not a problem on my machine. Sorry. :(

For me, it didn't crash right away. It did after taking several snaps. Did you let it run for a while? Thanks for checking this.

Posted

I did not, but I will now! Is there like a time approximately? I almost feel like maybe one of your maps could be causing the problem? It seems strange to me that it will work for a while and then stop. There has to be a common denominator we're overlooking here.

Posted

I did not, but I will now! Is there like a time approximately? I almost feel like maybe one of your maps could be causing the problem? It seems strange to me that it will work for a while and then stop. There has to be a common denominator we're overlooking here.

I just tried another emulator and ran create snaps and it successfully ran through 26 games before I canceled it. I went back to ScummVM and tried it and it created two snaps before GameEx exited the create snaps process on its own. When I launch the create snaps again for ScummVM it immediately crashes. Each time I do this runnng ScummVM it continues to the next games without snaps, so it is not the same game that is crashing it. Here is the section where it crashes. The common denominator seems to be scummvm or the map file. I have attached my config for ScummVM emulator. I am suspecting the map file. Note the log entry at 08:26:33.9 3/3/2011: The requested operation cannot be performed on a file with a user-mapped section open.

08:25:01.0 3/3/2011: Shutting down display

08:25:02.4 3/3/2011: Running: cmd.exe /c C: scummvm.exe -f brstorm

08:25:18.7 3/3/2011: Running: cmd.exe /c C: scummvm.exe -f sky-1

08:25:35.9 3/3/2011: 21 Consecutive Exceptions Occured

08:25:35.9 3/3/2011: Object reference not set to an instance of an object.

08:25:35.9 3/3/2011: at ag.r(Boolean A_0)

at ag.ad()

08:25:35.9 3/3/2011: Trying reinitialising the display after sleeping for 4 seconds

08:25:35.9 3/3/2011: Exception count will be dropped to 15

08:26:31.0 3/3/2011: Shutting down display

08:26:33.8 3/3/2011: --**--

08:26:33.8 3/3/2011: 21 Consecutive Exceptions Occured: Exiting

08:26:33.8 3/3/2011: Closing database connection

08:26:33.9 3/3/2011: First Exception:

08:26:33.9 3/3/2011: The requested operation cannot be performed on a file with a user-mapped section open.

08:26:33.9 3/3/2011: at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)

08:26:33.9 3/3/2011: at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy)

08:26:33.9 3/3/2011: at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)

08:26:33.9 3/3/2011: at System.IO.StreamWriter.CreateFile(String path, Boolean append)

08:26:33.9 3/3/2011: at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize)

08:26:33.9 3/3/2011: at System.IO.StreamWriter..ctor(String path, Boolean append)

08:26:33.9 3/3/2011: at System.IO.File.CreateText(String path)

08:26:33.9 3/3/2011: at ag.c(Boolean A_0, Boolean A_1)

08:26:33.9 3/3/2011: at ag.bw()

08:26:33.9 3/3/2011: at ag.br()

08:26:33.9 3/3/2011: at ag.ad()

08:26:33.9 3/3/2011: Last Exception:

08:26:33.9 3/3/2011: Object reference not set to an instance of an object.

08:26:33.9 3/3/2011: at ag.r(Boolean A_0)

08:26:33.9 3/3/2011: at ag.ad()

scummvm.txt

Posted

So ScummVM isn't quitting gracefully. What keys does ScummVM use to exit the emulator?

Posted

So ScummVM isn't quitting gracefully. What keys does ScummVM use to exit the emulator?

I imported the scummvm config from the configs included with GameEx. Here is how it is configured to exit from the ini file

configFile=[Mapping Off] Exit ScummVM (ALT+X)

Posted

I see. So it appears to me that the snap feature is attempting to "crash" or "force close" ScummVM instead of sending CTRL+X to close it. This could be a GameEx bug... Especially if you are using "press [ESC] to create snap".

It seems to me that the game is quitting during the snap process but not quitting the emulator itself. Anyone out there confirm my theory?

Posted

I think it might be related to the anti virus program running on my system. The data\runitgame.bat was getting locked by the anti virus program. When I tried to delete this file I got this message

the action can't be completed because the file is open in avgidsagent

This is what triggered the following error in the GameEx log

08:26:33.9 3/3/2011: The requested operation cannot be performed on a file with a user-mapped section open.

I disabled AVG and I was able to create a bunch of scummvm snaps. It's odd because I have configured the entire emulation folder where all my emulation stuff is to be excluded. Mark this one as resolved.

Thanks for the help!

Posted

I think it might be related to the anti virus program running on my system. The data\runitgame.bat was getting locked by the anti virus program. When I tried to delete this file I got this message

the action can't be completed because the file is open in avgidsagent

This is what triggered the following error in the GameEx log

08:26:33.9 3/3/2011: The requested operation cannot be performed on a file with a user-mapped section open.

I disabled AVG and I was able to create a bunch of scummvm snaps. It's odd because I have configured the entire emulation folder where all my emulation stuff is to be excluded. Mark this one as resolved.

Thanks for the help!

Sorry wasn't able to get back to you on this. I had seen the latest error and googled it as it didn't seem like a normal error in the log. It had to do with rights or the file being open already which in this case was by your anti-virus. Glad you got it sorted it out on your own. If all else fails and you see an error you don't recognize then try googling the results as it may be in an error in code. Marking as resolved!

Guest
This topic is now closed to further replies.
×
×
  • Create New...