Page 1 of 1

Critical Error: An unhandled exception has occured.

Posted: 2015-06-06 04:11
by sharpie
Map was Pavlovsk Bay, settings are maxed out. Game CTD's with this message:
Spoiler for log:
Critical Error: An unhandled exception has occured. Details are as follows:

The process cannot access the file 'C:\Users\******\Documents\ProjectReality\Profiles\0001\Video.con' because it is being used by another process.

Further details can be found in the following file:

[url]D:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

Visit Support Forum

> System.IO.IOException: The process cannot access the file 'C:\Users\Davis_Von_Klein2\Documents\ProjectReality\Profiles\0001\Video.con' because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
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, Boolean useLongPath, Boolean checkHost)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Encoding encoding)
at Reality.BF2.Console.ConUtils.GetValue(String a, String b, String& c, Encoding d, Boolean stripQuotes, Boolean allowEmpty)
at Reality.BF2.Settings.Video.GetResolution(UInt16 a)
at Reality.BF2.Settings.Video.GetAspectRatio(UInt16 a)
at Ca.a(UInt16 a)
at Ca.a(Object a, FileSystemEventArgs b)
at System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
at System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)
[/code]

Re: Critical Error: An unhandled exception has occured.

Posted: 2015-06-06 04:50
by DC_K
There's a couple of threads about that.. try the following
'[R-COM wrote:LITOralis.nMd;2074712']You have directories set to Read Only mode.

two ways to fix:

First way:
1. rename D:\Users\User\Documents\ProjectReality\Profiles\ to D:\Users\User\Documents\ProjectReality\Profiles-Old\
2. Run C:\Program Files (x86)\Project Reality\Project Reality BF2\PRBF2.exe once, you will get to main screen and says you must use launcher to run PR. Close game.
3. Start PRLauncher normally.

Second way:
Go to D:\Users\User\Documents\
Right Click the ProjectReality\ directory, select Properties.
Make sure you have Read/Write permissions set to ALLOW for your Windows Login account for everything except Special Permissions.
Click APPLY
Image

Re: Critical Error: An unhandled exception has occured.

Posted: 2015-06-06 20:22
by sharpie
Thank you DC-K / Lito

First Way: did that, i'll see what happens.



Second Way:
Read and Write permissions were already set to 'allow'

Thanks again

Re: Critical Error: An unhandled exception has occured.

Posted: 2015-06-06 20:45
by DeaR.DeviL
I just had the same error (first crash in 1.3) I will post my .log if it might help find the problem. I was playing drove winter and was dead when it crashed
Spoiler for log:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2015-06-06T20:28:51

Critical Error: An unhandled exception has occured. Details are as follows:

The process cannot access the file C:\Users\***\Documents\ProjectReality\Profiles\0004\Video.con because it is being used by another process.

Further details can be found in the following file:

[url]C:\Program Files (x86)\Project Reality\Project Reality BF2\mods\pr\bin\PRLauncher.log[/url]

Please report this error to the Project Reality Team, and include the log file in your report.

[url=https://www.realitymod.com/forum/f27-pr-bf2-support]Visit Support Forum[/url]

 > System.IO.IOException: The process cannot access the file  C:\Users\***\Documents\ProjectReality\Profiles\0004\Video.con because it is being used by another process.
   vid System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
   vid 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, Boolean useLongPath, Boolean checkHost)
   vid System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost)
   vid System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize, Boolean checkHost)
   vid System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
   vid System.IO.StreamReader..ctor(String path, Encoding encoding)
   vid Reality.BF2.Console.ConUtils.GetValue(String a, String b, String& c, Encoding d, Boolean stripQuotes, Boolean allowEmpty)
   vid Reality.BF2.Settings.Video.GetResolution(UInt16 a)
   vid Reality.BF2.Settings.Video.GetAspectRatio(UInt16 a)
   vid Ca.a(UInt16 a)
   vid Ca.a(Object a, FileSystemEventArgs b)
   vid System.IO.FileSystemWatcher.CompletionStatusChanged(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* overlappedPointer)
   vid System.Threading._IOCompletionCallback.PerformIOCompletionCallback(UInt32 errorCode, UInt32 numBytes, NativeOverlapped* pOVERLAP)