FG
🛠️ Developer ToolsMicrosoft

1.90 snap package crash on startup

Freshabout 19 hours ago
Mar 14, 20260 views
Confidence Score95%
95%

Problem

Does this issue occur when all extensions are disabled?: Yes - VS Code Version: 1.90.0-insider 26c4a07b47a2bd34480a5e4cba2c2384c590b039 x64 - OS Version: Ubuntu 24.04 LTS Steps to Reproduce: 1. launch the code-insiders from terminal with command [code block]. it opens and then closes down. 2. here is the crash report(file_attached): crash_report.txt here is the snippet of crash logs that i feel is important: [code block] here "mypcname" is the placeholder for actual user login name. tried but didn't work: reference issue Workaround: running with `--use-gl=angle --use-angle=swiftshader`

Error Output

ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix VS Code 1.90 Snap Package Crash on Startup

Medium Risk

The crash on startup is likely due to an issue with the OpenGL context creation when using the default rendering backend. The error message indicates that the ANGLE library is unable to create a backing OpenGL context, which is necessary for rendering the user interface of VS Code. This can occur due to compatibility issues with the graphics driver or the specific environment configuration on Ubuntu 24.04 LTS.

Awaiting Verification

Be the first to verify this fix

  1. 1

    Update Graphics Drivers

    Ensure that your graphics drivers are up to date. This can resolve compatibility issues with OpenGL contexts.

    bash
    sudo apt update && sudo apt upgrade -y
  2. 2

    Install Required Dependencies

    Install any missing dependencies that may be required for OpenGL rendering.

    bash
    sudo apt install libglu1-mesa libxi6 libxrender1
  3. 3

    Run VS Code with Alternative Rendering Options

    Launch VS Code using the workaround options to bypass the OpenGL context issue.

    bash
    code --use-gl=angle --use-angle=swiftshader
  4. 4

    Check for Snap Package Updates

    Ensure that the Snap package for VS Code is up to date, as newer versions may contain fixes for known issues.

    bash
    sudo snap refresh code-insiders
  5. 5

    Reinstall VS Code Snap Package

    If the issue persists, try reinstalling the VS Code Snap package to ensure a clean installation.

    bash
    sudo snap remove code-insiders && sudo snap install code-insiders

Validation

Confirm that VS Code launches successfully without crashing. If it opens and functions correctly, the fix is validated. Additionally, check for any error messages in the terminal during launch.

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

vscodeideeditorbugverifiedfreeze-slow-crash-leakcandidate