Page 1 of 1

Object reference not set to an instance of an object

Posted: 2020-07-23 06:15
by tdat28
Hi, im new with PR and i downloaded this game yesterday. When i launched the game, it crashed and this log appeared:

Code: Select all

Project Reality Log File
prlauncher.exe started at: 2020-07-23T13:06:01

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:\PR-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/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Reality.BF2.Game.LaunchControl...MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   at System.Threading.ThreadPoolWorkQueue.Dispatch()
What can i do to fix this? At first it told me to update the game so that i can play on public server but i skip it and start the game.

Re: Object reference not set to an instance of an object

Posted: 2020-07-23 18:03
by AlonTavor
Update it and tell us if it still happens.

Re: Object reference not set to an instance of an object

Posted: 2020-07-24 05:06
by tdat28
When i update it another error appeared, i haven't changed anything in the setup.

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2020-07-24T12:03:26

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

Exception has been thrown by the target of an invocation.

Further details can be found in the following file:

[url]D:\PR-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/forumdisplay.php?f=27]Visit Support Forum[/url]

 > System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
   at Reality.BF2.Game.PreLaunch.get_ProfileType()
   at ?.(Object )
   at ?.(MethodBase , Boolean )
   at ?.??(? , ? )
   at ?.()
   at ?.?(Boolean )
   at ?.(Object )
   at ?.()
   at ?.(Object , UInt32 )
   at ?.?(Boolean )
   at ?.?()
   at ?.(Object[] , Type[] , Type[] , Object[] )
   at ?.(Stream , String , Object[] , Type[] , Type[] , Object[] )
   at ?.(Stream , String , Object[] )
   at ?.(Stream , String , Object[] )
   at Reality.BF2.Game.LaunchControl.VerifyFiles(PreLaunch , Action`2 )
   at PRLauncher.WPF.ViewModel.MainWindowViewModel.b.a(Object a, LaunchNewUpdateEventArgs b)
   --- End of inner exception stack trace ---
   at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
   at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   at ?.(Object )
   at ?.(MethodBase , Boolean )
   at ?.??(? , ? )
   at ?.()
   at ?.?(Boolean )
   at ?.(Object )
   at ?.()
   at ?.(Object , UInt32 )
   at ?.?(Boolean )
   at ?.?()
   at ?.(Object[] , Type[] , Type[] , Object[] )
   at ?.(Stream , Int32 , Object[] , Type[] , Type[] , Object[] )
   at ?.(Int32 , Type[] , Type[] , Boolean )
   at ?.??(? , ? )
   at ?.()
   at ?.?(Boolean )
   at ?.(Object )
   at ?.()
   at ?.(Object , UInt32 )
   at ?.?(Boolean )
   at ?.?()
   at ?.(Object[] , Type[] , Type[] , Object[] )
   at ?.(Stream , String , Object[] , Type[] , Type[] , Object[] )
   at ?.(Stream , String , Object[] )
   at ?.(Stream , String , Object[] )
   at Reality.BF2.Game.LaunchControl.UpdateCheck(PreLaunch , Boolean , Action`1 )
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.ThreadHelper.ThreadStart()

Re: Object reference not set to an instance of an object

Posted: 2020-07-24 05:46
by AlonTavor
Delete profiles folder in my documents/Project Reality

Re: Object reference not set to an instance of an object

Posted: 2020-07-28 12:09
by ULMG
dosn't work