Skip to content

Code fails to launch normally on Ubuntu 21.10 #133593

Closed

Description

@borgdylan

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

  • VS Code Version: latest insiders
  • OS Version: Ubuntu 21.10 (kernel 5.14.6)

Steps to Reproduce:

  1. Try to open code-insiders (or azure data studio)
  2. A window breifly pops up then closes (crashes).
  3. If launching with --no-sandbox the window does not crash, code starts and operates normally.

Activity

  1. borgdylan commented on Sep 22, 2021

    @borgdylan
    Author

    This is similar to #132455.

  2. 3vi1 commented on Sep 22, 2021

    @3vi1

    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.
    
    
  3. borgdylan commented on Sep 22, 2021

    @borgdylan
    Author

    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.

  4. borgdylan commented on Sep 22, 2021

    @borgdylan
    Author

    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

  5. deepak1556 commented on Sep 23, 2021

    @deepak1556
    Collaborator

    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.

  6. added
    bug
    chromium
    sandbox
    upstream-issue-fixed
    on Sep 23, 2021
  7. deepak1556 commented on Sep 23, 2021

    @deepak1556
    Collaborator
  8. borgdylan commented on Sep 23, 2021

    @borgdylan
    Author

    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.

  9. BMWestrich commented on Sep 27, 2021

    @BMWestrich

    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)

  10. freevatar commented on Sep 29, 2021

    @freevatar

    Same issue here.

    $ code-insiders --version
    1.61.0-insider
    214ac68

    OS: Fedora 35
    Kernel: 5.14.7-300
    Nvidia driver: 470.74
    GNOME Shell: 41.0
    xorg-x11-server-Xwayland: 21.1.2-2
    egl-wayland: 1.1.7-2

    Additional Information:
    Works as a charm on Fedora 34.

  11. 4 remaining items

  12. added
    author-verification-requested
    on Sep 29, 2021
  13. vscode-triage-bot commented on Sep 29, 2021

    @vscode-triage-bot

    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.

    Happy Coding!

  14. freevatar commented on Sep 29, 2021

    @freevatar

    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.

    $ code-insiders --version
    1.61.0-insider
    4fbe034

  15. deepak1556 commented on Sep 30, 2021

    @deepak1556
    Collaborator

    For wayland are you starting with code-insiders --enable-features=UseOzonePlatform --ozone-platform=wayland ? If not, can you try with this flag.

  16. freevatar commented on Sep 30, 2021

    @freevatar

    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.

  17. darix commented on Sep 30, 2021

    @darix

    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.

  18. deepak1556 commented on Sep 30, 2021

    @deepak1556
    Collaborator

    It starts with mentioned flags but new issue is VSCode window doesn't have title bar.

    Freevatar (@freevatar) can you open a separate issue for that as it is unrelated to the original issue mentioned here. Thanks!

  19. deepak1556 commented on Sep 30, 2021

    @deepak1556
    Collaborator
  20. darix commented on Sep 30, 2021

    @darix

    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.
    
    
  21. deepak1556 commented on Sep 30, 2021

    @deepak1556
    Collaborator

    clone3 is supported with the patches applied in 13.5.0

    Is it supported in the sandboxed processes ? Can you share an example of what you tried. Thanks!

  22. TylerLeonhardt commented on Oct 1, 2021

    @TylerLeonhardt
    Member

    based on this comment #133593 (comment), this issue looks verified. Marking as verified but please don't hesitate to say otherwise.

  23. added
    verified
    on Oct 1, 2021
  24. deepak1556 commented on Oct 4, 2021

    @deepak1556
    Collaborator

    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.

  25. locked and limited conversation to collaborators on Nov 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

author-verification-requestedbugchromiuminsiders-releasedsandboxupstream-issue-fixedverified

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions