vscode-powershell icon indicating copy to clipboard operation
vscode-powershell copied to clipboard

Memory leak until the system freezes

Open DarkLite1 opened this issue 1 year ago • 1 comments

Prerequisites

  • [X] I have written a descriptive issue title.
  • [X] I have searched all open and closed issues to ensure it has not already been reported.
  • [X] I have read the troubleshooting guide.
  • [X] I am sure this issue is with the extension itself and does not reproduce in a standalone PowerShell instance.
  • [X] I have verified that I am using the latest version of Visual Studio Code and the PowerShell extension.
  • [X] If this is a security issue, I have read the security issue reporting guidance.

Summary

Every time the extension "PowerShell v2024.3.2 (pre-release)" is enabled, the memory usage goes up until the system freezes. When disabling the extension, there is no issue. Same issue with the release version "Powershell 2024.2.2".

Screenshot 2024-08-14 090503

PowerShell Version

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

Name             : ConsoleHost
Version          : 7.4.4
InstanceId       : b1eb55a6-5f37-4759-bc50-59721354e6d5
UI               : System.Management.Automation.Internal.Host.InternalHostUserInterface
CurrentCulture   : en-US
CurrentUICulture : en-US
PrivateData      : Microsoft.PowerShell.ConsoleHost+ConsoleColorProxy
DebuggerEnabled  : True
IsRunspacePushed : False
Runspace         : System.Management.Automation.Runspaces.LocalRunspace

Visual Studio Code Version

1.92.1
eaa41d57266683296de7d118f574d0c2652e1fc4
x64

Extension Version

[email protected]

Steps to Reproduce

Simply enable the extension, open VS Code and wait for the RAM to be fully consumed. No coding required.

Visuals

Screenshot 2024-08-14 090503 Screenshot 2024-08-14 085556 Screenshot 2024-08-14 085522 Screenshot 2024-08-14 085436 Screenshot 2024-08-14 085401 Screenshot 2024-08-14 085357

Logs

1723619554-68a1cfd5-1a3e-43e5-9fc4-7e8fa8a133561723619552104.zip

DarkLite1 avatar Aug 14 '24 07:08 DarkLite1

This issue has been labeled as resolved, please verify the provided fix (or other reason).

github-actions[bot] avatar Aug 23 '24 22:08 github-actions[bot]

This issue has been labeled as needing fix verification and has not had any activity a week. It has been closed for housekeeping purposes.

github-actions[bot] avatar Aug 30 '24 23:08 github-actions[bot]