powershell terminal keeps crashing
維護者通常 2 天內回覆
還沒有人認領這個 Issue。
評估
研究方向
The stack trace names WinGetCommandNotFoundFeedbackPredictor.WarmUp, which calls FinderCommand.FindPackages and then ManagementDeploymentFactory.Create, where the COM call fails with HRESULT -2147023174. Start with the predictor's warm-up path and the factory's COM creation, then reproduce on Windows with a PowerShell 7 profile. Done means the predictor fails gracefully and the terminal stays open.
由索引模型根據 Issue 內容生成。
描述
Relevant area(s)
WinGet CLI, PowerShell Module
Relevant command(s)
No response
Brief description of your issue
Unhandled exception. System.Management.Automation.CmdletInvocationException: Failed to create instance: -2147023174 ---> System.Runtime.InteropServices.COMException (0x800706BA): Failed to create instance: -2147023174 at Microsoft.WinGet.Client.Engine.Helpers.ManagementDeploymentFactory.Create[T](Type type, Guid& iid) at Microsoft.WinGet.Client.Engine.Helpers.ManagementDeploymentFactory.CreateCreateCompositePackageCatalogOptions() at Microsoft.WinGet.Client.Engine.Commands.Common.FinderCommand.GetPackageCatalogReference(CompositeSearchBehavior behavior) at Microsoft.WinGet.Client.Engine.Commands.Common.FinderCommand.GetPackageCatalog(CompositeSearchBehavior behavior) at Microsoft.WinGet.Client.Engine.Commands.Common.FinderCommand.FindPackages(CompositeSearchBehavior behavior, UInt32 limit, PackageFieldMatchOption match) at Microsoft.WinGet.Client.Engine.Commands.Common.FinderExtendedCommand.FindPackages(CompositeSearchBehavior behavior, PackageFieldMatchOption match) at Microsoft.WinGet.Client.Engine.Commands.FinderPackageCommand.<>c__DisplayClass1_0.<Find>b__0() at Microsoft.WinGet.Client.Engine.Commands.Common.ManagementDeploymentCommand.Execute[TResult](Func1 func)
at Microsoft.WinGet.Client.Engine.Commands.FinderPackageCommand.Find(String psPackageFieldMatchOption)
at Microsoft.WinGet.Client.Commands.FindPackageCmdlet.ProcessRecord()
at System.Management.Automation.CommandProcessor.ProcessRecord()
--- End of inner exception stack trace ---
at System.Management.Automation.Runspaces.AsyncResult.EndInvoke()
at System.Management.Automation.PowerShell.EndInvoke(IAsyncResult asyncResult)
at System.Threading.Tasks.TaskFactory1.FromAsyncCoreLogic(IAsyncResult iar, Func2 endFunction, Action1 endAction, Task1 promise, Boolean requiresSynchronization)
--- End of stack trace from previous location ---
at Microsoft.WinGet.CommandNotFound.WinGetCommandNotFoundFeedbackPredictor.WarmUp()
at System.Threading.Tasks.Task.<>c.b__135_1(Object state)
at System.Threading.QueueUserWorkItemCallback.Execute()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading.PortableThreadPool.WorkerThread.WorkerDoWork(PortableThreadPool threadPoolInstance)
at System.Threading.PortableThreadPool.WorkerThread.WorkerThreadStart()
at System.Threading.Thread.StartCallback(Thread* pThread)
[process exited with code 3762504530 (0xe0434352)]
You can now close this terminal with Ctrl+D, or press Enter to restart.`
Steps to reproduce
open the terminal, open a ps1 file, after few seconds it will give this error
Expected behavior
no error on terminal
Actual behavior
crash terminal
Environment
Windows Terminal Preview
Version: 1.26.3133.0
PowerShell 7.7.0
x64
win11 insiders 26h2: 26360.9882
winget version: v1.30.300
- 主要語言
- C++
- 星號
- 26.6k
- 分支
- 1.8k
- 平均合併
- 3 天 10 小時
- 30 天內合併 PR
- 41
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
microsoft/winget-cli 的其他 Issue
-
Issue-Docs Needs-Triage
難度 2/5 1-3 小時 新手友好度 70/100
microsoft/winget-cli#6692 ·
維護者通常 2 天內回覆
-
Issue-Docs Possible-Duplicate
難度 2/5 1-3 小時 新手友好度 76/100
microsoft/winget-cli#6493 · 1 則留言 ·
維護者通常 2 天內回覆
-
Issue-Feature
難度 2/5 1-3 小時 新手友好度 68/100
microsoft/winget-cli#6427 ·
維護者通常 2 天內回覆
-
Issue-Docs msstore
難度 2/5 1-3 小時 新手友好度 64/100
microsoft/winget-cli#6331 · 1 則留言 ·
維護者通常 2 天內回覆
-
Command-Source Issue-Bug
難度 2/5 1-3 小時 新手友好度 68/100
microsoft/winget-cli#6148 ·
維護者通常 2 天內回覆
查看 microsoft/winget-cli 的全部 Issue
相似的 Issue
-
feat
難度 2/5 1-3 小時 新手友好度 65/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 68/100
-
難度 2/5 1-3 小時 新手友好度 75/100
stratum-mining/sv2-tp#167 ·
維護者通常 1 天內回覆
-
better error message bug low priority semantics strings
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
Sign up button opens the Sign in page instead of the Sign up page for Enterprise edition servers未關閉auth bug ui/ux
難度 2/5 1-3 小時 新手友好度 72/100
MerginMaps/mobile#4795 ·
維護者通常 2 天內回覆