Page 1 of 1

Critical Error: An unhandled exception has occured.

Posted: 2020-05-12 12:48
by Budley
Hello,
I have had a power outage in the middle of a match in PR and when I booted the game up again I got this error:

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2020-05-12T14:43:35

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

 > System.NullReferenceException: Object reference not set to an instance of an object.
   at Reality.BF2.Settings.GlobalLauncher.GetAutoLoginUser()
   at PRLauncher.WPF.ViewModel.MainWindowViewModel.LaunchStart(LaunchType a, Boolean b)
   at PRLauncher.WPF.ViewModel.MainWindowViewModel.OnLaunch(Object a)
   at Reality.Utils.WPF.RelayCommand.Execute(Object )
   at MS.Internal.Commands.CommandHelpers.CriticalExecuteCommandSource(ICommandSource commandSource, Boolean userInitiated)
   at System.Windows.Controls.Primitives.ButtonBase.OnClick()
   at System.Windows.Controls.Button.OnClick()
   at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   at System.Windows.Input.InputManager.ProcessStagingArea()
   at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
I've tried deleting the "default" folder in my documents and starting the launcher as an administrator, but I got the same error again.

Help would be appreciated :)

Re: Critical Error: An unhandled exception has occured.

Posted: 2020-05-12 12:51
by AlonTavor
Try deleting the GlobalLauncher.con file, outside of default

Re: Critical Error: An unhandled exception has occured.

Posted: 2020-05-12 12:59
by Budley
AlonTavor wrote:Try deleting the GlobalLauncher.con file, outside of default
I did, and the previous error isn't popping up (thanks a lot :) ), but now I got this after I "retrieved" my profile:
https://ibb.co/LdbV7k0

Re: Critical Error: An unhandled exception has occured.

Posted: 2020-05-12 13:06
by AlonTavor
Just delete the entire Profiles folder, something went wrong there.

Re: Critical Error: An unhandled exception has occured.

Posted: 2020-05-12 13:07
by Budley
Nevermind, I've reset the profiles or whatever in the options menu, it works now. Thank you!