8000 Out-GridView consistency crashing shell on 7.3.6 · Issue #20016 · PowerShell/PowerShell · GitHub
[go: up one dir, main page]

Skip to content

Out-GridView consistency crashing shell on 7.3.6 #20016

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

Closed
5 tasks done
StevenBucher98 opened this issue Jul 24, 2023 · 5 comments
Closed
5 tasks done

Out-GridView consistency crashing shell on 7.3.6 #20016

StevenBucher98 opened this issue Jul 24, 2023 · 5 comments
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-Fixed The issue is fixed. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module

Comments

@StevenBucher98
Copy link
Collaborator

Prerequisites

Steps to reproduce

I am experiencing problems with Out-GridView crashing whenever I try to use it.

Expected behavior

PS C:\Users\stevenbucher.REDMOND> ls | Out-GridView
Opens Outgrid view

Actual behavior

PS C:\Users\stevenbucher.REDMOND> ls | Out-GridView

An error has occurred that was not properly handled. Additional information is shown below. The PowerShell process will exit.
Unhandled exception. System.TypeLoadException: Could not load type 'MS.Internal.SecurityCriticalDataForSet`1' from assembly 'WindowsBase, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'.
   at Microsoft.Management.UI.Internal.OutGridViewWindow.<>c__DisplayClass16_0.<StartWindow>b__0(Object <p0>)
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state)
Out-GridView: Exception has been thrown by the target of an invocation.

[process exited with code 3762504530 (0xe0434352)]

Error details

This is the error I get when I run Get-Error after restarting the shell, very confused why chocolately is mentioned:
PS C:\Users\stevenbucher.REDMOND> Get-Error

Exception             :
    Type                 : System.Management.Automation.ItemNotFoundException
    ErrorRecord          :
        Exception             :
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : Cannot find path 'C:\ProgramData\chocolatey\license\chocolatey.license.xml' because it does not
exist.
            HResult : -2146233087
        TargetObject          : C:\ProgramData\chocolatey\license\chocolatey.license.xml
        CategoryInfo          : ObjectNotFound: (C:\ProgramData\choc…colatey.license.xml:String) [],
ParentContainsErrorRecordException
        FullyQualifiedErrorId : PathNotFound
    ItemName             : C:\ProgramData\chocolatey\license\chocolatey.license.xml
    SessionStateCategory : Drive
    TargetSite           :
        Name          : ExpandMshGlobPath
        DeclaringType : System.Management.Automation.LocationGlobber, System.Management.Automation, Version=7.3.6.500,
Culture=neutral, PublicKeyToken=31bf3856ad364e35
        MemberType    : Method
        Module        : System.Management.Automation.dll
    Message              : Cannot find path 'C:\ProgramData\chocolatey\license\chocolatey.license.xml' because it does
not exist.
    Source               : System.Management.Automation
    HResult              : -2146233087
    StackTrace           :
   at System.Management.Automation.LocationGlobber.ExpandMshGlobPath(String path, Boolean allowNonexistingPaths,
PSDriveInfo drive, ContainerCmdletProvider provider, CmdletProviderContext context)
   at System.Management.Automation.LocationGlobber.ResolveDriveQualifiedPath(String path, CmdletProviderContext
context, Boolean allowNonexistingPaths, CmdletProvider& providerInstance)
   at System.Management.Automation.LocationGlobber.GetGlobbedMonadPathsFromMonadPath(String path, Boolean
allowNonexistingPaths, CmdletProviderContext context, CmdletProvider& providerInstance)
   at System.Management.Automation.LocationGlobber.GetGlobbedProviderPathsFromMonadPath(String path, Boolean
allowNonexistingPaths, CmdletProviderContext context, ProviderInfo& provider, CmdletProvider& providerInstance)
   at System.Management.Automation.SessionStateInternal.GetItem(String[] paths, CmdletProviderContext context)
   at Microsoft.PowerShell.Commands.GetItemCommand.ProcessRecord()
TargetObject          : C:\ProgramData\chocolatey\license\chocolatey.license.xml
CategoryInfo          : ObjectNotFound: (C:\ProgramData\choc…colatey.license.xml:String) [Get-Item],
ItemNotFoundException
FullyQualifiedErrorId : PathNotFound,Microsoft.PowerShell.Commands.GetItemCommand
InvocationInfo        :
    MyCommand        : Get-Item
    ScriptLineNumber : 66
    OffsetInLine     : 20
    HistoryId        : 1
    ScriptName       : C:\ProgramData\chocolatey\helpers\ChocolateyTabExpansion.ps1
    Line             : $licenseFile = Get-Item -Path "$env:ChocolateyInstall\license\chocolatey.license.xml"
-ErrorAction Stop

    PositionMessage  : At C:\ProgramData\chocolatey\helpers\ChocolateyTabExpansion.ps1:66 char:20
                       + … censeFile = Get-Item -Path "$env:ChocolateyInstall\license\chocolatey …
                       +               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    PSScriptRoot     : C:\ProgramData\chocolatey\helpers
    PSCommandPath    : C:\ProgramData\chocolatey\helpers\ChocolateyTabExpansion.ps1
    InvocationName   : Get-Item
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\ChocolateyTabExpansion.ps1: line 66
                        at <ScriptBlock>, C:\ProgramData\chocolatey\helpers\chocolateyProfile.psm1: line 27
                        at <ScriptBlock>, \\Mac\Home\Documents\PowerShell\Microsoft.PowerShell_profile.ps1: line 148
 
8000
                       at <ScriptBlock>, <No file>: line 1

Environment data

PS C:\Users\stevenbucher.REDMOND> $PSVersionTable

Name                           Value
----                           -----
PSVersion                      7.3.6
PSEdition                      Core
GitCommitId                    7.3.6
OS                             Microsoft Windows 10.0.22621
Platform                       Win32NT
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0…}
PSRemotingProtocolVersion      2.3
SerializationVersion           1.1.0.1
WSManStackVersion              3.0

Visuals

No response

@StevenBucher98 StevenBucher98 added Needs-Triage The issue is new and needs to be triaged by a work group. Issue-Bug Issue has been identified as a bug in the product WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module labels Jul 24, 2023
@sba923
Copy link
Contributor
sba923 commented Jul 24, 2023

What's special about your 7.3.6 setup? I use Out-GridView day in, day out, never got a crash. I'm deploying from MSI.

@StevenBucher98
Copy link
Collaborator Author

I am not sure, its a parallels Windows VM so maybe something to do with shared file system

@mklement0
Copy link
Contributor
mklement0 commented Jul 24, 2023

I see the same problem on my W11 machine (VMWare Fusion VM running ARM64 Windows, installed via https://aka.ms/install-powershell.ps1), but no longer in PowerShell 7.4.0-preview.4.

As for using Get-Error: it doesn't work across sessions, so what you're seeing is probably unrelated to the original crash.

@StevenBucher98
Copy link
Collaborator Author

Fixed in 7.4 previews

@StevenBucher98 StevenBucher98 added the Resolution-Fixed The issue is fixed. label Oct 9, 2023
@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage The issue is new and needs to be triaged by a work group. label Oct 9, 2023
@microsoft-github-policy-service
Copy link
Contributor
microsoft-github-policy-service bot commented Oct 9, 2023

📣 Hey @StevenBucher98, how did we do? We would love to hear your feedback with the link below! 🗣️

🔗 https://forms.office.com/r/P926k48jRJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Issue has been identified as a bug in the product Resolution-Fixed The issue is fixed. WG-Cmdlets-Utility cmdlets in the Microsoft.PowerShell.Utility module
Projects
None yet
Development

No branches or pull requests

3 participants
0