Page 1 of 1

(Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-24 13:09
by Warlord_Gaz
Okay, so I have being dealing with CTD's ever since the new patch. The previous patch seemed to work fine (didn't get a chance to play online though) on Win 7. I am running Win 7, 32bit, professional.

So I decided to check out the error logs and noticed that every single crash (literally, without fail) was made up of two errors before the CTD.

I have about 20 crashes in my log (I can supply the whole file if needed) and they are all the same.

First the initial error in video.con:
Sunday, 24 October 2010 11:46:38 p.m.
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\XXXXX\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path)
at System.IO.File.OpenText(String path)
at c.g()
Followed instantaneously by:
Sunday, 24 October 2010 11:46:38 p.m.
---------------------------------
Error in writing screen aspect ratio file: c:\fullgames\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\fullgames\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)
This double error just keeps happening. Exactly the same error report, exactly the same layout, same time, same location, same files, even down to the exact location within the files.

I don't know if this is just an issue with Win 7 or perhaps other platforms too. And as far as I can tell nothing to do with anything specifically my computer. However the second error may be due to my screen. I am running a widescreen (On a laptop) and thus run PR (And everything else) on 1366 x 768.

Feel free to contradict/correct/offer suggestions to me.

Just trying to get the CTD thing sorted.

~Warlord.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-24 19:43
by burchalka
I have exact same problem as you, running XP.
I can start local game fine, but at the moment I try to connect any external server it crashes to desktop.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-25 00:45
by Warlord_Gaz
To help the Dev's and such, simply stating "I have CTD's too" doesn't really help.

Take a look in your pr crash log in the pr folder and see if that says the same error.

I generally only get the CTD every now and again on some maps after varying amount of time.

Just a general point, as great as the "I have problem too" posts are in knowing there is a problem. Can people avoid posting them. It would be better if people who have the same problem simply watch this thread and only post if they have more information or ideas to contribute.

It is possible that the second error is caused by the all lowercase directory path. Perhaps a random ".lower()" in the code. As I am fairly sure that windows views "Program Files" and "program files" as entirely different directories. (Feel free to correct me)

Thanks,
Warlord.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-25 05:34
by burchalka
Hi Warlord Gaz
I thank you for your response, my topic with exact problem details went down the list unanswered.
I do have exact same errors in prError.log file like the topic starter. About exact this file Video.con and the windows path unavailability.
And tried copy/paste c:/program files and C:/Program Files into win.explorer - same result.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-25 09:44
by Oneale90
I have an issue were the game just randomly CTD's at any point without warning or an error messgae.

Just looked in my logs and found

18 October 2010 15:02:25
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Josh\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.OpenText(String path)
at c.g()

18 October 2010 15:02:25
---------------------------------
Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

24 October 2010 12:42:40
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Josh\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.OpenText(String path)
at c.g()

24 October 2010 12:42:40
---------------------------------
Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)




So I wonder if the dev's can pull anything together from this?

I am also running WIN7 but 64B

Josh

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-29 02:32
by Warlord_Gaz
I am assuming that this is all graphics related. video.con and aspect ratio are both graphics related. What video card are you using? I am using an ATI. I am fairly sure that I am running the latest drivers.

My screen runs at 1366 x 768 or something like that. Could this be part of the problem?

~Warlord.

Edit: Just updated my drivers again will have to wait and see if that helps. Also noticed that my PR shortcut is running PR in compatibility mode (XP SP3) I am on Win 7. Should it be? I know I didn't set it to do that, I assume this is intentional?

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-29 12:06
by Mutsy
same issue, running Win7 x64 and 1920x1080 with GTX260 and 258.96 driver
maandag 25 oktober 2010 16:20:39
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Flo\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.OpenText(String path)
at c.g()

maandag 25 oktober 2010 16:20:39
---------------------------------
Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-10-30 19:28
by Jackernaut
Same here, both a CTD on map change at the end of a round, and random CTD in the middle of a game (when transporting a full 6 man squad in tank infested area in an APC, not so good.)
30 October 2010 19:44:58
---------------------------------
An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Jack\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.OpenText(String path)
at c.g()

30 October 2010 19:44:58
---------------------------------
Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)
Windows 7 64Bit
Intel core 2 duo E7200
ATI Raedon HD 3800
6 Gig DDR2 Ram

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-06 02:28
by Ghostwars
Bumping this with same issue. In the middle of a game my computer locks up completely. I have to restart machine to continue. Error log reads

An error occurred while parsing video controls
System.IO.IOException: The process cannot access the file 'C:\Users\Pat\Documents\Battlefield 2\Profiles\Default\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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at System.IO.StreamReader..ctor(String path, Encoding encoding, Boolean detectEncodingFromByteOrderMarks, Int32 bufferSize)
at System.IO.StreamReader..ctor(String path, Boolean detectEncodingFromByteOrderMarks)
at System.IO.File.OpenText(String path)
at c.g()

Friday, November 05, 2010 9:45:58 PM
---------------------------------
Error in writing screen aspect ratio file: c:\program files (x86)\ea games\battlefield 2\mods\pr\

System.IO.DirectoryNotFoundException: Could not find a part of the path 'c:\program files (x86)\ea games\battlefield 2\mods\pr\'.
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)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy)
at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
at k.a(String A_0)




Running Windows 7 64 Bit with Nvidia GTX 285 latest drivers
I7 Quad Core

This problem has only started after most recent patch

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-06 03:28
by jackcr
It's got nothing to do with the graphics card otherwise it would have done it in the last patch. I to have the same problem with random "CTD" and it's starting to get annoying now. I just wish people would figure it out for themselves that it has something to do with the patch and not your computer. If your computer worked fine with this game and other games before then the chances are it's this patch that is causing the crash.

The question everyone should ask is can it be fixed?

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-06 04:49
by Ghostwars
jackcr wrote:It's got nothing to do with the graphics card otherwise it would have done it in the last patch. I to have the same problem with random "CTD" and it's starting to get annoying now. I just wish people would figure it out for themselves that it has something to do with the patch and not your computer. If your computer worked fine with this game and other games before then the chances are it's this patch that is causing the crash.

The question everyone should ask is can it be fixed?
Sadly this mod has become unplayable for me since patch. My system locks up every time I play. Sometimes it locks up a minute in, other times 30 minutes in.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-06 06:32
by Ghostwars
Tried a Co-op and locked up with previously mentioned log errors. I have also been checking Windows error logs but nothing is showing up there. Next step will be re installation of PR.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-07 17:31
by Ghostwars
Reinstalled PR, played for 20 minutes, another complete system lockup. Same error messages in the PR log. What is really confounding is that this did not start happening until the patch came.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-07 17:56
by jackcr
Ghostwars wrote:Reinstalled PR, played for 20 minutes, another complete system lockup. Same error messages in the PR log. What is really confounding is that this did not start happening until the patch came.
Ghostwars, if I was you I would reinstall windows since your error log suggests that the program is being used by another program. Maybe your windows has become corrupted because there shouldn't be another program using Project Reailty.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-07 18:58
by jackcr
I just CTD again with nothing showing in the even viewer.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-07 23:25
by Elem3nt0
Why hasnt any Dev's posted in this thread. it seems we are being completely ignored. I believe however that this has something to do with the editing of the PR shortcut for our widescreen monitors.

Nevermind, seen that they are workign it out in the ther section of the forum. Oh and i tested it nd it doesnt have anything to do with what i mentioned.

Re: (Perhaps any platform) General CTD's. Same deal everytime.

Posted: 2010-11-09 20:27
by thepalerider
Some other things you can try to fix CTD before you uninstall/reinstall.
Backup your BF2 folder that's inside your documents folder.
Once you have a backup delete the original from your documents folder.
Starting PR from your PR shortcut
(a new default folder is created)
Link to your online account.
If all goes well (CTD gone) all you have to do to get your custom settings back is copy your 'control' file from your backup to the new profile folder.
path:
C:\Users\your user name here\Documents\Battlefield 2\Profiles\0002
note: you may not have a 0002 folder so use 0001

As far as editing your shortcut for wide-screen
It should look like this:
"C:\Program Files (x86)\EA GAMES\Battlefield 2\mods\pr\pr.exe" start +widescreen 1 +szx 1600 +szy 1200 +restart

adjust for the desired resolution

Your shortcut can do more. I use:
start +widescreen 1 +szx 1600 +szy 1200 +restart +playerName xxxx +playerPassword xxxx

Replace XXXX with your user name and password

Adding this string bypasses the startup video, logs you in and takes you directly to the server browser.

Good luck
Welcome to PR
"Project reality, it's all about the teamwork."