PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

CmdPal: all apps fails to load, `WaitAll`

Open btdat2506 opened this issue 8 months ago • 3 comments

Microsoft PowerToys version

0.90.0

Installation method

WinGet, PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Command Palette

Steps to reproduce

Step 1: Turn off then turn on Command Palette Step 2: Open Command Palette (via keyboard shortcut or icon). No error shown yet.

Image

Step 3 (option 1): Start typing

Image

Step 3 (or option 2): Pressing Enter (on All apps).

Image

✔️ Expected Behavior

None error, able to use normally.

❌ Actual Behavior

Error(s) on page: A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()

A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()


Error(s) on page: A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass40_0.<OnFilterUpdated>b__0()

Other Software

No response

btdat2506 avatar Apr 02 '25 15:04 btdat2506

Huh. Definitely weird. Something clearly threw an exception while we were trying to load all the apps, but the exception got eaten by the WaitAll.

I'm not sure we've got great logging on this scenario. I bet for 0.2 we could get a log statement around there, to at least know what threw the exception.

zadjii-msft avatar Apr 09 '25 14:04 zadjii-msft

Have version 0.2 has any method of logging? I updated my PowerToys today, but the bug still occur.


Error(s) on page: A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()

A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()

A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()

A bug occurred in the "All Apps" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.FetchItems() at Microsoft.CmdPal.UI.ViewModels.ListViewModel.InitializeProperties() at Microsoft.CmdPal.UI.ViewModels.PageViewModel.InitializeAsync()

btdat2506 avatar May 17 '25 02:05 btdat2506

Is there a know work around for this. I can disable every single extension and the problem still persists.

ibuildthecloud avatar May 19 '25 16:05 ibuildthecloud

Error(s) on page:
A bug occurred in the "" extension's code:
One or more errors occurred. (One or more errors occurred. ())
System.Private.CoreLib
   at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan`1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken)
   at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan`1 tasks)
   at Microsoft.CmdPal.Ext.Apps.AppCache..ctor()
   at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
--- End of stack trace from previous location ---
   at System.Lazy`1.CreateValue()
   at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms()
   at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems()
   at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems()
   at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch)
   at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

Struggling with this for like good few months, PT v0.92 Is this something about very specific system setup? I can't boil it down to any outlier, as person above, also tried no extensions on.

PixelHir avatar Jul 02 '25 00:07 PixelHir

Same issue for me:

Error(s) on page: A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

cjlwo avatar Jul 03 '25 13:07 cjlwo

Still appening in 0.92.1

roberto-gigli avatar Jul 10 '25 18:07 roberto-gigli

Is there a know work around for this. I can disable every single extension and the problem still persists.

Doesn't seem like it so far. I have tried wiping configs, disabling everything, trying both machine-wide and local install.

PixelHir avatar Jul 12 '25 17:07 PixelHir

Here's the error on PowerToys v0.92.1

Error(s) on page: A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy`1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

A bug occurred in the "" extension's code: One or more errors occurred. (One or more errors occurred. ()) System.Private.CoreLib at System.Threading.Tasks.Task.WaitAllCore(ReadOnlySpan1 tasks, Int32 millisecondsTimeout, CancellationToken cancellationToken) at System.Threading.Tasks.Task.WaitAll(ReadOnlySpan1 tasks) at Microsoft.CmdPal.Ext.Apps.AppCache..ctor() at Microsoft.CmdPal.Ext.Apps.AppCache.<>c.<.cctor>b__15_0() at System.Lazy1.ViaFactory(LazyThreadSafetyMode mode) --- End of stack trace from previous location --- at System.Lazy1.CreateValue() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetPrograms() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.BuildListItems() at Microsoft.CmdPal.Ext.Apps.AllAppsPage.GetItems() at Microsoft.CmdPal.UI.ViewModels.MainPage.MainListPage.UpdateSearchText(String oldSearch, String newSearch) at Microsoft.CmdPal.UI.ViewModels.ListViewModel.<>c__DisplayClass45_0.<OnFilterUpdated>b__0()

`

btdat2506 avatar Jul 31 '25 07:07 btdat2506

Some additional error logging logic was added a week or so ago. That should land in the next release so we can track this down. Thanks for the continued input.

michaeljolley avatar Aug 01 '25 18:08 michaeljolley

@cjlwo, @roberto-gigli, @PixelHir, @ibuildthecloud, @btdat2506, still happening on 0.94?

michaeljolley avatar Sep 05 '25 18:09 michaeljolley

/needinfo

michaeljolley avatar Sep 05 '25 18:09 michaeljolley

Has stopped crashing in the current version.

cjlwo avatar Sep 05 '25 18:09 cjlwo

@cjlwo, @roberto-gigli, @PixelHir, @ibuildthecloud, @btdat2506, still happening on 0.94?

I can confirm that with 0.94 the error no longer appears! thank you! i will keep you updated if anything regarding this occurs again. Image

PixelHir avatar Sep 05 '25 18:09 PixelHir

@cjlwo, @roberto-gigli, @PixelHir, @ibuildthecloud, @btdat2506, still happening on 0.94?

I can also confirm that that the error isn't happening anymore on 0.94

roberto-gigli avatar Sep 05 '25 19:09 roberto-gigli