Skip to content

Newtonsoft.Json.JsonSerializationException #220

@jcchikikomori

Description

@jcchikikomori

❌ Error report

Describe the error

  • Unable to launch the program normally

How to reproduce the error

  1. Install thru either manually from Github Releases, or Chocolatey or Winget.
  2. If you have 2 or more user accounts, select the one with the highest priviledge (Personal/Admin account)

WinPaletter Log

  • If an exception error occurred, press on copy details and paste them here.
  • The details will include info about WinPaletter version, date, current OS, exception error message & stack trace.
//General information
//...........................................................
   Report.Date = "Saturday, March 2, 2024 7:23:25 PM";
   OS = "Windows 11, 10.0.22621.3227, 64-bit";
   WinPaletter.Version = "1.0.8.5, Beta, Build: Release";
   WinPaletter.Language = "English";
   WinPaletter.Debugging = false;

//Error details
//...........................................................
   Exception.message = "Error setting value to 'Background' on 'WinPaletter.WinTerminal+Types+TabSettings'.";
   Exception.type = "Newtonsoft.Json.JsonSerializationException";
   Exception.stack.trace =
   {
         at Newtonsoft.Json.Serialization.DynamicValueProvider.SetValue(Object target, Object value)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateList(IList list, JsonReader reader, JsonArrayContract contract, JsonProperty containerProperty, String id)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateList(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, Object existingValue, String id)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.ResolvePropertyAndCreatorValues(JsonObjectContract contract, JsonProperty containerProperty, JsonReader reader, Type objectType)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObjectUsingCreatorWithParameters(JsonReader reader, JsonObjectContract contract, JsonProperty containerProperty, ObjectConstructor`1 creator, String id)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewObject(JsonReader reader, JsonObjectContract objectContract, JsonProperty containerMember, JsonProperty containerProperty, String id, Boolean& createdFromNonDefaultCreator)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
         at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
         at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
         at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
         at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
         at WinPaletter.WinTerminal..ctor(String File, Mode Mode, Version Version)
         at WinPaletter.Theme.Manager..ctor(Source Source, String File, Boolean ignoreExtractionThemePack, Boolean ignoreErrors)
         at WinPaletter.Program.LoadThemeManager()
         at WinPaletter.Program.InitializeApplication(Boolean showLoginDialog)
         at WinPaletter.User.OnUserSwitch(UserChangeEventArgs e)
         at WinPaletter.User.set_SID(String value)
         at WinPaletter.UserSwitch.Button1_Click(Object sender, EventArgs e)
         at System.Windows.Forms.Control.OnClick(EventArgs e)
         at System.Windows.Forms.Button.OnClick(EventArgs e)
         at WinPaletter.UI.WP.Button.OnClick(EventArgs e)
         at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
         at WinPaletter.UI.WP.Button.OnMouseUp(MouseEventArgs e)
         at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
         at System.Windows.Forms.Control.WndProc(Message& m)
         at System.Windows.Forms.ButtonBase.WndProc(Message& m)
         at System.Windows.Forms.Button.WndProc(Message& m)
         at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
         at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
         at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
   };
   Exception.target.void_function = "Newtonsoft.Json.SetValue()";
   Exception.assembly = "Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed";
   Exception.assembly.file = "";
   Exception.HRESULT = -2146233088;
   Inner.exception.message = "Object reference not set to an instance of an object.";
   Exception.type = "System.NullReferenceException";
   Inner.exception.Marshal.GetLastWin32Error = 1400;
   Inner.exception.stack.trace =
   {
         at SetBackground(Object , Object )
         at Newtonsoft.Json.Serialization.DynamicValueProvider.SetValue(Object target, Object value)
   };
   Inner.exception.target.void_function = "WinPaletter.SetBackground()";
   Inner.exception.assembly = "WinPaletter, Version=1.0.8.5, Culture=neutral, PublicKeyToken=null";
   Inner.exception.assembly.file = "C:\\Program Files\\Abdelrhman-AK\\WinPaletter\\WinPaletter.exe";
   Inner.exception.HRESULT = -2147467261;
   Sub.inner.exception.0.message = "Object reference not set to an instance of an object.";
   Exception.type = "System.NullReferenceException";
   Sub.inner.exception.0.Marshal.GetLastWin32Error = 1400;
   Sub.inner.exception.0.stack.trace =
   {
         at SetBackground(Object , Object )
         at Newtonsoft.Json.Serialization.DynamicValueProvider.SetValue(Object target, Object value)
   };
   Sub.inner.exception.0.target.void_function = "WinPaletter.SetBackground()";
   Sub.inner.exception.0.assembly = "WinPaletter, Version=1.0.8.5, Culture=neutral, PublicKeyToken=null";
   Sub.inner.exception.0.assembly.file = "C:\\Program Files\\Abdelrhman-AK\\WinPaletter\\WinPaletter.exe";
   Sub.inner.exception.0.HRESULT = -2147467261;
   Win32.exception.message = "The operation completed successfully";
   Exception.type = "System.ComponentModel.Win32Exception";
   Win32.exception.Marshal.GetLastWin32Error = 1400;

Screenshots/Screen records

  • Don't add screenshot to exception error dialog if you already wrote WinPaletter Log.
  • If possible, add screenshots/Screen records of the wrong behaviour to help explain your problem.
    Not available as i already have the log.

Additional context

  • I have Windhawk installed for additional workarounds to my Windows Explorer.
  • This might related to my Windows Terminal (version 1.19.10573.0)

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions