ATVO by Appgineering
Download
Read-only

Crashing / Can't open theme nor open theme in editor

7 posts 4,377 views Started 19 Sept 2020, 19:31
Showing 1–7 of 7 posts
Ezeckiel R.
Original poster

Not sure how this started... but I gave a picture and a log of what happened in attachments.

Ezeckiel R.
Reply #2

Here's the error from the text log.

Error: 9/19/2020 7:46:33 PM (UTC)
ATVO version: 1.33.0.0
Themes SDK version: 1.33.0.0
Theme version: none

Unhandled exception
System.Collections.Generic.KeyNotFoundException: The given key was not present in the dictionary.
at System.ThrowHelper.ThrowKeyNotFoundException()
at System.Collections.Generic.Dictionary2.get_Item(TKey key) at ATVO.ThemeEditor.ThemeModels.Widget.Deserialize(XElement element, Boolean convertName) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\ThemeModels\Widget.cs:line 353 at ATVO.ThemeEditor.ThemeModels.Serialization.ThemeSerializer.ReadTheme(XDocument doc, Theme theme) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\ThemeModels\Serialization\ThemeSerializer.cs:line 318 at ATVO.ThemeEditor.ThemeModels.Serialization.ThemeSerializer.LoadTheme(String path, String encryptedFilepath, Boolean isInEditor) in D:\Users\Nick\Documents\Programming\ATVO\Appgineer.in-TV-Overlay-for-iRacing\ATVO.ThemeEditor\ThemeModels\Serialization\ThemeSerializer.cs:line 97 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.EventSubscription1.<>c__DisplayClass11_0.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)

Nick Thissen Appgineering
Reply #3

Can you send us the theme? Just the .atvotheme file is enough.

Nick Thissen Appgineering
Reply #5

Somehow you managed to corrupt the theme file by giving a widget an empty "DataOrder" property. I will see if I can update ATVO to still load if that happens again (e.g. pick the default order).

For now, you can probably salvage it yourself by opening the *.atvotheme file in a text editor, and doing a search for place(s) where DataOrder is empty.

Search for:
DataOrder=""

and replace by a valid data order, for example "position":
DataOrder="position"

Then it should open in the Theme Editor again, and you can export it.

Ezeckiel R.
Reply #6

Nick Thissen wrote:
Somehow you managed to corrupt the theme file by giving a widget an empty "DataOrder" property. I will see if I can update ATVO to still load if that happens again (e.g. pick the default order).

For now, you can probably salvage it yourself by opening the *.atvotheme file in a text editor, and doing a search for place(s) where DataOrder is empty.

Search for:
DataOrder=""

and replace by a valid data order, for example "position":
DataOrder="position"

Then it should open in the Theme Editor again, and you can export it.

Thank you!!!

Archive · Read-only

New replies have moved to Discord.