You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Code fails to launch normally on Ubuntu 21.10 #133593
author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugchromiumIssues and items related to Chromiuminsiders-releasedPatch has been released in VS Code InsiderssandboxRunning VSCode in a node-free environmentupstream-issue-fixedThe underlying upstream issue has been fixedverifiedVerification succeeded
I can confirm this behavior (also using Ubuntu 21.10, w/ kernel 5.14.2 and nVidia 470.63.01 dirvers).
It works fine if you throw in --no-sandbox, but crashes shortly after opening the window without it. The following can be seen in the log if you run it without --no-sandbox and with --verbose:
[1371128:0922/073520.665073:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073520.665089:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 1 time(s)
[1371128:0922/073521.089398:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.089416:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 2 time(s)
[1371128:0922/073521.360432:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.360456:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 3 time(s)
[1371206:0922/073521.396022:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[1371206:0922/073521.396111:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[1371128:0922/073521.465325:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.465345:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 4 time(s)
[1371210:0922/073521.472943:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[1371210:0922/073521.473012:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[1371128:0922/073521.541111:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.541131:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 5 time(s)
[1371214:0922/073521.549048:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for swiftshader
[1371214:0922/073521.549117:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is swiftshader
[1371128:0922/073521.618695:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.618715:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 6 time(s)
[1371218:0922/073521.622046:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[1371218:0922/073521.622112:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[1371128:0922/073521.688258:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.688278:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 7 time(s)
[1371222:0922/073521.691555:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[1371222:0922/073521.691623:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[1371128:0922/073521.756715:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.756727:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 8 time(s)
[1371226:0922/073521.760156:WARNING:vaapi_wrapper.cc(588)] VAAPI video acceleration not available for disabled
[1371226:0922/073521.760219:ERROR:gpu_init.cc(440)] Passthrough is not supported, GL is disabled
[1371128:0922/073521.826813:ERROR:gpu_process_host.cc(1007)] GPU process exited unexpectedly: exit_code=159
[1371128:0922/073521.826826:WARNING:gpu_process_host.cc(1321)] The GPU process has crashed 9 time(s)
[1371128:0922/073521.826832:FATAL:gpu_data_manager_impl_private.cc(415)] GPU process isn't usable. Goodbye.
How do we contact other teams at MSFT that are using electron? I wish they could know about it so they release patched builds of Data Studio, Teams and Skype.
This bug has been fixed in the latest release of VS Code Insiders!
Dylan Borg (@borgdylan), you can help us out by commenting /verified if things are now working as expected.
If things still don't seem right, please ensure you're on version 4fbe034 of Insiders (today's or later - you can use Help: About in the command palette to check), and leave a comment letting us know what isn't working as expected.
Robo (@deepak1556)
It doesn't crash anymore, but still not working on Wayland.
Now on Wayland it shows completely blank white window with title Get Started unless I start it with --no-sandbox flag.
On Xorg it works.
JFYI 13.5.0 by itself is not enough to allow building on hosts with clone3() support as parts of the intree libraries still reference SIGSTKSZ, which is no longer defined.
well ... clone3 is supported with the patches applied in 13.5.0, the other problem is a change how thread stack size is handled dynamically now.
lets say "it is handled" not supported.
you also need a9831f1cbf93fb18dd951453635f488037454ce9 from abseil and
Index: electron-13.4.0/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
===================================================================
--- electron-13.4.0.orig/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
+++ electron-13.4.0/third_party/breakpad/breakpad/src/client/linux/handler/exception_handler.cc
@@ -138,7 +138,7 @@ void InstallAlternateStackLocked() {
// SIGSTKSZ may be too small to prevent the signal handlers from overrunning
// the alternative stack. Ensure that the size of the alternative stack is
// large enough.
- static const unsigned kSigStackSize = std::max(16384, SIGSTKSZ);
+ static const unsigned kSigStackSize = std::max<size_t>(16384, SIGSTKSZ);
// Only set an alternative stack if there isn't already one, or if the current
// one is too small.
author-verification-requestedIssues potentially verifiable by issue authorbugIssue identified by VS Code Team member as probable bugchromiumIssues and items related to Chromiuminsiders-releasedPatch has been released in VS Code InsiderssandboxRunning VSCode in a node-free environmentupstream-issue-fixedThe underlying upstream issue has been fixedverifiedVerification succeeded
Activity
borgdylan commentedon Sep 22, 2021
This is similar to #132455.
3vi1 commentedon Sep 22, 2021
I can confirm this behavior (also using Ubuntu 21.10, w/ kernel 5.14.2 and nVidia 470.63.01 dirvers).
It works fine if you throw in --no-sandbox, but crashes shortly after opening the window without it. The following can be seen in the log if you run it without --no-sandbox and with --verbose:
borgdylan commentedon Sep 22, 2021
I've seen those as well. I've had other electron apps work, but code and data studio do not want to run without the --no-sandbox workaround.
borgdylan commentedon Sep 22, 2021
This seems to be due to the new glibc in the 21.10 update. The launchpad issue tracking this is here: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1944468
deepak1556 commentedon Sep 23, 2021
Thanks for adding the link to the glibc bug, was able to track down https://bugs.chromium.org/p/chromium/issues/detail?id=1244383 which has the relevant CL fixing this issue. This bug is fixed in Electron 14+, I will backport the fix to other supported Electron lines.
deepak1556 commentedon Sep 23, 2021
Electron PR: electron/electron#31091
borgdylan commentedon Sep 23, 2021
How do we contact other teams at MSFT that are using electron? I wish they could know about it so they release patched builds of Data Studio, Teams and Skype.
BMWestrich commentedon Sep 27, 2021
Happening for me as well:
❯ code-insiders --version
1.61.0-insider
5991e3c
x64
❯ cat /proc/version
Linux version 5.14.6-1-default (geeko@buildhost) (gcc (SUSE Linux) 11.2.1 20210816 [revision 056e324ce46a7924b5cf10f61010cf9dd2ca10e9], GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.37.20210803-1) #1 SMP Mon Sep 20 07:02:13 UTC 2021 (6131a3c)
freevatar commentedon Sep 29, 2021
Same issue here.
$ code-insiders --version1.61.0-insider
214ac68
OS:
Fedora 35Kernel:
5.14.7-300Nvidia driver:
470.74GNOME Shell:
41.0xorg-x11-server-Xwayland:
21.1.2-2egl-wayland:
1.1.7-2Additional Information:
Works as a charm on Fedora 34.
4 remaining items
vscode-triage-bot commentedon Sep 29, 2021
This bug has been fixed in the latest release of VS Code Insiders!
Dylan Borg (@borgdylan), you can help us out by commenting
/verifiedif things are now working as expected.If things still don't seem right, please ensure you're on version 4fbe034 of Insiders (today's or later - you can use
Help: Aboutin the command palette to check), and leave a comment letting us know what isn't working as expected.Happy Coding!
freevatar commentedon Sep 29, 2021
Robo (@deepak1556)
It doesn't crash anymore, but still not working on
Wayland.Now on
Waylandit shows completely blank white window with titleGet Startedunless I start it with--no-sandboxflag.On
Xorgit works.$ code-insiders --version1.61.0-insider
4fbe034
deepak1556 commentedon Sep 30, 2021
For wayland are you starting with
code-insiders --enable-features=UseOzonePlatform --ozone-platform=wayland? If not, can you try with this flag.freevatar commentedon Sep 30, 2021
Robo (@deepak1556)
It starts with mentioned flags but new issue is VSCode window doesn't have title bar.
And it's still unclear why everything works as a charm without any flags on Fedora 34.
darix commentedon Sep 30, 2021
JFYI 13.5.0 by itself is not enough to allow building on hosts with clone3() support as parts of the intree libraries still reference SIGSTKSZ, which is no longer defined.
deepak1556 commentedon Sep 30, 2021
Freevatar (@freevatar) can you open a separate issue for that as it is unrelated to the original issue mentioned here. Thanks!
deepak1556 commentedon Sep 30, 2021
darix according to https://chromium-review.googlesource.com/c/chromium/src/+/2936184 chromium does not want to support
clone3darix commentedon Sep 30, 2021
well ... clone3 is supported with the patches applied in 13.5.0, the other problem is a change how thread stack size is handled dynamically now.
lets say "it is handled" not supported.
you also need a9831f1cbf93fb18dd951453635f488037454ce9 from abseil and
deepak1556 commentedon Sep 30, 2021
Is it supported in the sandboxed processes ? Can you share an example of what you tried. Thanks!
TylerLeonhardt commentedon Oct 1, 2021
based on this comment #133593 (comment), this issue looks verified. Marking as verified but please don't hesitate to say otherwise.
deepak1556 commentedon Oct 4, 2021
darix for #133593 (comment), I see that you are referring to building with newer glibc. VSCode does not build the runtime so it is better to track this in electron/electron#31113.
chore: bump [email protected]