Closed PrzemyslawKlys closed 4 years ago
After 5 minutes another crash so I doubt it's related to wait time.
1550430327-19aa7f42-38ed-4dc4-a885-9a5c8fb57ab41550249737126.zip
function Get-ComputerOperatingSystem {
param(
$ComputerName = $Env:COMPUTERNAME
)
$Data6 = get-WmiObject win32_operatingsystem -ComputerName $ComputerName | select Caption, Organization, InstallDate, OSArchitecture, Version, SerialNumber, BootDevice, WindowsDirectory, CountryCode
return $Data6
}
And I simply added at the bottom of it this:
Get-ComputerOperatingSystem
Pressed F5 and crash. It was like 15 seconds after the session restart. Today I've probably got about 20 crashes by now working with WMI/CMI.
@PrzemyslawKlys thanks as always for reporting these issues! Just wanted to clarify, is this issue happening in the PowerShell extension (not the Preview version)? It is likely this is a result of a threading issue in PSES, one we have been wanting to look more into, and hope to soon. You are probably hitting it because of a bad interaction with the WMI cmdlets.
I'm using the Preview version.
System Details
System Details Output
Issue Description
I am experiencing a problem with...
1550417828-fa668236-6b83-4c9b-8993-eaa5e9276e8e1550417825456.zip
I left VSCode open for a while, when I came back to it it crashed. I usually have 5 or so instances and leave them alone for hours (even 24h+).
Expected Behaviour
No crash