Skip to content

[CmdPal] Run commands extension crashes on load - IReadOnlyCollection WinRT interop failure #48445

@ThomasDBold

Description

@ThomasDBold

Microsoft PowerToys version

0.11.11601.0

Installation method

Microsoft Store

Area(s) with issue?

PowerToys Run

Steps to reproduce

Open Command Palette and navigate to the Run commands extension

✔️ Expected Behavior

Extension loads normally

❌ Actual Behavior

Extension crashes immediately with System.NotSupportedException: Cannot retrieve a helper type for generic public type 'System.Collections.Generic.IReadOnlyCollection\1[System.String]'`

Notes: state.json contains a valid empty RunHistory: [] — the issue is not corrupt data but a WinRT AOT interop failure when ImmutableList.CreateRange() tries to resolve IReadOnlyCollection as a helper type.

PS C:\Windows\System32> winget list | Select-String -Pattern "CommandPalette|CmdPal|Command Palette"
Time Zone Convertor for ←[7mCommand Palette←[0m MSIX\23610AlickolliSoftware.TimeZoneConvΓǪ 0.0.4.0
Currency Converter for ←[7mCommand Palette←[0m advaith.CurrencyConverterCommandPalette 0.1.0.0 0.2.1 winget
Weather for ←[7mCommand ←[0m←[7mPalette ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m←[0mBaldBeardedBuilder.WeatherforCommandPaleΓǪ ←[0m←[7m←[0m1.2.0.0 ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m
←[7m←[0mwinget←[0m
Visual Studio For ←[7mCmdPal←[0m davidegiacometti.VisualStudioForCmdPal 0.0.3.0 winget
←[7mCommand Palette←[0m Extension for Bitwarden MSIX\Hoobi.BitwardenCommandPaletteExtensΓǪ 1.9.2.0
Media Controls for ←[7mCommand ←[0m←[7mPalette ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m←[0mJiriPolasek.MediaControlsforCommandPaletΓǪ ←[0m←[7m←[0m0.10.0.0 ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m
←[7m←[0mwinget←[0m
Unit Converter for ←[7mCommand Palette←[0m MSIX\JiriPolasek.UnitConverterforCommandΓǪ 0.4.1.0
←[7mCommand ←[0m←[7mPalette ←[0m←[7m←[0mGitHub ←[0m←[7m←[0mExtension ←[0m←[7m←[0m(PreviΓǪ ←[0m←[7m←[0mMicrosoft.CmdPalGitHubExtension ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m←[0m0.103.178.0 ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m←[7m ←[0m
←[7m←[0mwinget←[0m
←[7mCommand Palette←[0m MSIX\Microsoft.CommandPalette_0.11.11601ΓǪ 0.11.11601.0
QR Code for ←[7mCmdPal←[0m Riri.QRCodeforCmdPal 0.0.1.0 winget
PS C:\Windows\System32>

Upload Bug Report ZIP-file

No response

Additional Information

No response

Other Software

No response

Metadata

Metadata

Assignees

Labels

CmdPal - ShellIssues related to the Shell (run) built-in extensionHot FixItems we will product an out-of-band release forIssue-BugSomething isn't workingNeeds-TriageFor issues raised to be triaged and prioritized by internal Microsoft teamsProduct-Command PaletteRefers to the Command Palette utility

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions