-
Notifications
You must be signed in to change notification settings - Fork 20
Crash when leaving Dashboard page #3558
Description
Dev Home version
0.1601.561.0
Windows build number
10.0.19045.4717
Other software
OS Build Version: 10.0.19045.4717.amd64fre.vb_release.191206-1406
.NET Version: .NET 8.0.6
Steps to reproduce the bug
- Navigate to Dashbaord page
- While the widgets are loading, quickly navigate to another page
Expected result
Navigate to the requested page
Actual result
DevHome crashes
[2024/08/07 14:41:14.279 INF] (DashboardView) Insert widget in pinned widgets, id = 96c50a96-5659-4498-bd11-396421872798, index = 1
[2024/08/07 14:41:14.387 INF] (DashboardView) Insert widget in pinned widgets, id = 31d54a71-8515-4718-a65d-df0dc0871e1a, index = 2
[2024/08/07 14:41:14.421 INF] (DashboardView) Insert widget in pinned widgets, id = dd863d64-cf17-4941-be1d-ad3e678a6150, index = 3
[2024/08/07 14:41:14.465 INF] (DashboardView) Insert widget in pinned widgets, id = ced30290-2d83-41c8-8f56-8a23b926bf41, index = 4
[2024/08/07 14:41:14.982 INF] (DashboardView) Insert widget in pinned widgets, id = c277f5fc-c80a-4649-a977-1944f5da5783, index = 5
[2024/08/07 14:41:15.183 INF] (DashboardView) Insert widget in pinned widgets, id = 4f3b4ee4-0c2a-48f3-b6c6-5b6dbd95514e, index = 6
[2024/08/07 14:41:15.541 INF] (DevHome.Services.WindowsPackageManager.Services.WinGetDeployment) Attempting to create a dummy out-of-proc PackageManager COM object to test if the COM server is available
[2024/08/07 14:41:15.546 INF] (DevHome.Services.WindowsPackageManager.Services.WinGetDeployment) WinGet COM Server is available
[2024/08/07 14:41:15.588 INF] (DashboardView) UnsubscribeFromWidgetCatalogEvents
[2024/08/07 14:41:15.613 FTL] (DevHome) Unhandled exception: Collection was modified; enumeration operation may not execute.
System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
at System.Collections.Generic.List`1.Enumerator.MoveNextRare()
at DevHome.Dashboard.Views.DashboardView.RestorePinnedWidgetsAsync(ComSafeWidget[] hostWidgets)
at DevHome.Dashboard.Views.DashboardView.InitializePinnedWidgetListAsync(Boolean isFirstDashboardRun)
at DevHome.Dashboard.Views.DashboardView.InitializeDashboard()
at DevHome.Dashboard.Views.DashboardView.OnLoadedAsync()
at CommunityToolkit.Mvvm.Input.AsyncRelayCommand.AwaitAndThrowIfFailed(Task executionTask)
at System.Threading.Tasks.Task.<>c.<ThrowAsync>b__128_0(Object state)
at Microsoft.UI.Dispatching.DispatcherQueueSynchronizationContext.<>c__DisplayClass2_0.<Post>b__0()
Included System Information
CPU: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHz
Physical Memory: 15.94GB (8.44GB free)
Processor Architecture: x64
Included Extensions Information
Extensions:
Microsoft.Windows.DevHome_0.1601.561.0_x64__8wekyb3d8bbwe (Core Widget Extension)
Microsoft.Windows.DevHome_0.1601.561.0_x64__8wekyb3d8bbwe (Hyper-V Extension)
Microsoft.Windows.DevHome_0.1601.561.0_x64__8wekyb3d8bbwe (Windows Subsystem for Linux Extension)
Microsoft.Windows.DevHomeGitHubExtension_0.1600.561.0_x64__8wekyb3d8bbwe (Dev Home GitHub Extension (Preview))
Widget Service:
MicrosoftWindows.Client.WebExperience_1.0.1.0_x64__cw5n1h2txyewy
Microsoft.WidgetsPlatformRuntime_1.4.0.0_x64__8wekyb3d8bbwe