Unhanlded Exception when loading launcher

Help and support regarding PR:BF2 installation and in-game issues
Post Reply
Willithappen
Posts: 1
Joined: 2014-10-04 00:07

Unhanlded Exception when loading launcher

Post by Willithappen »

Hi guys i just finished downloading PR and installed the game with the ISO, everything seemed fine when installing, no stopping or errors or anything of the such, but when i load the launcher (tried with administrator as well) i get a Critical Error message saying

An Unhandled exception has occurred. Details are as follows:
object reference not set to an instance of an object
further details found in following file :
(References my install location of pr and bf2)

the file that it references contains the following

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2014-10-04T10:05:21

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

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]F:\Program Files (x86)\Battlefield 2\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.NullReferenceException: Object reference not set to an instance of an object.
   at  . .()
   at Reality.BF2.Settings.Video.(String )
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 profile)
   at PRLauncher.App.()
   at PRLauncher.App.OnStartup(StartupEventArgs )
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)

im really confused and would love some help to get into the game.

thanks :)


UPDATE 1: As of now i have also tried reinstalling PR, ensuring there was no left over files or registry entries and i am left back at the same spot with what i assume to be the same error but i will post it too just incase it is different

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2014-10-04T10:47:13

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

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]F:\Program Files (x86)\Battlefield 2\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.NullReferenceException: Object reference not set to an instance of an object.
   at  . .()
   at Reality.BF2.Settings.Video.(String )
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 profile)
   at PRLauncher.App.()
   at PRLauncher.App.OnStartup(StartupEventArgs )
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Last edited by Willithappen on 2014-10-04 00:47, edited 1 time in total.
Terminal-Access
Posts: 24
Joined: 2009-08-13 05:13

Re: Unhanlded Exception when loading launcher

Post by Terminal-Access »

Bumping as i am getting the same error [posting my log file aswell]

PRLauncher.log:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2014-12-07T12:33:27

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

Object reference not set to an instance of an object.

Further details can be found in the following file:

[url]D:\Program Files (x86)\Steam\SteamApps\common\Battlefield 2\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.NullReferenceException: Object reference not set to an instance of an object.
   at  . .()
   at Reality.BF2.Settings.Video.(String )
   at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)
   at Reality.BF2.Settings.Video.GetDefaultResolution()
   at Reality.BF2.Settings.Video.CreateDefault(UInt16 profile)
   at PRLauncher.App.()
   at PRLauncher.App.OnStartup(StartupEventArgs )
   at System.Windows.Application.<.ctor>b__1(Object unused)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
System Specs:
Windows 8.1 Professional (VLK)
16 GB DDR3
ATI Radeon HD 7870 BE (Gigabite)

Al updates and drivers are uptodate.
BF2 is a steam install fully verified.
Fresh PR v 1.2.0.0 install.

If you guys need any more info let me know.
Image
Terminal-Access
Posts: 24
Joined: 2009-08-13 05:13

Re: Unhanlded Exception when loading launcher

Post by Terminal-Access »

Just wanted to post an update:

I have just upgraded to the latest AMD drivers that were releaced today (amd catalyst omega 14.12) unfortunatly this dose not fix the error.

Upon further review of the trace stack it appears the fault is when the launcher is attempting to call up the computers video details

and then further assertain what the computers current resolution is.

as with most null exceptions it appears some additional error checking may be needed on this perticular function as its returning a null value hence the crash.


Any insight in to potential fixes for this, even if its "wait untill the launcher has been updated" kind of message would be appreciated.


cheers

Lee.
Image
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Unhanlded Exception when loading launcher

Post by LITOralis.nMd »

Hiya,
Go to MyDocuments\ProjectReality

Rename the \Profiles directory to \ProfilesBackup

GO to D:\Program Files (x86)\EA GAMES\Battlefield 2\
Run PRBF2.exe once.

PR will sorta start, you'll get to main screeen and it will say "You must use launcher". Close PR.

Run PRLauncher.exe , go to options->Pick your online profile from top menu->Video Tab-> check that your resolution and other options are set correctly. Change if needed. Click Apply.

Go back to main PRlauncher window, click Play.
LITOralis.nMd
Retired PR Developer
Posts: 5658
Joined: 2010-04-10 16:15

Re: Unhanlded Exception when loading launcher

Post by LITOralis.nMd »

Here are the other three ways to do this,

moving the video.con file from Profiles\0001 to Profiles\Default is the most usual solution in my experience:
[R-COM]LITOralis.nMd wrote:Your video.con file for your new profile was corrupted/deleted/etc.

Three ways to fix this:

Option 1:
GO to Documents\ProjectReality.old\Profiles\0001 and copy your VIDEO.CON file.
Go to Documents\ProjectReality\Profiles\0001 and paste the VIDEO.CON file.

Start PR and test.

Option 2:
Start PRlauncher,
Click Options
In the top white box, select your new profile
Select the Video Tab,

Change your display resolution , graphics quality and Anti-aliasing to suit your system,

CLICK APPLY.

test PR.

Option 3:
If that fails,
try this:
Start PRlauncher,
Click Options
In the top white box, select your new profile
Click the RESET ALL PROFILES button on bottom left.
CLICK APPLY.
test PR.
Terminal-Access
Posts: 24
Joined: 2009-08-13 05:13

Re: Unhanlded Exception when loading launcher

Post by Terminal-Access »

Awesome and thank you!! ill give this a go and report back, im acctually just finishing off a complete fresh reinstall of BF2 and PR right now so as soon as that has finished ill give the suggested solutions a try.

thanks again!

Pre-Update 1:
Just of note, the ProjectReality/profiles folder in my documents was never created the first time around as the launcher crashes before it can do that.

Update 1:

First method worked Awesomness and thank you once again, i should now be able to set up my profile and play PR wooohoo xD
Last edited by Terminal-Access on 2014-12-10 13:29, edited 1 time in total.
Image
Post Reply

Return to “PR:BF2 Support”