Page 1 of 1

Exception in Launcher

Posted: 2014-06-02 22:32
by zibeth
Hi, wanted to play BF :P R2 again after a while but I get an unhandled exception in the launcher having to do with the UIAutomationCore.dll that cannot be found but I see it installed in System32. There's another thread which advised to install a version of .NET that I then installed, well repaired because it already was installed, then downloaded the linked UIAutomationCore.dll which then replaced the one in System32 but I still got the exception and the following log. I'm using Desura if it makes any difference.

Code: Select all

Project Reality Log File
PRLauncher.exe started at: 2014-06-03T00:15:06

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

Der Typeninitialisierer f?r "System.Windows.Automation.Peers.AutomationPeer" hat eine Ausnahme verursacht.

Further details can be found in the following file:

[url]C:\Program Files (x86)\EA GAMES\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.TypeInitializationException: Der Typeninitialisierer f?r "System.Windows.Automation.Peers.AutomationPeer" hat eine Ausnahme verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer f?r "System.Windows.Automation.InvokePatternIdentifiers" hat eine Ausnahme verursacht. ---> System.DllNotFoundException: Die DLL "UIAutomationCore.dll": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.
   bei MS.Internal.Automation.UiaCoreTypesApi.RawUiaLookupId(AutomationIdType type, Guid& guid)
   bei System.Windows.Automation.AutomationIdentifier.Register(AutomationIdType type, Guid guid, String programmaticName)
   bei System.Windows.Automation.InvokePatternIdentifiers..cctor()
   --- Ende der internen Ausnahmestapel?berwachung ---
   bei System.Windows.Automation.Peers.AutomationPeer.Initialize()
   bei System.Windows.Automation.Peers.AutomationPeer..cctor()
   --- Ende der internen Ausnahmestapel?berwachung ---
   bei System.Windows.Automation.Peers.AutomationPeer.RaiseFocusChangedEventHelper(IInputElement newFocus)
   bei System.Windows.Input.KeyboardDevice.ChangeFocus(DependencyObject focus, Int32 timestamp)
   bei System.Windows.Input.KeyboardDevice.TryChangeFocus(DependencyObject newFocus, IKeyboardInputProvider keyboardInputProvider, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   bei System.Windows.Input.KeyboardDevice.Focus(DependencyObject focus, Boolean askOld, Boolean askNew, Boolean forceToNullIfFailed)
   bei System.Windows.Input.KeyboardDevice.Focus(IInputElement element)
   bei System.Windows.Interop.HwndKeyboardInputProvider.OnSetFocus(IntPtr hwnd)
   bei System.Windows.Interop.HwndKeyboardInputProvider.FilterMessage(IntPtr hwnd, WindowMessage message, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
Critical Error: An unhandled exception has occured. Details are as follows:

Der Typeninitialisierer f?r "System.Windows.Automation.Peers.AutomationPeer" hat eine Ausnahme verursacht.

Further details can be found in the following file:

[url]C:\Program Files (x86)\EA GAMES\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.TypeInitializationException: Der Typeninitialisierer f?r "System.Windows.Automation.Peers.AutomationPeer" hat eine Ausnahme verursacht. ---> System.TypeInitializationException: Der Typeninitialisierer f?r "System.Windows.Automation.InvokePatternIdentifiers" hat eine Ausnahme verursacht. ---> System.DllNotFoundException: Die DLL "UIAutomationCore.dll": Das angegebene Modul wurde nicht gefunden. (Ausnahme von HRESULT: 0x8007007E) kann nicht geladen werden.
   bei MS.Internal.Automation.UiaCoreTypesApi.RawUiaLookupId(AutomationIdType type, Guid& guid)
   bei System.Windows.Automation.AutomationIdentifier.Register(AutomationIdType type, Guid guid, String programmaticName)
   bei System.Windows.Automation.InvokePatternIdentifiers..cctor()
   --- Ende der internen Ausnahmestapel?berwachung ---
   bei System.Windows.Automation.Peers.AutomationPeer.Initialize()
   bei System.Windows.Automation.Peers.AutomationPeer..cctor()
   --- Ende der internen Ausnahmestapel?berwachung ---
   bei System.Windows.Automation.Peers.AutomationPeer.ListenerExists(AutomationEvents eventId)
   bei System.Windows.Controls.Button.OnClick()
   bei System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
   bei System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
   bei System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
   bei System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
   bei System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
   bei System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
   bei System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
   bei System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
   bei System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
   bei System.Windows.Input.InputManager.ProcessStagingArea()
   bei System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
   bei System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
   bei System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
   bei System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   bei MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   bei System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   bei MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
   bei System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   bei MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
   bei MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
   bei System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
   bei System.Windows.Threading.Dispatcher.Run()
   bei System.Windows.Application.RunDispatcher(Object ignore)
   bei System.Windows.Application.RunInternal(Window window)
   bei System.Windows.Application.Run(Window window)
   bei PRLauncher.App.()

Re: Exception in Launcher

Posted: 2014-06-24 23:11
by zibeth
Anyone know how to fix this without having to deinstall 4.5.1 and install 4.0? I tried this and it worked, but some applications require a later version of .NET and sure enough Steam installed a later .NET version again as dependency for some game so the PRLauncher again failed to work with the same exception cropping up.

Re: Exception in Launcher

Posted: 2014-06-25 04:00
by Psyrus
You shouldn't have to do that, at least not in windows 7.

Image

I'm running 4.5.1 and PR without issues.

Re: Exception in Launcher

Posted: 2014-06-27 12:38
by zibeth
For some reason I was missing the version of UIAutomationCore.dll in %SystemRoot%\SysWoW64 so I copied it from another machine and now it works. :)

Re: Exception in Launcher

Posted: 2014-06-27 14:03
by Psyrus
Nice! Good to hear~

Re: Exception in Launcher

Posted: 2014-06-28 15:44
by Daniel
zibeth wrote:For some reason I was missing the version of UIAutomationCore.dll in %SystemRoot%\SysWoW64 so I copied it from another machine and now it works. :)
How did you find out it was missing? :)

Re: Exception in Launcher

Posted: 2014-06-29 00:54
by zibeth
Daniel wrote:How did you find out it was missing? :)
Even having the %SystemRoot%/System32/UIAutomationCore.dll in place with the right ownership and access rights I was still getting the "DLL not found" error in the log output, so after a while I remembered that there was a 64-bit to 32-bit compatibility layer with its own system directory for 32-bit versions of the DLLs. It occured to me that PRLauncher could actually be an application using this layer for some reason (it being 32-bit...? Windows needing the compatibility DLL regardless?), for which I may not have the corresponding UIAutomationCore.dll. And it seems to be that was the case. ;)