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.

VS Code Crashes: Assertion Failed!

See original GitHub issue

System Details

To help diagnose your issue, the following details are helpful:

  • OS: Windows 10 1809, Build 17763.503
  • VS Code: 1.34
  • PowerShell Extension: 1.12.1
  • Output from $PSVersionTable:

VSCode version: 1.34.0 a622c65b2c713c890fcf4fbf07cf34049d5fe758 x64

VSCode extensions:

andrzejzwierzchowski.al-code-outline@1.0.6 DotJoshJohnson.xml@2.4.0 file-icons.file-icons@1.0.17 heaths.vscode-guid@1.4.7 mikeburgh.xml-format@1.0.2 ms-dynamics-smb.al@3.0.126610 ms-vscode.cpptools@0.23.1 ms-vscode.powershell@1.12.1 ms-vsts.team@1.149.2 PKief.material-icon-theme@3.8.0 vsciot-vscode.vscode-arduino@0.2.25 waldo.crs-al-language-extension@1.1.3

PSES version:

PowerShell version:

Name Value


PSVersion 5.1.17763.503 PSEdition Desktop PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} BuildVersion 10.0.17763.503 CLRVersion 4.0.30319.42000 WSManStackVersion 3.0 PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1

Issue Description

I am experiencing a problem with the PowerShell Extension in VS Code. When I Restart VS Code while keeping a .ps1 file open in Editor the whole VSCode crashes.

Expected Behaviour

It shouldn’t crash

Actual Behaviour

  1. I get an Assertion error image
  2. The VS Code crashes image

This happens repeatedly, I can only fix this by disabling the Extension or renaming the ps1 file so it isn’t opened.

Attached Logs

All Logs from today logs.zip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
JulianTillmanncommented, May 29, 2019

@SydneyhSmith VS-Code is closed because of the crashing and I simply click on the VSC Icon. The “Reopen”-Button has the same behaviour

@rjmholt uninstalling or disabeling the PowerShell Extension lets me start VSCode normally. But I want to use the Extension, so that is not an Option

I don’t know if #35117 is the same issue, I don’t use any zooming. Simply having a ps1-file still open when last closing VSCode generates this Problem ~80% of the time. I also have 4 colleagues who have the same issues.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Language Server Extension Guide - Visual Studio Code
Learn how to create Language Servers to provide rich language features in Visual Studio Code.
Read more >
VS Code crashing on Windows 7 : r/vscode - Reddit
Hi. Visual Studio Code v1.71 crashing on windows 7 with error: "A system error occurred: uv_os_gethostname returned ENOSYS (function not…
Read more >
VS Code crashing with "Passthrough is not supported, GL is ...
I had problems with Pylance extension, because some files were already created from the previous installation. I removed all the ~/.var/app/com.
Read more >
Visual Studio Code crashing on Windows 11/10
Sometimes, there can be no issue with the app or your Graphics driver, but still, your VSCode crashes, or sometimes even your system...
Read more >
Resolve out-of-memory crashes of Visual Studio
3) Disable integration between Visual Assist and the native debugger. Disable the integration in the options dialog of Visual Assist and then restart...
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