glsorre / amethystwindows

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

Application Crash on Start - .NET Unhandled XamlParseException Event ID 1026/1000/1001 #74

Closed Stobz closed 1 year ago

Stobz commented 2 years ago

I have been testing out your software for a few days now. Thank you, it looks very promising and I am interested in using it in a project I am working on.

Today Amethyst would not load. I have included the short list of recently installed items that have recently been installed. OS: Windows 10 version 21H2 build 19044.1566 AmethystWindows Crash v2 0 4 1a 2022-03-05

The Windows Application Event Log shows EventID 1026, 1000, 1001 each time the app attempts to start. I have attached the event logs from 2.0.4.1a failing to start with the .NET Unhandled XamlParseException.

AmethystWindows Crash v2.0.4.1a 2022-03-05.txt

Amethyst continues to not load even after uninstalling the two C++ redistributables that were recently installed, rebooting, and uninstalling/reinstalling Amethyst. I tried to two versions v2.0.3.1a and v2.0.4.1a, and both x64 and x86 of v2.0.4.1a.

glsorre commented 2 years ago

@Stobz0 It is definitely something with your saved settings...could you paste %APPDATA%/Amethyst Windows/MySettings.json?

Stobz commented 2 years ago

Thank you for the information, you were correct and it is now working again. In C:\Users\\AppData\Local\AmethystWindows\MySettings.json the problem was that the old DesktopID was no longer valid. Deleting the MySettings.json resolved the problem for a quick fix. After restarting the app, it successfully reproduced a new MySettings.json file and functioned properly. I narrowed it down to this being the breaking part:

Broken Json- {"DesktopMonitors":[{"DesktopID":"fc4471a8-7c1b-4270-b390-2154023efec6", Working Json- {"DesktopMonitors":[{"DesktopID":"663a8918-7f0d-4fb3-9238-88b06d3466d5",

I use two monitors with two different desktop scaling. However, I could not reproduce this issue by swapping between different combinations of monitors and video connections on my graphics card.

Stobz commented 2 years ago

Later today. I rebooted a few times, and the DesktopID of my system changed again and the app would crash on load. I was able to get it to start loading again normally by deleting/renaming the json file. Below is the most recent json. MySettings.json.txt

glsorre commented 2 years ago

Thank you @Stobz0 ! I am working on a fix.

MBombeck commented 2 years ago

Same bug here

joshua-pgatour commented 2 years ago

I'm having the bug too