Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"We're having trouble displaying widgets. Restarting Dev Home may help." error when launching Dev Home on Windows 10 and 11 #2945

Open
adrastogi opened this issue May 16, 2024 · 16 comments
Assignees
Labels
Area-Dashboard Related to the Dashboard feature Issue-Bug Something isn't working or needs investigation Priority-2

Comments

@adrastogi
Copy link
Contributor

Dev Home version

0.1401.501.0

Windows build number

10.0.19045.4412

Other software

OS Build Version: 10.0.19045.4412.amd64fre.vb_release.191206-1406
.NET Version: .NET 8.0.4

Steps to reproduce the bug

On the latest Dev Home build, launch Dev Home and observe the dashboard

Expected result

I'd expect to see some system widgets pinned there along with any other widgets I had previously pinned.

Actual result

Dev Home isn't showing any widgets and displays an error message that reads, "We're having trouble displaying widgets. Restarting Dev Home may help.". The error is persistent, though.

Included System Information

CPU: Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
Physical Memory: 15.93GB (10.79GB free)
Processor Architecture: x64

Included Extensions Information

Extensions:
Microsoft.Windows.DevHomeGitHubExtension.Canary_0.1400.500.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Canary))
Microsoft.Windows.DevHomeAzureExtension.Canary_0.900.501.0_x64__8wekyb3d8bbwe (Dev Home Azure Extension (Canary))
Microsoft.Windows.DevHome.Canary_0.1401.501.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome.Canary_0.1401.501.0_x64__8wekyb3d8bbwe (Hyper-V Extension)

Widget Service:
Microsoft.WidgetsPlatformRuntime_1.2.0.0_x64__8wekyb3d8bbwe

@adrastogi adrastogi added the Issue-Bug Something isn't working or needs investigation label May 16, 2024
@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage New issue that the core contributors need to triage label May 16, 2024
Copy link

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@adrastogi
Copy link
Contributor Author

The logs have this interesting snippet.

[2024/05/16 11:23:51.447 ERR] (WidgetHostingService) Exception in GetWidgetDefinitionAsync:
System.UnauthorizedAccessException: Access is denied.

Access is denied.

   at WinRT.ExceptionHelpers.<ThrowExceptionForHR>g__Throw|39_0(Int32 hr)
   at ABI.Microsoft.Windows.Widgets.Hosts.IWidgetCatalogStaticsMethods.GetDefault(IObjectReference _obj)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at DevHome.Dashboard.Services.WidgetHostingService.GetWidgetCatalogAsync()
[2024/05/16 11:23:51.545 ERR] (WidgetHostingService) Exception in GetWidgetDefinitionAsync:
System.UnauthorizedAccessException: Access is denied.

@krschau krschau added Area-Dashboard Related to the Dashboard feature Priority-2 and removed Needs-Triage New issue that the core contributors need to triage labels May 20, 2024
@BillEisenman
Copy link

I am having problems displaying the Dev Home Dashboard. All of the displayed widgets for CPU, GPU, etc on Windows 11 23H2. The Error Displayed is The type initializer for 'CoreWidgetProvider.Helpers.SystemData' threw an exception. I have tried the restart,,
repair, and uninstall / reinstall methods currently, with no luck. Any ideas as to how to fix this?

@krschau krschau changed the title "We're having trouble displaying widgets. Restarting Dev Home may help." error when launching Dev Home on Windows 10 "We're having trouble displaying widgets. Restarting Dev Home may help." error when launching Dev Home on Windows 10 and 11 Jun 12, 2024
@krschau
Copy link
Collaborator

krschau commented Jun 12, 2024

@BillEisenman Can you share the information included in "Included Extensions Information" above? The easy way to get this is open Dev Home and go to Settings -> Feedback -> Report a bug and copy the text under "Include installed Dev Home extensions and related packages"

@BillEisenman
Copy link

Included Extensions Information
Extensions:
Microsoft.DevHomeMicrosoftGameDevExtension_0.400.456.0_x64__8wekyb3d8bbwe (Dev Home Microsoft Game Dev Extension (Preview))
9932MartCliment.WingetUIWidgets_0.6.1.0_x64__g91dtg5srk15g (Widgets for UniGetUI (formerly WingetUI))
Microsoft.Windows.DevHomeGitHubExtension_0.1500.533.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Preview))
Microsoft.Windows.DevHomeAzureExtension_0.1000.533.0_x64__8wekyb3d8bbwe (Dev Home Azure Extension (Preview))
Microsoft.Windows.DevHome_0.1501.533.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome_0.1501.533.0_x64__8wekyb3d8bbwe (Hyper-V Extension)

Widget Service:
MicrosoftWindows.Client.WebExperience_524.13200.0.0_x64__cw5n1h2txyewy

@BillEisenman
Copy link

For a little more information, the problem still occurs under 0.1501.533.0 which was installed from the Microsoft Store after complete install.

@realsircodesalot
Copy link

Just ran into this issue myself after upgrading to Windows 11 - I had DevHome (Preview) installed while still using Windows 10. I receive the same error as shown in the picture for #2673. It seems there are several duplicates of this issue, I'm hoping I picked the correct one to comment on.

Is there any status update on this? Anyone find any workarounds?

@krschau
Copy link
Collaborator

krschau commented Aug 21, 2024

@realsircodesalot There's a new issue we've been seeing that results in this error message being shown, and I suspect (but am not sure) it's what you're seeing. We're actively trying to collect data on when it happens. If you could check, I'd love to know what version(s) of the widget service you have -- this can be found in Dev Home under Settings -> Feedback -> Report a bug -> "Include installed Dev Home extensions and related packages" under the "Widget Service:" heading.

A workaround for this particular error is to go to the Windows Widget Board (keyboard shortcut: win+w) and click the + button to add a widget. You don't actually have to add one, but bringing up the dialog gets things started such that Dev Home should be back to normal.

@krschau krschau self-assigned this Aug 22, 2024
@realsircodesalot
Copy link

Wow, didn't know about the win+w shortcut! I added those widgets there and received the same exception error message.

Here's the info from the Feedback:


Dev Home Version
0.1701.597.0

Windows build number
10.0.22631.4037

Other software
OS Build Version: 10.0.22631.4037.amd64fre.ni_release.220506-1250
.NET Version: .NET 8.0.7

Included System Information
CPU: 12th Gen Intel(R) Core(TM) i7-1265U
Physical Memory: 31.2GB (6.75GB free)
Processor Architecture: x64

Included Extensions Information
Extensions:
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Hyper-V Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Windows Subsystem for Linux Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Git)
Microsoft.Windows.DevHomeGitHubExtension_0.1700.597.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Preview))
Microsoft.Windows.DevHomeAzureExtension_0.1200.597.0_x64__8wekyb3d8bbwe (Dev Home Azure Extension (Preview))

Widget Service:
MicrosoftWindows.Client.WebExperience_524.18500.10.0_x64__cw5n1h2txyewy

@hgohel
Copy link

hgohel commented Sep 3, 2024

@krschau The workaround you suggested, i.e. Win+W, press + key (but don't add any widget). Now DevHome loads all my widgets. Thank you!

For reference, here's my config when I was having the problem for your investigation:

DevHome version: 0.1701.597.0
Windows Build Number: 10.0.22631.4037
Other software: OS Build Version: 10.0.22631.4037.amd64fre.ni_release.220506-1250
.NET Version: .NET 8.0.7
Included Extensions Information:
Extensions:
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Hyper-V Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Windows Subsystem for Linux Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Git)
Microsoft.Windows.DevHomeGitHubExtension_0.1700.597.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Preview))

Widget Service:
MicrosoftWindows.Client.WebExperience_524.23700.10.0_x64__cw5n1h2txyewy

@Wraiyth
Copy link

Wraiyth commented Sep 6, 2024

I am having the same issue.

Extensions:
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Hyper-V Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Windows Subsystem for Linux Extension)
Microsoft.Windows.DevHome_0.1701.597.0_x64__8wekyb3d8bbwe (Git)
Microsoft.Windows.DevHomeGitHubExtension_0.1700.597.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Preview))
Microsoft.Windows.DevHomeAzureExtension_0.1200.597.0_x64__8wekyb3d8bbwe (Dev Home Azure Extension (Preview))

Widget Service:
MicrosoftWindows.Client.WebExperience_524.23700.10.0_x64__cw5n1h2txyewy
Microsoft.WidgetsPlatformRuntime_1.4.0.0_x64__8wekyb3d8bbwe

@krschau
Copy link
Collaborator

krschau commented Sep 6, 2024

@hgohel and @Wraiyth If it's not too much trouble, could you share your logs? I'll have the bot give instructions but if you don't want to share everything, it would be useful just to see the .dhlog file under logs/DevHome from a day you saw/are seeing this issue.
/logs

@hgohel
Copy link

hgohel commented Sep 6, 2024

could you share your logs? ... it would be useful just to see the .dhlog file under logs/DevHome from a day you saw/are seeing this issue.

@krschau
Here's my log file from a day on which it wasn't working, after which I used your workaround, and the log shows no errors after that: My .dhlog file link expires in a few days, I can re-up it if needed. Thanks for looking into it.

@mgreenegit
Copy link
Member

mgreenegit commented Sep 11, 2024

+1 on this issue. win+w + worked for me.

@krschau
Copy link
Collaborator

krschau commented Sep 11, 2024

https://task.ms/53366639

@lorette-m
Copy link

Sorry, but where is working solution? win + w didn't work for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Dashboard Related to the Dashboard feature Issue-Bug Something isn't working or needs investigation Priority-2
Projects
None yet
Development

No branches or pull requests

8 participants