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:
- update February 2025 (version 1.98) code_1.98.0-1741123840_arm64.deb
- 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)
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.
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
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.
Using
code --js-flags="--nodecommit_pooled_pages"fixes the crash Issue on Versionbut 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.
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 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.