Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Cannot run on Win11 #86

Closed
xcloudx01 opened this issue Sep 15, 2022 · 12 comments
Closed

Cannot run on Win11 #86

xcloudx01 opened this issue Sep 15, 2022 · 12 comments

Comments

@xcloudx01
Copy link

After opening AmethystWindows.exe I see the icon in the tray area appear, my mouse cursor indicates some activity, then the icon disappears and the process closes. I've tried running earlier builds but the problem remains

@schmic
Copy link

schmic commented Sep 28, 2022

It won't help much with your issue but I was just able to install and run on Win11.
WIth the latest download as of today.

@boorac
Copy link

boorac commented Oct 2, 2022

I have the same issue with the x86 and x64 msi

@maciej-makowski
Copy link

maciej-makowski commented Oct 2, 2022

I checked out the latest code, it crashes on Windows 11 Pro

image

Seems to be a problem in VirtualDesktop dependency on sam COM Interop issue.

Exception has occurred: CLR/System.Collections.Generic.KeyNotFoundException
An unhandled exception of type 'System.Collections.Generic.KeyNotFoundException' occurred in System.Private.CoreLib.dll: 'The given key 'IApplicationView' was not present in the dictionary.'
   at System.ThrowHelper.ThrowKeyNotFoundException[T](T key)
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at WindowsDesktop.Interop.ComInterfaceAssemblyBuilder.CreateAssembly() in C:\Users\macie\Projects\VirtualDesktop\src\VirtualDesktop\Interop\ComInterfaceAssemblyBuilder.cs:line 136
   at WindowsDesktop.Interop.ComInterfaceAssemblyBuilder.GetAssembly() in C:\Users\macie\Projects\VirtualDesktop\src\VirtualDesktop\Interop\ComInterfaceAssemblyBuilder.cs:line 37
   at WindowsDesktop.VirtualDesktop.InitializeCore() in C:\Users\macie\Projects\VirtualDesktop\src\VirtualDesktop\VirtualDesktop.system.cs:line 95
   at WindowsDesktop.VirtualDesktop.InitializeIfNeeded() in C:\Users\macie\Projects\VirtualDesktop\src\VirtualDesktop\VirtualDesktop.system.cs:line 83
   at WindowsDesktop.VirtualDesktop.FromHwnd(IntPtr hWnd) in C:\Users\macie\Projects\VirtualDesktop\src\VirtualDesktop\VirtualDesktop.cs:line 173
   at AmethystWindows.DesktopWindowsManager.DesktopWindow.GetVirtualDesktop() in C:\Users\macie\Projects\amethystwindows\AmethystWindows\DesktopWindowsManager\DesktopWindow.cs:line 157
   at AmethystWindows.DesktopWindowsManager.DesktopWindow.GetInfo() in C:\Users\macie\Projects\amethystwindows\AmethystWindows\DesktopWindowsManager\DesktopWindow.cs:line 132
   at AmethystWindows.DesktopWindowsManager.DesktopWindowsManager.<CollectWindows>b__30_0(HWND windowHandle, IntPtr lparam) in C:\Users\macie\Projects\amethystwindows\AmethystWindows\DesktopWindowsManager\DesktopWindowManager.windows.cs:line 89
   at Vanara.PInvoke.User32.EnumWindows(EnumWindowsProc lpEnumFunc, IntPtr lParam)
   at AmethystWindows.DesktopWindowsManager.DesktopWindowsManager.CollectWindows() in C:\Users\macie\Projects\amethystwindows\AmethystWindows\DesktopWindowsManager\DesktopWindowManager.windows.cs:line 113
   at AmethystWindows.App.App_Activated(Object sender, EventArgs e) in C:\Users\macie\Projects\amethystwindows\AmethystWindows\App.xaml.cs:line 34
   at System.Windows.Application.OnActivated(EventArgs e)
   at System.Windows.Application.WmActivateApp(Int32 wParam)
   at System.Windows.Application.AppFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
   at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
   at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
   at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
   at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)

Did some poking around, looks like Grabacr07/VirtualDesktop#76.

@azinsharaf
Copy link

same issue on my machine (Win 11, VM using Parallel on Mac M1)

Edition	Windows 11 Pro
Version	22H2
Installed on	‎9/‎21/‎2022
OS build	22621.521
Experience	Windows Feature Experience Pack 1000.22634.1000.0

@glsorre
Copy link
Owner

glsorre commented Oct 3, 2022

You should try to delete %APPDATA%/Amethyst Windows/MySettings.json. It is a known bug...I just need the time to release the fix. :(

@azinsharaf
Copy link

i couldn't find Mysettings.json file on my machine. I used msi_x64 installer file (v 2.0.4.1).

@maciej-makowski
Copy link

If you're on Windows 11 build > 22000 or Windos 10 build > 17134, I think you're hitting a problem in a dependency I've mentioned earlier.

I've sent a PR with the fix to them: Grabacr07/VirtualDesktop#79, but no idea how long it will take to accept it and propagate the change to this project.

There is an elaborate way to test/apply this before VirtualDesktop maintaniers merge it and it propagates to this project. I'm happy to provide more details if anyone is interested in building the dependency themselves and testing the fix.

@azinsharaf
Copy link

@maciej-makowski
So is it a Win issue for build> 22000?

@azinsharaf
Copy link

anybody knows when we can use amethyst on win 11 (build > 22000)?

@glsorre
Copy link
Owner

glsorre commented Dec 24, 2022

hello all, I have time to work on this project during holidays unfortunately...please try 2.0.196.1

@azinsharaf
Copy link

hi, i tried 2.0.196.1 Beta but still doesn't work.

  • the application's icon is blank.
    image

  • nothing happens after launching the app. no tray icon.

OS: Windows 11 Pro - 22H2- ARM based

@glsorre
Copy link
Owner

glsorre commented Dec 25, 2022

@azinsharaf the msi is x64 only...not even sure why it left you install :O

@glsorre glsorre closed this as completed May 24, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants