Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VSCode 1.57 hangs on linux with a message "Select a language to get started. Start typing to dismiss, or don't show this again." #126489

Closed
SrikrishnanS opened this issue Jun 16, 2021 · 18 comments
Assignees
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues

Comments

@SrikrishnanS
Copy link

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

Steps to Reproduce:

  1. Downloaded Visual Studio Code 1.57 tar file (.tar.gz 64 bit) from https://code.visualstudio.com/download
  2. Extracted the tar: tar -xf
  3. Used bin/code binary
@bpasero
Copy link
Member

bpasero commented Jun 16, 2021

/gifPlease

@bpasero bpasero added the info-needed Issue requires more information from poster label Jun 16, 2021
@SrikrishnanS
Copy link
Author

SrikrishnanS commented Jun 16, 2021

Here's a screenshot, app freezes with this screen...

snapshot1

@bpasero
Copy link
Member

bpasero commented Jun 17, 2021

@SrikrishnanS you cannot click into the editor and start typing or use anything from the application?

@ladouxs
Copy link

ladouxs commented Jun 17, 2021

Hi,
I encountered the same issue on Linux CentOS 7.4 64 bits.
2021-06-17 12_19_31-Window

Virtual machine VMWare
[team@localhost Documents]$ uname -r
3.10.0-693.el7.x86_64

I think this issue is easy to reproduce on a CentOS 7 VM.
In the past I had no problem installing VS Code on various Linux systems.
Best Regards.

UPDATE : VSCode v. 1.56 raised the same issue but version 1.53 (January 2021) seems to work.

@bpasero
Copy link
Member

bpasero commented Jun 17, 2021

The linux issue can be solved by running code --no-sandbox

@ladouxs
Copy link

ladouxs commented Jun 17, 2021

Running "code" with --no-sandbox argument did not solved the problem, but as mentioned before, previous versions tagged "el7" are working correctly (i.e. keyboard responsive) on CentOS 7.

@SrikrishnanS
Copy link
Author

@SrikrishnanS you cannot click into the editor and start typing or use anything from the application?

Yes, I can't click or work with vscode.

@bpasero
Copy link
Member

bpasero commented Jun 17, 2021

Can you see if it still reproduces when disabling the GPU support in VSCode? You can do that by running VSCode from the command line like this: code --disable-gpu

If that helps, you can permanently configure this option via:

  • Command Palette search for "Configure Runtime Arguments"
  • Set disable-hardware-acceleration: true
  • Restart

@SrikrishnanS
Copy link
Author

SrikrishnanS commented Jun 17, 2021

Hi @bpasero
--no-sandbox didn't work:
Warning: 'sandbox' is not in the list of known options, but still passed to Electron/Chromium.
--disable-gpu didn't work either, had no effect - window still frozen.

@bpasero
Copy link
Member

bpasero commented Jun 17, 2021

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

@SrikrishnanS
Copy link
Author

Past the earlier screen, but freezes with a different home screen now

snapshot1

@bpasero
Copy link
Member

bpasero commented Jun 18, 2021

Anything special about your setup? What Linux distro is this?

@ladouxs
Copy link

ladouxs commented Jun 18, 2021

Hi @bpasero,

I installed your nightly insider builds as mentioned.
Running code-insiders --no-sandbox --verbose gave me the stack trace in attachment.
code_stack.txt

@bpasero
Copy link
Member

bpasero commented Jun 18, 2021

Thanks, this seems like the culprit:

Error: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/share/code-insiders/resources/app/node_modules.asar.unpacked/spdlog/build/Release/spdlog.node)
    at process.func [as dlopen] (electron/js2c/asar_bundle.js:5:1846)
    at Object.Module._extensions..node (internal/modules/cjs/loader.js:1185:18)
    at Object.func [as .node] (electron/js2c/asar_bundle.js:5:2073)
    at Module.load (internal/modules/cjs/loader.js:982:32)
    at Module._load (internal/modules/cjs/loader.js:823:14)
    at Function.f._load (electron/js2c/asar_bundle.js:5:12684)
    at Module.require (internal/modules/cjs/loader.js:1006:19)
    at v (/usr/share/code-insiders/resources/app/out/vs/loader.js:4:698)

I let Deepak continue the investigation, I think there maybe duplicates.

@bpasero bpasero added the freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues label Jun 18, 2021
@bpasero bpasero assigned deepak1556 and unassigned bpasero Jun 18, 2021
@bpasero bpasero removed the info-needed Issue requires more information from poster label Jun 18, 2021
@SrikrishnanS
Copy link
Author

@bpasero @deepak1556
OS: Linux 4.1.12-124.46.4.1.el7uek.x86_64 x86_64
System: Red Hat Enterprise Linux Server release 7.4 (Maipo)
KDE: 4.14.8

@deepak1556
Copy link
Collaborator

Merging this to #115784

This is a known issue that versions higher that 1.52 don't work on RHEL 7 systems, there is workaround to install newer gcc toolchain mentioned in the linked issue until we work on a fix.

@SrikrishnanS
Copy link
Author

SrikrishnanS commented Jul 7, 2021

Any ETA for when the fix will make it?

@github-actions github-actions bot locked and limited conversation to collaborators Aug 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
freeze-slow-crash-leak VS Code crashing, performance, freeze and memory leak issues
Projects
None yet
Development

No branches or pull requests

5 participants
@bpasero @deepak1556 @SrikrishnanS @ladouxs and others