vscode: Crash on linux with 16KB page size from Electron 34 update

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: 1.98
  • OS Version: Linux pi5-ssd 6.6.74+rpt-rpi-2712 1 SMP PREEMPT Debian 1:6.6.74-1+rpt1 (2025-01-27) aarch64 GNU/Linux

Steps to Reproduce:

  1. update February 2025 (version 1.98) code_1.98.0-1741123840_arm64.deb
  2. start and wait 10 sec

screen message::::

The window terminated unexpectedly(reason ‘crashed’, code: ‘5’)

terminal output after crash:::

[main 2025-03-05T22:41:50.284Z] update#setState idle [main 2025-03-05T22:41:52.553Z] CodeWindow: renderer process gone (reason: crashed, code: 5) [main 2025-03-05T22:41:53.095Z] Extension host with pid 15010 exited with code: 0, signal: unknown. Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed at s.send (node:electron/js2c/browser_init:2:93065) at _.send (node:electron/js2c/browser_init:2:76113) at Iw.send (file:///usr/share/code/resources/app/out/main.js:33:23069) at wf.p (file:///usr/share/code/resources/app/out/main.js:31:19452) at wf.o (file:///usr/share/code/resources/app/out/main.js:31:19417) at wf.m (file:///usr/share/code/resources/app/out/main.js:31:19279) at qo.value (file:///usr/share/code/resources/app/out/main.js:32:265) at I.B (file:///usr/share/code/resources/app/out/main.js:30:2373) at I.C (file:///usr/share/code/resources/app/out/main.js:30:2443) at I.fire (file:///usr/share/code/resources/app/out/main.js:30:2660) at qo.value (file:///usr/share/code/resources/app/out/main.js:43:13058) at I.B (file:///usr/share/code/resources/app/out/main.js:30:2373) at I.fire (file:///usr/share/code/resources/app/out/main.js:30:2591) at ForkUtilityProcess.T (file:///usr/share/code/resources/app/out/main.js:28:7328) at ForkUtilityProcess.emit (node:events:518:28) at ForkUtilityProcess.a.emit (node:electron/js2c/browser_init:2:71917) Error sending from webFrameMain: Error: Render frame was disposed before WebFrameMain could be accessed at s.send (node:electron/js2c/browser_init:2:93065) at _.send (node:electron/js2c/browser_init:2:76113) at Iw.send (file:///usr/share/code/resources/app/out/main.js:33:23069) at wf.p (file:///usr/share/code/resources/app/out/main.js:31:19452) at wf.o (file:///usr/share/code/resources/app/out/main.js:31:19417) at wf.m (file:///usr/share/code/resources/app/out/main.js:31:19279) at s.then.Error.m.id (file:///usr/share/code/resources/app/out/main.js:31:20206) at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 15
  • Comments: 51 (4 by maintainers)

Most upvoted comments

I also have a similar problem: System : RPI 5 OS : Bookworm - OS and all software up to date on 2025-03-17 VSCODE versions : 1.98.1 or 1.98.2 Crashes on RPI 5 after about 30 seconds Temporary get round : install VSCODE 1.97.2

Problem appears to be VSCODE fetching update information on 1.98.* or maybe requesting telemetry after 30 seconds.

* VSCODE 1.98.*: The update badge appears on above the settings cogwheel, and then VSCODE crashes

* VSCODE 1.97.2: The update badge appears on above the settings cogwheel, and  VSCODE remains stable

Not examined the data flow with ‘wireshark’, because at the moment I need to use VSCODE, but it does seem related to a network request, because the RPI 5 receives a stream of ACK’s from the Microsoft Azure server at 4.152.45.235

You can stop the crashing on a PI 5 either by adding the flag –js-flags=“–nodecommit_pooled_pages” (as stated in a post above) or by adding kernel=kernel8.img to /boot/firmware/config.txt

I have tried both methods and the flag is the best work-a-round so far as you retain full performance of the PI5

@digitarald @dbaeumer @lramos15 A humble request

Our 20-person team is experiencing a critical workflow disruption on Raspberry Pi 5 due to this same VS Code issue, producing the same error code.

We would be extremely thankful to you and the VS Code team for an immediate fix. This is a high-priority issue requiring urgent attention. Thanks.

@vtkacik45 Workarounds for your version are given above in https://github.com/microsoft/vscode/issues/242742#issuecomment-2732924475 and fix is in 1.99 Insiders.

Thanks for confirming @simonkurtz-MSFT

Thanks @simonkurtz-MSFT

We don’t need to bump to Electron 35, the fix from commit https://github.com/electron/electron/pull/45571/commits/6c5b2ef55e08dc0bede02384747549c1eadac0eb only applies to non-renderer process. For renderer, the flag is parsed at a different place https://source.chromium.org/chromium/chromium/src/+/main:third_party/blink/renderer/controller/blink_initializer.cc;l=154-157 and we just need to set that. That is why you don’t see the crash when passing the flag via command line.

I will bring back https://github.com/microsoft/vscode/pull/242851/files and along with the existing runtime change it should cover all processes.

@mkurz, I agree. It implements what is used as a workaround here via this commit.

Actually to real clean solution is to upgrade to Electron 35 which is based on chromium 134, which actually fixes the problem, so no workaround, not even the one in in electron v34.3.0, is necessary anymore 😉

1.98.2 also still crashing under Asahi Linux (aarch64)

The real (clean) fix is to upgrade electron to v34.3.3: https://releases.electronjs.org/release/compare/v34.2.0/v34.3.3

Fixed an issue where Electron may experience crashes on Linux with 16KiB pages. #45571 (Also in 33)

I am encountering this issue as well on Fedora Asahi. Difference is I am getting error code 133. Impossible to exit as well, I need to SIGKILL it.

Hi @dbaeumer. This blocker is really showstopper. It would be a huge thanks from me if you say the date of new release with the fix.

@deepak1556, the updated Insiders is no longer crashing for me. Thank you! For clarity for others, the fix in #80eac34 precedes #5b778ce which is the commit referenced below.

Version: 1.99.0-insider
Commit: 5b778ceb0fd58f9cfebbf5ea071e4ebbae751401
Date: 2025-03-17T11:07:01.837Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux arm64 6.6.74+rpt-rpi-2712

Using code --js-flags="--nodecommit_pooled_pages" fixes the crash Issue on Version

1.98.2
ddc367ed5c8936efe395cffeec279b04ffd7db78
arm64

but I also have the Issue that most of my extensions except for a few Microsoft ones are not being shown in the Extensions tab, they are also not enabled but they were in the folder. I just looked for the path and now they are all gone.

@deepak1556, I can confirm Insiders experiences the same failure, so your suspicion is confirmed.

Version: 1.99.0-insider
Commit: 2c7a0283817355c81e1b106f34d911762950a4d9
Date: 2025-03-14T05:04:14.195Z
Electron: 34.3.2
ElectronBuildId: 11161073
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Linux arm64 6.6.74+rpt-rpi-2712
Image

@mkurz, I agree. It implements what is used as a workaround here via this commit.

Actually to real clean solution is to upgrade to Electron 35 which is based on chromium 134, which actually fixes the problem, so no workaround, not even the one in in electron v34.3.0, is necessary anymore 😉

Let’s not put the cart before the horse! =P =P

@deepak1556, I haven’t tried Insiders, only Stable.

@mkurz, I agree. It implements what is used as a workaround here via this commit.

Does the suggested workaround at #242843 (comment) help until 1.98.2 ships?

Does appear to halt continuous crashing. Tks for the heads up!

Does the suggested workaround at https://github.com/microsoft/vscode/issues/242843#issuecomment-2705102377 help until 1.98.2 ships?

1.98 also crash on raspberry Pi, but 1.97.2 is ok.