Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Larkator not working at all #46

Closed
AstraRune opened this issue Jun 20, 2020 · 1 comment
Closed

Larkator not working at all #46

AstraRune opened this issue Jun 20, 2020 · 1 comment

Comments

@AstraRune
Copy link

I can't launch the app at all. I tried reinstalling it but the set up wouldn't work either.


Whoops...

Sorry, something bad happened and the application must exit.

If you wish to report this issue please press Ctrl-C now to copy the details and

paste it into a new issue along with a description of what was happening

at: https://github.com/coldino/Larkator/issues

Thanks!

Exception:

System.Windows.Markup.XamlParseException: The invocation of the constructor on type 'LarkatorGUI.Welcome' that matches the specified binding constraints threw an exception. ---> System.Configuration.ConfigurationErrorsException: Configuration system failed to initialize ---> System.Configuration.ConfigurationErrorsException: '.', hexadecimal value 0x00, is an invalid character. Line 12, position 1. (C:\Users\user\AppData\Local\Apps\2.0\Data\H38GEG5W.RYK\KL0YQYZM.08Z\lark..tion_0000000000000000_0001.0009_697c4936d588ba63\Data\1.0.0.0\user.config line 12) ---> System.Xml.XmlException: '.', hexadecimal value 0x00, is an invalid character. Line 12, position 1.

at System.Xml.XmlTextReaderImpl.Throw(Exception e)

at System.Xml.XmlTextReaderImpl.Throw(String res, String[] args)

at System.Xml.XmlTextReaderImpl.ParseText(Int32& startPos, Int32& endPos, Int32& outOrChars)

at System.Xml.XmlTextReaderImpl.ParseText()

at System.Xml.XmlTextReaderImpl.ParseElementContent()

at System.Xml.XmlTextReaderImpl.Read()

at System.Xml.XmlTextReader.Read()

at System.Xml.XmlTextReaderImpl.Skip()

at System.Xml.XmlTextReader.Skip()

at System.Configuration.XmlUtil.StrictSkipToNextElement(ExceptionAction action)

at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)

at System.Configuration.BaseConfigurationRecord.ScanSectionsRecursive(XmlUtil xmlUtil, String parentConfigKey, Boolean inLocation, String locationSubPath, OverrideModeSetting overrideMode, Boolean skipInChildApps)

at System.Configuration.BaseConfigurationRecord.ScanSections(XmlUtil xmlUtil)

at System.Configuration.BaseConfigurationRecord.InitConfigFromFile()

--- End of inner exception stack trace ---

at System.Configuration.ConfigurationSchemaErrors.ThrowIfErrors(Boolean ignoreLocal)

at System.Configuration.BaseConfigurationRecord.ThrowIfParseErrors(ConfigurationSchemaErrors schemaErrors)

at System.Configuration.BaseConfigurationRecord.ThrowIfInitErrors()

at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

--- End of inner exception stack trace ---

at System.Configuration.ClientConfigurationSystem.OnConfigRemoved(Object sender, InternalConfigEventArgs e)

at System.Configuration.Internal.InternalConfigRoot.OnConfigRemoved(InternalConfigEventArgs e)

at System.Configuration.Internal.InternalConfigRoot.RemoveConfigImpl(String configPath, BaseConfigurationRecord configRecord)

at System.Configuration.BaseConfigurationRecord.GetSectionRecursive(String configKey, Boolean getLkg, Boolean checkPermission, Boolean getRuntimeObject, Boolean requestIsHere, Object& result, Object& resultRuntimeObject)

at System.Configuration.BaseConfigurationRecord.GetSection(String configKey)

at System.Configuration.ClientConfigurationSystem.System.Configuration.Internal.IInternalConfigSystem.GetSection(String sectionName)

at System.Configuration.ConfigurationManager.GetSection(String sectionName)

at System.Configuration.ClientSettingsStore.ReadSettings(String sectionName, Boolean isUserScoped)

at System.Configuration.LocalFileSettingsProvider.GetPropertyValues(SettingsContext context, SettingsPropertyCollection properties)

at System.Configuration.SettingsBase.GetPropertiesFromProvider(SettingsProvider provider)

at System.Configuration.SettingsBase.GetPropertyValueByName(String propertyName)

at System.Configuration.SettingsBase.get_Item(String propertyName)

at System.Configuration.ApplicationSettingsBase.GetPropertyValue(String propertyName)

at System.Configuration.ApplicationSettingsBase.get_Item(String propertyName)

at LarkatorGUI.Properties.Settings.get_SaveFile()

at LarkatorGUI.Welcome..ctor()

--- End of inner exception stack trace ---

at System.Windows.Markup.WpfXamlLoader.Load(XamlReader xamlReader, IXamlObjectWriterFactory writerFactory, Boolean skipJournaledProperties, Object rootObject, XamlObjectWriterSettings settings, Uri baseUri)

at System.Windows.Markup.WpfXamlLoader.LoadBaml(XamlReader xamlReader, Boolean skipJournaledProperties, Object rootObject, XamlAccessLevel accessLevel, Uri baseUri)

at System.Windows.Markup.XamlReader.LoadBaml(Stream stream, ParserContext parserContext, Object parent, Boolean closeStream)

at System.Windows.Application.LoadBamlStreamWithSyncInfo(Stream stream, ParserContext pc)

at System.Windows.Application.LoadComponent(Uri resourceLocator, Boolean bSkipJournaledProperties)

at System.Windows.Application.DoStartup()

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)

at System.Windows.Threading.DispatcherOperation.InvokeImpl()

at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)

at MS.Internal.CulturePreservingExecutionContext.CallbackWrapper(Object obj)

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 MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)

at System.Windows.Threading.DispatcherOperation.Invoke()

at System.Windows.Threading.Dispatcher.ProcessQueue()

at System.Windows.Threading.Dispatcher.WndProcHook(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)

at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)

at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)

at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)

at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)

at System.Windows.Application.RunDispatcher(Object ignore)

at System.Windows.Application.RunInternal(Window window)

at System.Windows.Application.Run(Window window)

at LarkatorGUI.App.Main()


OK

@coldino
Copy link
Owner

coldino commented Mar 27, 2021

I appreciate this was long ago now, but looking in to it regardless.

This looks like a corrupt configuration file. Not sure what would have caused it, but I can make Larkator more resilient to these sorts of issues and at least fall back to defaults and start cleanly.

A workaround would have been to delete the named configuration file - in this case %LocalAppData%\Apps\2.0\Data\H38GEG5W.RYK\KL0YQYZM.08Z\lark..tion_0000000000000000_0001.0009_697c4936d588ba63\Data\1.0.0.0\user.config (but this varies per install).

coldino added a commit that referenced this issue Apr 3, 2021
* Added the Genesis map (first one)
* Added the Valguero map (Closes #39 - thanks @Rottenbeer)
* Added the Crystal Isles map (thanks @m-soltys)
* Recalibrated **all** the maps using a new calibration system (Fixes #35)
* Updated ArkSavegameToolkit (a longshot that might help #47 or #51)
* Added button to force a Refresh of the savegame - off by default (from #33, thanks @jamckee)
* Added options to change which stats are displayed (Fix #31, from #33, thanks @jamckee)
* Added support for partial species name match (from #33, thanks @jamckee)
* Added option to hide untameable species (Fix #30, from #33, thanks @jamckee)
* Fix teleport coordinates when in a locale that switches , and . (Fix #48, closes #40 - thanks @WiredSharp)
* Never show the hover skiff "species"
* Fixed a rare crash when reordering searches with drag&drop
* Beef up error handling when accessing the clipboard (Fixes #45)
* Allow search gender to be changed with click and add a tooltip for how to change levels
* Introduce a new calibration system based on placed storage boxes in the world (see https://github.com/coldino/Larkator/wiki/Calibrating-New-Maps for more info)
* Add protection against corrupted config files (Fixes #46)
* Improve the savegame file watcher to hopefully never, ever need the refresh button

Closes #50, Closes #52.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants