Page 1 of 1

Critical Error

Posted: 2015-05-31 12:36
by Soban
Hi all,

I encountering critical error see below.


Image

Then as folowing message:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2015-05-31T14:50:15

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

The process cannot access the file 'D:\Users\User\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:\Games\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 'D:\Users\User\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)
[/i]

Few of my friends encounterin same error, so we basicaly can't play PR. Its just apiering randomly in the game.

If anyone know how to fix this please help us out.
Thank you in advance.

Re: Critical Error

Posted: 2015-06-01 01:34
by LITOralis.nMd
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

Posted: 2015-06-01 04:07
by Soban
Big thanks LITOralis,

will try those steps this week and will tell you how it went :)

Re: Critical Error

Posted: 2015-06-01 18:20
by Mr.VdHeide
Thanks a lot for this tut, it worked for me and everything is fine now!


PR mumble is running as normal. :-o :-o





Dj.

Re: Critical Error

Posted: 2015-06-02 14:19
by kurokorr
What would you recommend doing if none of the above specified ways work?

Re: Critical Error

Posted: 2015-06-02 20:38
by Soban
kurokorr wrote:What would you recommend doing if none of the above specified ways work?
Kurok did you realy pressed apply button? because i think i just pressed OK and still had this bug, but then retried and pressed APPLY button. Its working for me. When you press apply button you got that confirmation thingy poping out for 1 sec :)
I'm talking about second way.
Hope it will help.

Re: Critical Error

Posted: 2015-06-02 21:13
by kurokorr
Soban wrote:Kurok did you realy pressed apply button? because i think i just pressed OK and still had this bug, but then retried and pressed APPLY button. Its working for me. When you press apply button you got that confirmation thingy poping out for 1 sec :)
I'm talking about second way.
Hope it will help.
Thanks for answering but I can assure that I executed everything 1:1 at least 2 times.

Re: Critical Error

Posted: 2015-06-03 12:28
by Pronck
I still have the video.con error despite renaming the old profiles folder and changing permissions

Re: Critical Error

Posted: 2015-06-03 20:56
by Souls Of Mischief
Pronck wrote:I still have the video.con error despite renaming the old profiles folder and changing permissions
Same here.

Re: Critical Error

Posted: 2015-06-06 11:21
by Soban
Souls Of Mischief wrote:Same here.
my bug reapierd and again geting crashed... any other solution to this ... ?

Re: Critical Error

Posted: 2015-06-08 09:25
by Arab
It's already been added to the bug tracker :)

Re: Critical Error

Posted: 2015-06-10 12:36
by Arab
I'm doing a test to see if adding these files from vBF2 will solve the issue.

Download and extract this folder into your mods/pr/settings directory and try:
settings vBF2

Make a copy of your ProjectReality folder before trying this. It's safe but see if this fixes the issue and reply with results :)