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.

Frequent crashes (10-30) daily with no discernible pattern

See original GitHub issue

While attempting to debug VS Code using the powershell console, the console itself will crash many, many times per day.

The behaviour is always the same, but I can’t determine why it happens or see any pattern. When it does happen, it’s always when you first start debugging, console just sits there as if frozen.

After a few moments, VS will alert me of an issue with the window, ask me to re-open or wait. Waiting doesn’t seem to be helpful (though I’ve not waited for more than 5 minutes). Re-opening the window will basically restart VS Code and I can typically proceed from there.

I can mitigate this, somewhat, if I “trash” all console instances before I start (i.e. hit the little garbage can on the bottom of the console essentially restarting it), though that doesn’t always work either.

VS Version: image

Extensions: image

Powershell Version: image

Logs: vscode-powershell.log EditorServices.log DebugSession-1.log

In this case, I consistently see this error across multiple sessions:

2019-07-29 16:53:25.033 [ERROR] tid:15 in 'ExecuteCommand' C:\PowerShellEditorServices\src\PowerShellEditorServices\Session\PowerShellContext.cs: line 565
    Execution of the following command(s) completed with errors:
c:\Work\devops\powershell\test.ps1
        Out-Default

There are days when my extension can crash 30+ times which is challenging to say the least. I’ve completely uninstalled / reinstalled the extension, VS Code etc. but the results remain the same.

One thing that may or may not be worth noting, in that script (and all my scripts basically) I reference multiple powershell classes as well, that are being imported like this:

using module .\modules\EnvironmentData.psm1
using module .\modules\Tenant.psm1
using module .\modules\ADManager.psm1
using module .\modules\AzureFunction.psm1

Thanks!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
carsontwilsoncommented, Aug 23, 2019

The logs don’t seem to show much, but I’ve included a zip file with all logging information - I just had two such crashes in a row. Many of the log files are 0kb with no data, but there are a couple with sparse info.

Let me know if I can do more or if there’s more logging elsewhere I can include (this is coming from: C:\Users\CarsonWilson\AppData\Roaming\Code\logs)

20190823T093944.zip

Edit: Ugh my bad I was at normal logging, I’ve changed to verbose - let’s see what it turns up! 😃

0reactions
msftbot[bot]commented, Aug 19, 2021

This issue was closed automatically as repro info was indicated as needed, but there has been no activity in over a week. Please feel free to reopen with any available information!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Are there any PC Warzone/DMZ players who are NOT ... - Reddit
Are there any PC Warzone/DMZ players who are NOT experiencing daily crashes? I am getting multiple crashes each day playing warzone and DMZ....
Read more >
How to Find Out What Crashed Your PC and Stop Them ...
This article is created to show how to find out what crashed your PC and how to stop them from being happened with...
Read more >
Why do Computers Crash? Top 5 Reasons Your PC Might ...
An easy one to rule out is overheating. A computer's CPU, or central processing unit, includes a fan that is designed to keep...
Read more >
Identifying the cause of common crashes - Apple Developer
Find patterns in crash reports that identify common problems, and investigate the issue based on the pattern.
Read more >
Troubleshooting Revit crashes - Autodesk Knowledge Network
To look for patterns in crashes start by reviewing journal files, recorded when a crash occurs. Open several of the journals in 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