[Alpha 1.40] Theme Editor throws an exception when attempting to launch

Posts: 21
Description:
The Theme Editor is unable to open on 1.40 due to an exception.

Steps to reproduce:

1. Install the latest Alpha 1.40 update
2. Notice it gives the error prescribed:

The type initializer for 'ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider' threw an exception.


Expected behaviour: The Theme Editor should open without issue.
Posts: 21
Log file:

Error: 5/24/2021 7:51:58 PM (UTC)
ATVO version: 1.40.0.0
Themes SDK version: 1.33.0.0
Theme version: none

Unhandled exception
System.TypeInitializationException: The type initializer for 'ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider..cctor() in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\ThemeModels\DataBindings\SpecialDataBindingProvider.cs:line 19
--- End of inner exception stack trace ---
at ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider.GetList()
at ATVO.ThemeEditor.App.OnStartup(StartupEventArgs e) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\App.xaml.cs:line 101
at System.Windows.Application.<.ctor>b__1_0(Object unused)
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)
Posts: 785
Thanks, I will check it out.
Posts: 62
I can confirm the same error.

This looks like a great update. Looking forward to testing it when I can.
Posts: 3
A similar thing occurs when I try to load any saved theme.
Posts: 785
This only happens on 1.40, right?
Posts: 3
This is the crash log when you try to load a saved theme

Error: 5/25/2021 8:59:05 PM (UTC)
ATVO version: 1.40.0.0
Themes SDK version: 1.33.0.0
Theme version: none

Unhandled exception
System.TypeInitializationException: The type initializer for 'ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider' threw an exception. ---> System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
at System.Reflection.RuntimeModule.GetTypes(RuntimeModule module)
at System.Reflection.Assembly.GetTypes()
at ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider..cctor() in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\ThemeModels\DataBindings\SpecialDataBindingProvider.cs:line 19
--- End of inner exception stack trace ---
at ATVO.ThemeEditor.ThemeModels.DataBindings.SpecialDataBindingProvider.GetList()
at ATVO.Theme.Code.EditorTheme..ctor(String path, String encryptedFilepath, ISimulation sim) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Theme\Code\EditorTheme.cs:line 43
at ATVO.Theme.ThemeModule.OnLoadTheme(String filepath) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.Theme\ThemeModule.cs:line 68
at Prism.Events.EventSubscription`1.<>c__DisplayClass11_0.<GetExecutionStrategy>b__0(Object[] arguments) in d:\a\1\s\Source\Prism\Events\EventSubscription.cs:line 173
at Prism.Events.EventBase.InternalPublish(Object[] arguments) in d:\a\1\s\Source\Prism\Events\EventBase.cs:line 60
at ATVO.ThemeLoader.ViewModels.LoadThemeWindowViewModel.Load(Window window) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeLoader\ViewModels\LoadThemeWindowViewModel.cs:line 83
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)
Posts: 42
same issue here.
Posts: 72
If you open ATVO, go to settings, updates, then change from "alpha" to "stable" it'll revert your ATVO and Theme Editor back to the last stable build so you can open and use themes. Obviously not a permanent fix but a temporary one so everybody can use and edit what they have
Posts: 100
Same issue for me, thought I was the only one. Reverting to stable solved the issue for now.
Posts: 38
I have the same exception error on all my themes, also it throws the exception with the Demo Overlay Nick built.
Posts: 785
Please try hotfix 1.40.0.1 when you get a chance, this should hopefully be fixed.
Posts: 62
Yep! The hotfix loaded my latest theme without errors. I'll test the new functionality soon! Thanks for the fix!

-Jeremy