When opening git extensions version 2.50.01
Whenever I open git extensions it immediately crashes with
Exception Type: System.InvalidOperationException
Message: "There is an error in the XML document (24,29).
Target Site: System.Object Deserialize(System.Xml.XmlReader, System.String, System.Xml.Serialization.XmlDeserializationEvents) @ System.Xml.Serialization.XmlSerializer
Inner Exception: System.Xml.XmlException
Source: System.XML
Stack Trace:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at GitCommands.XmlSerializableDictionary`2.ReadXml(XmlReader reader)
at GitCommands.Settings.GitExtSettingsCache.ReadSettings(String fileName)
at GitCommands.Settings.FileSettingsCache.LoadImpl()
at GitCommands.SettingsCache.<>c__DisplayClass4_0.<LockedAction>b__0()
at GitCommands.SettingsCache.LockedAction[T](Func`1 action)
at GitCommands.SettingsCache.<>c__DisplayClass4_0.<LockedAction>b__0()
at GitCommands.SettingsCache.LockedAction[T](Func`1 action)
at GitCommands.SettingsCache.EnsureSettingsAreUpToDate()
at GitCommands.SettingsCache.<>c__DisplayClass23_0`1.<TryGetValue>b__0()
at GitCommands.SettingsCache.LockedAction[T](Func`1 action)
at GitCommands.SettingsCache.TryGetValue[T](String name, T defaultValue, Func`2 decode, T& value)
at GitCommands.Settings.SettingsContainer`2.TryGetValue[T](String name, T defaultValue, Func`2 decode, T& value)
at GitCommands.Settings.SettingsContainer`2.GetValue[T](String name, T defaultValue, Func`2 decode)
at GitCommands.AppSettings.get_IconStyle()
at GitUI.Lemmings.GetPictureBoxImage(DateTime currentDate)
at GitUI.FormSplash..ctor()
at GitUI.FormSplash.ShowSplash()
at GitExtensions.Program.Main()
-Running as an administrator
-Uninstalling and Reinstalling git extensions
Please search issues.
On Wed, Aug 23, 2017, 11:22 AM Doug Hewitt notifications@github.com wrote:
When opening git extensions version 2.50.01
The Error/BehaviorWhenever I open git extensions it immediately crashes with
Exception Type: System.InvalidOperationException
Message: "There is an error in the XML document (24,29).
Target Site: System.Object Deserialize(System.Xml.XmlReader,
System.String, System.Xml.Serialization.XmlDeserializationEvents) @
System.Xml.Serialization.XmlSerializer
Inner Exception: System.Xml.XmlException
Source: System.XMLStack Trace:
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader,
String encodingStyle, XmlDeserializationEvents events)
at GitCommands.XmlSerializableDictionary2.ReadXml(XmlReader reader) at
GitCommands.Settings.GitExtSettingsCache.ReadSettings(String fileName) at
GitCommands.Settings.FileSettingsCache.LoadImpl() at
GitCommands.SettingsCache.<>c__DisplayClass4_0.b__0() at
GitCommands.SettingsCache.LockedActionT
at GitCommands.SettingsCache.<>c__DisplayClass4_0.b__0()
at GitCommands.SettingsCache.LockedActionT at
GitCommands.SettingsCache.EnsureSettingsAreUpToDate() at
GitCommands.SettingsCache.<>c__DisplayClass23_01.b__0()
at GitCommands.SettingsCache.LockedActionT at
GitCommands.SettingsCache.TryGetValueT
at GitCommands.Settings.SettingsContainer2.TryGetValueT
at GitCommands.Settings.SettingsContainer2.GetValueT
at GitCommands.AppSettings.get_IconStyle()
at GitUI.Lemmings.GetPictureBoxImage(DateTime currentDate)
at GitUI.FormSplash..ctor()
at GitUI.FormSplash.ShowSplash()
at GitExtensions.Program.Main()
What I've tried-Running as an administrator
-Uninstalling and Reinstalling git extensions—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
https://github.com/gitextensions/gitextensions/issues/3929, or mute the
thread
https://github.com/notifications/unsubscribe-auth/ADdhscvbOBUCo7oNygbGSCoesSIhd8d3ks5sbEOzgaJpZM4PALjT
.
I'm pretty sure I've seen this issue previously reported, but can't find the original.
Try renaming/deleting:
I closed 4 windows gitextensions at one time (windows 10) and now
GitExtensions.zip
GitExtensions.settings truncated
maybe we can restore this settings from backup automatically if on startup this file is corrupted
previously i spend a lot of time digging what causes this problem and how to solve it
Same issue happening here.
Exception reading XML file "C:UsersmeAppDataRoamingGitExtensionsGitExtensionsGitExtensions.settings": '.', hexadecimal value 0x00, is an invalid character. Line 1, position 1.
Git extensions 3.00.rc2
CLR 4.0.30319.42000
Void ReadSettings(System.String) @ GitCommands.Settings.GitExtSettingsCache
inner exception trace:
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.ThrowInvalidChar(Char[] data, Int32 length, Int32 invCharPos)
at System.Xml.XmlTextReaderImpl.ParseRootLevelWhitespace()
at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
at GitCommands.XmlSerializableDictionary`2.ReadXml(XmlReader reader)
at GitCommands.Settings.GitExtSettingsCache.ReadSettings(String fileName)
Most helpful comment
I'm pretty sure I've seen this issue previously reported, but can't find the original.
Try renaming/deleting: