question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

continuous freezes and crashes on vscode extension (for the past ~1.5 weeks)

See original GitHub issue

Issue Description

continuous freezes and crashes on vscode extension (for the past ~1.5 weeks)

either crashes similar to below: image

or the console simply stops showing output during a long running command, such as a deployment.

It just cycles on this error and never returns in the console, until it’s reset.

[Error - 8:31:55 AM] Microsoft.PowerShell.EditorServices.Services.PowerShellContextService: Execution of the following command(s) completed with errors:

    Microsoft.PowerShell.Core\Out-Default -InputObject No process is on the other end of the pipe.

 | 
[Warn  - 8:31:55 AM] Microsoft.PowerShell.EditorServices.Services.PowerShellContextService: Runtime exception occurred while executing command:

System.Management.Automation.CmdletInvocationException: No process is on the other end of the pipe.
 ---> System.IO.IOException: No process is on the other end of the pipe.
   at System.ConsolePal.GetBufferInfo(Boolean throwOnNoConsole, Boolean& succeeded)
   at System.ConsolePal.get_ForegroundColor()
   at Microsoft.PowerShell.EditorServices.Services.PowerShellContext.TerminalPSHostUserInterface.WriteOutput(String outputString, Boolean includeNewLine, OutputType outputType, ConsoleColor foregroundColor, ConsoleColor backgroundColor) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\Session\Host\TerminalPSHostUserInterface.cs:line 174
   at Microsoft.PowerShell.EditorServices.Services.PowerShellContext.EditorServicesPSHostUserInterface.WriteErrorLine(String value) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\Session\Host\EditorServicesPSHostUserInterface.cs:line 587
   at Microsoft.PowerShell.Commands.Internal.Format.ConsoleLineOutput.OnWriteLine(String s)
   at Microsoft.PowerShell.Commands.Internal.Format.ComplexWriter.WriteToScreen()
   at Microsoft.PowerShell.Commands.Internal.Format.ComplexWriter.WriteObject(List`1 formatValueList)
   at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessPayload(FormatEntryData fed, OutputContext c)
   at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessObject(PSObject so)
   at Microsoft.PowerShell.Commands.Internal.Format.OutCommandInner.ProcessRecord()
   at System.Management.Automation.CommandProcessor.ProcessRecord()
   --- End of inner exception stack trace ---
   at System.Management.Automation.Runspaces.PipelineBase.Invoke(IEnumerable input)
   at System.Management.Automation.PowerShell.Worker.ConstructPipelineAndDoWork(Runspace rs, Boolean performSyncInvoke)
   at System.Management.Automation.PowerShell.Worker.CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, Boolean isSync)
   at System.Management.Automation.PowerShell.CoreInvokeHelper[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.CoreInvoke[TInput,TOutput](PSDataCollection`1 input, PSDataCollection`1 output, PSInvocationSettings settings)
   at System.Management.Automation.PowerShell.Invoke[T](IEnumerable input, PSInvocationSettings settings)
   at System.Threading.Tasks.Task`1.InnerInvoke()
   at System.Threading.ExecutionContext.RunFromThreadPoolDispatchLoop(Thread threadPoolThread, ExecutionContext executionContext, ContextCallback callback, Object state)
--- End of stack trace from previous location ---
   at System.Threading.Tasks.Task.ExecuteWithThreadLocal(Task& currentTaskSlot, Thread threadPoolThread)
--- End of stack trace from previous location ---
   at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.ExecuteCommandAsync[TResult](PSCommand psCommand, StringBuilder errorMessages, ExecutionOptions executionOptions) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\PowerShellContextService.cs:line 927
   at Microsoft.PowerShell.EditorServices.Services.PowerShellContextService.ExecuteCommandAsync[TResult](PSCommand psCommand, StringBuilder errorMessages, ExecutionOptions executionOptions) in D:\a\1\s\src\PowerShellEditorServices\Services\PowerShellContext\PowerShellContextService.cs:line 927 | 


Attached Logs

Follow the instructions in the README about capturing and sending logs.

Environment Information

Visual Studio Code

Name Version
Operating System Windows_NT x64 10.0.21318
VSCode 1.53.2
PowerShell Extension Version 2021.2.1

PowerShell Information

Name Value
PSVersion 7.1.2
PSEdition Core
GitCommitId 7.1.2
OS Microsoft Windows 10.0.21318
Platform Win32NT
PSCompatibleVersions 1.0 2.0 3.0 4.0 5.0 5.1.10032.0 6.0.0 6.1.0 6.2.0 7.0.0 7.1.2
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0

Visual Studio Code Extensions

Visual Studio Code Extensions(Click to Expand)
Extension Author Version
application-insights VisualStudioOnlineApplicationInsights 0.4.2
azure-account ms-vscode 0.9.6
azure-iot-toolkit vsciot-vscode 2.16.6
azure-pipelines ms-azure-devops 1.183.0
azurerm-vscode-tools msazurermtools 0.14.1
csharp ms-dotnettools 1.23.9
debugger-for-edge msjsdiag 1.0.15
dotnet-interactive-vscode ms-dotnettools 1.0.212602
file-downloader mindaro-dev 1.0.10
git-graph mhutchie 1.29.0
gitlens eamodio 11.2.1
indent-rainbow oderwat 7.5.0
json-tools eriklynd 1.0.2
jupyter ms-toolsai 2021.2.603412351
language-liquid neilding 0.1.1
material-icon-theme PKief 4.5.0
mindaro mindaro 1.0.120210224
powershell-preview ms-vscode 2021.2.1
remote-containers ms-vscode-remote 0.158.0
remote-wsl ms-vscode-remote 0.53.4
rest-client humao 0.24.4
synthwave-vscode RobbOwen 0.1.8
vsc-community-material-theme Equinusocio 1.4.2
vsc-material-theme Equinusocio 33.1.2
vsc-material-theme-icons equinusocio 1.2.2
vscode-ai-remote ms-toolsai 0.1.0
vscode-apimanagement ms-azuretools 0.1.8
vscode-azureappservice ms-azuretools 0.20.0
vscode-azurefunctions ms-azuretools 1.2.1
vscode-azurelogicapps ms-azuretools 0.0.9
vscode-azureresourcegroups ms-azuretools 0.3.0
vscode-azurestorage ms-azuretools 0.12.0
vscode-bicep ms-azuretools 0.2.328
vscode-cosmosdb ms-azuretools 0.16.0
vscode-docker ms-azuretools 1.10.0
vscode-dotnet-runtime ms-dotnettools 1.0.0
vscode-dotnet-sdk ms-dotnettools 0.0.1
vscode-github-actions cschleiden 0.16.0
vscode-icons vscode-icons-team 11.1.0
vscode-kubernetes-tools ms-kubernetes-tools 1.3.0
vscode-liquid-snippets killalau 2.0.1
vscode-pull-request-github GitHub 0.23.1
vscode-sort-json richie5um2 1.19.2
vscode-yaml redhat 0.15.0
xml DotJoshJohnson 2.5.1

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
brwilkinsoncommented, Mar 13, 2021

thanks @andschwa

will keep you posted.

0reactions
andschwacommented, Mar 12, 2021

“terminal.integrated.enablePersistentSessions”: false

Ah ha! @brwilkinson I think you might be experiencing a different face of the VS Code bug introduced in 1.53, and discussed in #3227. Could you try updating to 1.54.2 and set that setting back to true to see if it’s been resolved? I think essentially the fix in 1.54.2 disables that setting for extension owned terminals (like ours).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Visual Studio Constantly Hangs and Freezes or Restarts Itself ...
I run VS all day long and have maybe 2-3 freezes per hour. They last a few seconds to 30 seconds, greatly disrupting...
Read more >
Visual Studio's extension search hangs forever when ...
Visual Studio's extension search hangs forever when searching for "Rapid XAML ... Open Visual Studio v16.4.3 and select “Extensions” > “Manage Extensions” ...
Read more >
Ubuntu 22.04: Beautiful Outside, Ugly Inside!
Files crashes. The last issue I experienced was that Files, the fine manager of Ubuntu 22.04, has crashed several times. I do not...
Read more >
VSCode debugging super slow and then crashes - VS Code
I've been using the debugger with some success in VSCode, but today it was incredibly slow. Like 30 seconds to 2 minutes to...
Read more >
Visual Studio with ReSharper is freezing and/or crashing
ReSharper may conflict with the other Visual Studio addins and extensions, ... Up until the end of last year I only had a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found