Open CarlosNihelton opened 4 weeks ago
I wonder if #3095 wasn't due the same issue.
For completeness, I tried restarting, resetting, uninstalling and reinstalling the app. Nothing worked. It seems to be some unmet precondition in my system preventing registration of the WidgetCatalog class. The only COM related exception in see in the log is the repetition of:
[2024/08/13 11:29:37.898 ERR] (WidgetHostingService) Exception in GetWidgetDefinitionAsync:
System.Runtime.InteropServices.COMException (0x80040154): Class not registered
@CarlosNihelton Can you tell me the version of the WidgetService you have installed? Easy way to get this is in Dev Home -> Settings -> Feedback -> Report a bug -> under "Include installed Dev Home extensions and related packages", anything listed under "Widget Service:" Edit: Oh, I missed the first line you pasted "(WidgetServiceService) On Windows 11, HasWebExperienceGoodVersion". Still would be curious about the specific version but it won't be as simple as I might have hoped :)
Hi,
I have started experiencing this issue on Windows 10 22H2 but I don't have System.Runtime.InteropServices.COMException (0x80040154): Class not registered
entry in the log file.
Note that only the widgets from GitHub extension are available and working.
[2024/08/14 14:18:48.371 INF] (DevHome.Services.Core.Services.PackageDeploymentService) Found package Microsoft.WidgetsPlatformRuntime_1.4.0.0_x64__8wekyb3d8bbwe
[2024/08/14 14:18:48.371 INF] (WidgetServiceService) On Windows 10, HasStoreWidgetServiceGoodVersion
Widget Service:
MicrosoftWindows.Client.WebExperience_1.0.1.0_x64__cw5n1h2txyewy
Microsoft.WidgetsPlatformRuntime_1.4.0.0_x64__8wekyb3d8bbwe
Not sure if this is relevant but I have built and launched a dev build of DevHome (main branch).
EDIT: a reboot didn't help, but, after reinstalling both packages and another reboot, the widgets are back! 😃
@davidegiacometti I'm glad widgets are back. I suspect the weirdness you saw is due to having those two sources of the widget service (WidgetsPlatformRuntime and WebExperiences). If you're on Windows 10, I'd expect you to have WidgetsPlatformRuntime, which was installed by Dev Home to enable widgets. The WebExperience package should only be on Window 11, and that version number (1.0.1.0) is strange. Do you know how you might have gotten it? If you see more widget weirdness I'd try removing it.
I may have installed it a long time ago building DevHome locally before Windows 10 support 👀
I confirm that DevHome installed only WidgetsPlatformRuntime
, I have removed WebExperience
and everything is still working.
Thanks
I've looked into this more and it is a strange situation. From others reproducing the issue, I can see the WidgetService isn't running when this error happens. Normally, the WidgetService is started by API calls into it. We're not sure why it sometimes isn't starting now. WidgetService version wasn't an indication of whether this issue would show up or not.
I was able to work around it by having the Windows Widget Board start the service -- either just opening it with 🪟+w, or also opening the dialog to add widgets to the board, were able to start the service. Once the service was started once, Dev Home no longer hit this issue, and in my experience, was able to start the widget service again.
I've opened PR #3632 which doesn't help starting the service, but does keep Dev Home in a better state when it can't start.
Tried Win+W and suddenly I have some widgets on the dashboard home, and add widget starts working. Note that the first few times I tried Win+W nothing happened. I never use the windows widgets otherwise - (IMHO one of the worst 'features' in Win 11) - and I'm not sure if I had ever launched it before now on this install.
This fixed my issue:
Get-AppxPackage *WebExperience* | Remove-AppxPackage
Should we keep the issue open for more investigation?
Dev Home version
0.1601.561.0
Windows build number
10.0.26120.1350
Other software
No response
Steps to reproduce the bug
Expected result
Non-empty list of available widgets to show up.
Actual result
Empty![image](https://github.com/user-attachments/assets/55a7a807-06c5-4ad6-98fb-0288cb7da66a)
Included System Information
The DevHome log shows a COM class not registered exception:
Included Extensions Information
Inbox GitHub, Hyper-V and WSL extensions