glsorre / amethystwindows

[ARCHIVED] Automatic tiling window manager for Windows 10/11
https://amethystwindows.com
MIT License
410 stars 24 forks source link

AmethystWindowsSystray crashing on launch #53

Closed ananni13 closed 2 years ago

ananni13 commented 3 years ago

Describe the bug Amethyst suddenly stopped working. The main program window shows up, but can't detect any open windows.

In the event log I can see that AmethystWindowsSystray crashes immediately on launch, both when I do it manually and when it starts automatically at login after a reboot.

Applicazione: AmethystWindowsSystray.exe
Versione framework: v4.0.30319
Descrizione: il processo è stato terminato a causa di un'eccezione non gestita.
Informazioni sull'eccezione: System.ArgumentOutOfRangeException
   in WindowsDesktop.Internal.DesktopManager.GetDesktop(Int32)
   in DesktopWindowManager.Internal.LayoutsConverter.ReadJson(Newtonsoft.Json.JsonReader, System.Type, System.Object, Newtonsoft.Json.JsonSerializer)
   in Newtonsoft.Json.Serialization.JsonSerializerInternalReader.DeserializeConvertable(Newtonsoft.Json.JsonConverter, Newtonsoft.Json.JsonReader, System.Type, System.Object)
   in Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(Newtonsoft.Json.JsonReader, System.Type, Boolean)
   in Newtonsoft.Json.JsonSerializer.DeserializeInternal(Newtonsoft.Json.JsonReader, System.Type)
   in Newtonsoft.Json.JsonConvert.DeserializeObject(System.String, System.Type, Newtonsoft.Json.JsonSerializerSettings)
   in Newtonsoft.Json.JsonConvert.DeserializeObject(System.String, System.Type, Newtonsoft.Json.JsonConverter[])
   in Newtonsoft.Json.JsonConvert.DeserializeObject[[System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]](System.String, Newtonsoft.Json.JsonConverter[])
   in AmethystWindowsSystray.DesktopWindowsManager.ReadLayouts()
   in AmethystWindowsSystray.DesktopWindowsManager.LoadLayouts()
   in AmethystWindowsSystray.SystrayContext+<Initialize>d__10.MoveNext()
   in System.Runtime.CompilerServices.AsyncMethodBuilderCore+<>c.<ThrowAsync>b__6_1(System.Object)
   in System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(System.Object)
   in System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   in System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext, System.Threading.ContextCallback, System.Object, Boolean)
   in System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
   in System.Threading.ThreadPoolWorkQueue.Dispatch()
   in System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()

Desktop (please complete the following information):

ananni13 commented 3 years ago

I tried this:

and now it's working again.

sirbabyface commented 3 years ago

If you reboot again, will the Amethyst remain working? Because there is a bug where after reboot things stop working.

ananni13 commented 3 years ago

Yes, it works after a reboot.