skip to Main Content

I installed VSCode using snap package in Ubuntu Software manager. Now it is crashing on startup when trying to open it.

When using $ code --verbose to create a log in terminal, I get:

[0606/103410.331999:ERROR:process_memory_range.cc(75)] read out of range
[0606/103410.332035:ERROR:process_memory_range.cc(75)] read out of range
[0606/103410.332044:ERROR:process_memory_range.cc(75)] read out of range
[0606/103410.332074:ERROR:process_memory_range.cc(75)] read out of range
[0606/103410.332086:ERROR:process_memory_range.cc(75)] read out of range
[0606/103410.332094:ERROR:process_memory_range.cc(75)] read out of range

How can I fix the issue when using snap package for easy management and for self-containment?

I tried the harder path by following script to manually install VSCode on my Ubuntu:

sudo snap remove code # uninstall vscode snap package

sudo apt-get install wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64,arm64,armhf signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" |sudo tee /etc/apt/sources.list.d/vscode.list > /dev/null
rm -f packages.microsoft.gpg

sudo apt install apt-transport-https
sudo apt update
sudo apt install code # or code-insiders

and consequently:

$ code --version
1.90.0
89de5a8d4d6205e5b11647eb6a74844ca23d2573
x64

It does not at least crash and opens up VSCode successfully. But is there any easier solution to fix the crashing issue ?

2

Answers


  1. I uninstalled the snap version.

    Downloaded https://update.code.visualstudio.com/1.89.1/linux-deb-x64/stable or choose the latest stable version from official website of vscode.

    then run sudo dpkg -i code_1.89.1-1715060508_amd64.deb and it is now working .again.

    Login or Signup to reply.
  2. You can run the previous running snap version until a fix to the problem comes in a new update. To do this, just run sudo snap revert code to execute it. If you want to pick another version, you can first list them snap list code and then select the revision sudo snap revert code --revision xx

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search