[GH-ISSUE #639] Removes all user settings #2127

Closed
opened 2026-03-01 18:53:18 +03:00 by kerem · 0 comments
Owner

Originally created by @lukaszmn on GitHub (Apr 20, 2020).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/639

When I started it today, it removed all my settings. After I set a few options:

  • language: English
  • one saving preset for mp4
  • location for ffmpeg

it doesn't save any options, and prints the following error to the log file:

► Title - 
	Saving settings
▬ Message - 
	Object reference not set to an instance of an object.
○ Type - 
	System.NullReferenceException
♦ [Version] Date/Hour - 
	[2.23.1] 04/20/2020 05:07:11
▲ Source - 
	mscorlib
▼ TargetSite - 
	System.Type GetType()
♠ StackTrace - 
   at System.Object.GetType()
   at System.Windows.Markup.Primitives.ElementMarkupObject.get_ObjectType()
   at System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
   at System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString)
   at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item)
   at System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, MarkupObject item)
   at System.Windows.Markup.XamlWriter.Save(Object obj, XmlWriter xmlWriter)
   at ScreenToGif.Util.UserSettings.Save()

What's worse, it also deletes the backup file.

Originally created by @lukaszmn on GitHub (Apr 20, 2020). Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/639 When I started it today, it removed all my settings. After I set a few options: * language: English * one saving preset for mp4 * location for ffmpeg it doesn't save any options, and prints the following error to the log file: ``` ► Title - Saving settings ▬ Message - Object reference not set to an instance of an object. ○ Type - System.NullReferenceException ♦ [Version] Date/Hour - [2.23.1] 04/20/2020 05:07:11 ▲ Source - mscorlib ▼ TargetSite - System.Type GetType() ♠ StackTrace - at System.Object.GetType() at System.Windows.Markup.Primitives.ElementMarkupObject.get_ObjectType() at System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString) at System.Windows.Markup.Primitives.MarkupWriter.RecordNamespaces(Scope scope, MarkupObject item, IValueSerializerContext context, Boolean lastWasString) at System.Windows.Markup.Primitives.MarkupWriter.WriteItem(MarkupObject item) at System.Windows.Markup.Primitives.MarkupWriter.SaveAsXml(XmlWriter writer, MarkupObject item) at System.Windows.Markup.XamlWriter.Save(Object obj, XmlWriter xmlWriter) at ScreenToGif.Util.UserSettings.Save() ``` What's worse, it also deletes the backup file.
kerem closed this issue 2026-03-01 18:53:18 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#2127
No description provided.