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

VS Code not working on Ubuntu when connected using XRDP. #3451

Open
hannesne opened this issue Feb 25, 2016 · 106 comments
Open

VS Code not working on Ubuntu when connected using XRDP. #3451

hannesne opened this issue Feb 25, 2016 · 106 comments

Comments

@hannesne
Copy link
Member

@hannesne hannesne commented Feb 25, 2016

Hi, it seems like the bug with either Atom or XRDP discussed in Atom issue here: atom/atom#4360 is keeping VSCode from working in Ubuntu when you connect to it with RDP.
Trying to launch the app gives the following output:

Xlib: extension "XInputExtension" missing on display ":10.0".
Xlib: extension "XInputExtension" missing on display ":10.0".
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/tls/swrast_dri.so
libGL: OpenDriver: trying /usr/lib/x86_64-linux-gnu/dri/swrast_dri.so
libGL: Can't open configuration file /home/hannesne/.drirc: No such file or directory.
libGL: Can't open configuration file /home/hannesne/.drirc: No such file or directory.
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
bash: cannot set terminal process group (-1): Inappropriate ioctl for device
bash: no job control in this shell
Xlib: extension "XInputExtension" missing on display ":10.0".
Xlib: extension "XInputExtension" missing on display ":10.0".
[ , [Error: channel closed] ]

This happens regardless of using the MATE or LFCE desktop.
An output of GLXInfo gives the following:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
name of display: :10.0
display: :10 screen: 0
direct rendering: No (If you want to find out why, try setting LIBGL_DEBUG=verbose)
server glx vendor string: SGI
server glx version string: 1.2
server glx extensions:
GLX_EXT_import_context, GLX_EXT_visual_info, GLX_EXT_visual_rating
client glx vendor string: Mesa Project and SGI
client glx version string: 1.4
client glx extensions:
GLX_ARB_create_context, GLX_ARB_create_context_profile,
GLX_ARB_create_context_robustness, GLX_ARB_fbconfig_float,
GLX_ARB_framebuffer_sRGB, GLX_ARB_get_proc_address, GLX_ARB_multisample,
GLX_EXT_buffer_age, GLX_EXT_create_context_es2_profile,
GLX_EXT_fbconfig_packed_float, GLX_EXT_framebuffer_sRGB,
GLX_EXT_import_context, GLX_EXT_texture_from_pixmap, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_INTEL_swap_event, GLX_MESA_copy_sub_buffer,
GLX_MESA_multithread_makecurrent, GLX_MESA_query_renderer,
GLX_MESA_swap_control, GLX_OML_swap_method, GLX_OML_sync_control,
GLX_SGIS_multisample, GLX_SGIX_fbconfig, GLX_SGIX_pbuffer,
GLX_SGIX_visual_select_group, GLX_SGI_make_current_read,
GLX_SGI_swap_control, GLX_SGI_video_sync
GLX version: 1.2
GLX extensions:
GLX_ARB_get_proc_address, GLX_EXT_import_context, GLX_EXT_visual_info,
GLX_EXT_visual_rating, GLX_MESA_multithread_makecurrent
OpenGL vendor string: Mesa project: www.mesa3d.org
OpenGL renderer string: Mesa GLX Indirect
OpenGL version string: 1.3 Mesa 4.0.4
OpenGL extensions:
GL_ARB_imaging, GL_ARB_multitexture, GL_ARB_texture_border_clamp,
GL_ARB_texture_cube_map, GL_ARB_texture_env_add,
GL_ARB_texture_env_combine, GL_ARB_texture_env_dot3,
GL_ARB_transpose_matrix, GL_EXT_abgr, GL_EXT_blend_color,
GL_EXT_blend_minmax, GL_EXT_blend_subtract, GL_EXT_draw_range_elements,
GL_EXT_multi_draw_arrays, GL_EXT_texture_env_add,
GL_EXT_texture_env_combine, GL_EXT_texture_env_dot3,
GL_EXT_texture_lod_bias, GL_SGIS_texture_border_clamp,
GL_SUN_multi_draw_arrays

8 GLX Visuals
visual x bf lv rg d st colorbuffer sr ax dp st accumbuffer ms cav

id dep cl sp sz l ci b ro r g b a F gb bf th cl r g b a ns b eat

0x024 24 tc 1 24 0 r y . 8 8 8 0 . . 0 16 0 0 0 0 0 0 0 None
0x025 24 tc 1 24 0 r y . 8 8 8 0 . . 0 16 8 16 16 16 0 0 0 None
0x026 24 tc 1 24 0 r y . 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None
0x027 24 tc 1 24 0 r . . 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None
0x028 24 dc 1 24 0 r y . 8 8 8 0 . . 0 16 0 0 0 0 0 0 0 None
0x029 24 dc 1 24 0 r y . 8 8 8 0 . . 0 16 8 16 16 16 0 0 0 None
0x02a 24 dc 1 24 0 r y . 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None
0x02b 24 dc 1 24 0 r . . 8 8 8 8 . . 0 16 8 16 16 16 16 0 0 None

Any suggestions?

@roterdam
Copy link

@roterdam roterdam commented Mar 21, 2016

Open up ''/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0'' and remove BIG_EXTENSIONS to something else like FIG_EXTENSIONS.

sudo vi /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
s/BIG_EXTENSIONS/FIG_EXTENSIONS

This is a total hack, but it does work.

@Tyriar maybe you can put this in your release notes or something. The reason is that XRDP only works with Ubuntu MATE (or XFCE, etc.) lighter weight desktops, and there this BIG REQUEST thing doesn't seem to work.

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Apr 4, 2016

Same issue tracked in atom atom/atom#4360, here's the upstream electron issue electron/electron#2256

@Tyriar Tyriar added upstream bug and removed help wanted labels Apr 4, 2016
@joeaudette
Copy link

@joeaudette joeaudette commented Apr 18, 2016

@roterdam I'm facing this problem with vscode 1.0.0 on ubuntu 14.4 LTS but when I try to edit the file as you indicated with vi, it says pattern not found

@joeaudette
Copy link

@joeaudette joeaudette commented Apr 18, 2016

for anyone else encountering this, I worked around this problem by uninstalling xrdp and installing tigervnc on my ubuntu box, then I installed tightvnc viewer on my windows 10 box and now when I remote in vscode works for me. rdp seems a little nicer to me than vnc so hoping maybe when ubuntu 16 LTS comes out I can change back to rdp

@roterdam
Copy link

@roterdam roterdam commented Apr 21, 2016

@joeaudette that sucks. did you make sure it was case sensitive? vnc is not as performant. Same issue in 16.04 LTS I just tried. Damn Ubuntu. It works fine on Fedora 22.

@joeaudette
Copy link

@joeaudette joeaudette commented Apr 22, 2016

@roterdam yes I tried lower and upper case but it could not find any match. tried also looking for BIG_REQUEST, big_request, BIG-REQUEST per the similar atom issue but no variants I tried could be found.

strangely while atom and electron bugs are still open some are saying it works fine with rdp using atom 1.5.4, so wondering what version of electron is used for vscode 1.0.0, maybe it is working in the latest version

vnc performance seems ok to me since I'm just using it on a local network, I had to futz around with display settings to get a good experience whereas rdp seemed to automatically scale the screen just right for me.

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Apr 22, 2016

@joeaudette I believe the latest insiders build was upgraded to Electron 0.37.6 (#5378) 2 days ago.

@AlexZeitler
Copy link

@AlexZeitler AlexZeitler commented Apr 26, 2016

Just updated to the latest Insiders build on Ubuntu 14.04. Still doesn't work via RDP.

@groone
Copy link

@groone groone commented May 8, 2016

Hack worked vscode works via xrdp in Ubuntu MATE 16.04:

  • make a backup first
  • sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1
@joeaudette
Copy link

@joeaudette joeaudette commented May 8, 2016

@groone Thanks! will give that a try soon

@knockshore
Copy link

@knockshore knockshore commented May 24, 2016

@groone Thanks. it worked.

@AdonousTech
Copy link

@AdonousTech AdonousTech commented May 29, 2016

@groone Thanks! This worked for me as well.

@ctaggart
Copy link

@ctaggart ctaggart commented Jun 8, 2016

That worked for X2go on Debian Jessie as well. 👍

@msouga
Copy link

@msouga msouga commented Jun 10, 2016

Thanks a lot it worked for me too on Ubuntu 14.04 TLS

@emseedee
Copy link

@emseedee emseedee commented Jun 10, 2016

Thanks - also worked for me - I can now use Atom over XRDP on Debian Jessie 8.5.0

@Nicholi
Copy link

@Nicholi Nicholi commented Jun 14, 2016

The hack "works" (x2go via LXDE) but then seems to break other apps like VLC for me (under normal desktop login, nothing remote).

@rcarmo
Copy link

@rcarmo rcarmo commented Jun 20, 2016

There is a much cleaner workaround that won't break other apps:

# make a copy of the relevant library
mkdir ~/lib
cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
# set the dynamic loader path to put your library first before executing VS Code
LD_LIBRARY_PATH=$HOME/lib code

Obviously, you can tweak your .desktop files and other launchers to set the environment variable solely for VS Code. Go to /usr/share/applications/code.desktop, copy it to ~/.gnome/apps (or wherever your desktop manager likes it) and change the Exec line to read something like:

Exec=sh -c "env LD_LIBRARY_PATH\=\$HOME/lib  /usr/share/code/code" %U

The sh -c makes sure the command is evaluated and variables expanded, and env sets the variable itself. This is not very pretty, but not all desktop managers handle environment variables inside .desktop files the same way, so it's a sort of belt and suspenders approach.

I just tested this on Xenial (Ubuntu 16.04) inside vnc4server. Of course the real issue needs to be fixed upstream in Electron (I have to wonder why they don't have cleaner fallbacks for lack of graphics acceleration...)

@k-y
Copy link

@k-y k-y commented Jun 20, 2016

Worked on CentOS 7 on x2go ; TYVM for this tip!

@AlexZeitler
Copy link

@AlexZeitler AlexZeitler commented Jul 3, 2016

@rcarmo Thanks for the tip but it doesn't work (the tips above don't work neither). XRDP to Ubuntu Mate on Ubuntu Server running in AWS.

@AlexZeitler
Copy link

@AlexZeitler AlexZeitler commented Jul 3, 2016

I just located the directory using dpkg -L visual-studio-code which pointed me to /usr/share/code.
After copying the modified version of libxcb.so.1 into that directory, I was able to start Code (but only works if I start it from /usr/share/code not by just typing code everywhere.

@MaximoTrinidad
Copy link

@MaximoTrinidad MaximoTrinidad commented Sep 19, 2016

  • VSCode Version: 1.5.2 Linux deb version
  • OS Version: Windows 10 Pro Insider Preview
  • Remote Connection to: Ubuntu 16.04.1 LTS Desktop
  • Linux xrdp: Xfce-session

Steps to Reproduce:

  1. On Windos 10, open Remote Desktop application
  2. Connect to Linux machine using IP Address provided.
  3. At the Xfec session, click on "Applications | Development | Visual Studio Code"

Results:
Nothing opens

Provide VS Code Verbose results:
maxt@orion:~$ code --verbose
Xlib: extension "XInputExtension" missing on display ":10.0".
(4:29:39 PM) ### VSCode main.js ###
(4:29:40 PM) /usr/share/code/resources/app { _: [],
paths: [],
performance: false,
verbose: true,
debugPluginHost: undefined,
debugBrkPluginHost: undefined,
logExtensionHostCommunication: false,
'new-window': false,
'reuse-window': false,
goto: false,
diff: false,
extensionHomePath: undefined,
extensionDevelopmentPath: undefined,
extensionTestsPath: undefined,
'disable-extensions': false,
locale: undefined,
wait: false }
Xlib: extension "XInputExtension" missing on display ":10.0".
Xlib: extension "XInputExtension" missing on display ":10.0".

Try Workaround from:
#3451
#9016
#11873

Changing both '/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0' and '/usr/lib/x86_64-linux-gnu/libxcb.so.1'
information: 's/BIG-REQUESTS/_IG-REQUESTS/' -> Didn't work!

This issue shouldn't be resolved with a workaround. It VS Code should work like JetBrains Python Editor "PC PyCharm" in a xrdp session.

pycharm_2016-09-18_18-10-30

See attached image:
vscode_notremoting_2016-09-18_17-43-13

@scovetta
Copy link
Member

@scovetta scovetta commented Sep 2, 2019

A note for those trying the BIG-REQUESTS hack on Xubuntu 18.04 + VNC (tightvnc) with VS Code installed via a Snap -- the workaround didn't work. I had to remove the snap and install VS Code from a .deb. I'm not sure if it's the Snap's security model -- perhaps it doesn't respect LD_LIBRARY_PATH?

@Tyriar
Copy link
Member

@Tyriar Tyriar commented Sep 6, 2019

@scovetta I think snaps use LD_LIBRARY_PATH as one of the things to do the sandboxing and use the internal libs

@Tyriar Tyriar assigned deepak1556 and unassigned Tyriar Oct 9, 2019
@Tyriar Tyriar removed the bug label Oct 9, 2019
@bpasero
Copy link
Member

@bpasero bpasero commented Oct 18, 2019

Upstream issue: electron/electron#2256

@deraeler
Copy link

@deraeler deraeler commented Oct 22, 2019

folks - I admit to being a unix novice, however trying to set this up had been a total cluster. I have an ubuntu 16.04 VM set up on AWS. The manual VS-CODE install appeared to run fine. However I get this same issue.
When I attempt to edit that file (/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0) in either UTF-8 or UNICODE it comes up as gibberish - it's not editable. Same with the ".1" file. What am I missing?
I've been using RDP from Windows 10 using Putty to tunnel the X session and it works fine for launching the XFCE (?) GUI, Chrome, etc. VS-CODE does nothing however.
I even installed XMing - and it works for Firefox, but not for VS-CODE.
I just installed the latest version of VS-CODE, but I"m not sure what the origin is of that libxcb file - don't know why mine would be different from everyone else's here.
Appreciate any help getting this working...ideally a better/more perm fix than editing this file - but if that's all I can do....I obviously need some coaching.

TIA !

@deraeler
Copy link

@deraeler deraeler commented Oct 22, 2019

p.s. - the file(s) appear as binary or compressed - anything but text.

Secondly, the verbose output from manually launching 'code' :

[main 2019-10-22T01:09:26.307Z] Starting VS Code
[main 2019-10-22T01:09:26.312Z] from: /usr/share/code/resources/app
[main 2019-10-22T01:09:26.312Z] args: { _: [], verbose: true, diff: undefined }
[main 2019-10-22T01:09:26.314Z] Resolving machine identifier...
[main 2019-10-22T01:09:26.315Z] Resolved machine identifier: 7e8a785c0bee2372fa33c7eef84c3799cb1191009b462f78d101de9512637210 (trueMachineId: undefined)
[main 2019-10-22T01:09:26.335Z] update#setState idle
[main 2019-10-22T01:09:26.339Z] [storage state.vscdb] open(/home/bitnami/.config/Code/User/globalStorage/state.vscdb, retryOnBusy: true)
[main 2019-10-22T01:09:26.340Z] lifecycle (main): phase changed (value: 2)
[main 2019-10-22T01:09:26.342Z] windowsManager#open
[6505:1022/010927.090905:ERROR:browser_main_parts.cc(137)] X IO error received (X server probably went away)

@jayenashar
Copy link

@jayenashar jayenashar commented Oct 22, 2019

don't try modifying the file with a text editor - as you have discovered it's not text but compiled code

this command will make a modified copy for vscode (only) to use:

sed 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1 | sudo tee /usr/share/code/libxcb.so.1 > /dev/null

@deraeler
Copy link

@deraeler deraeler commented Oct 22, 2019

@rudy-letote
Copy link

@rudy-letote rudy-letote commented Nov 4, 2019

@rcarmo thanks rcarmo very much , �i have spent many time using vscode through vnc,unfortunately all of them failed and i had given up before i met your answers. if you could change some ,it will be more convenient for someone who is newcomer like me.

LD_LIBRARY_PATH=$HOME/lib code ---> export LD_LIBRARY_PATH=$HOME/lib code
Exec=sh -c "env LD_LIBRARY_PATH=$HOME/lib /usr/share/code/code" %U ---> sh -c "env LD_LIBRARY_PATH=$HOME/lib /usr/share/code/code" %U ( I spent some time in here)

an adviser from a newcomer to linux and native language is not english .

@shmuelf
Copy link

@shmuelf shmuelf commented Dec 8, 2019

Open up ''/usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0'' and remove BIG_EXTENSIONS to something else like FIG_EXTENSIONS.

sudo vi /usr/lib/x86_64-linux-gnu/libxcb.so.1.1.0
s/BIG_EXTENSIONS/FIG_EXTENSIONS

This is a total hack, but it does work.

@Tyriar maybe you can put this in your release notes or something. The reason is that XRDP only works with Ubuntu MATE (or XFCE, etc.) lighter weight desktops, and there this BIG REQUEST thing doesn't seem to work.

for me it was sudo vi /usr/lib/aarch64-linux-gnu/libxcb.so.1.1.0
and it worked! vscode on android! (on ubuntu on termux)

@kk738
Copy link

@kk738 kk738 commented Dec 10, 2019

I get it to work with snap like that: #86372 (comment)

A note for those trying the BIG-REQUESTS hack on Xubuntu 18.04 + VNC (tightvnc) with VS Code installed via a Snap -- the workaround didn't work. I had to remove the snap and install VS Code from a .deb. I'm not sure if it's the Snap's security model -- perhaps it doesn't respect LD_LIBRARY_PATH?

@stbrowne
Copy link

@stbrowne stbrowne commented Mar 19, 2020

#86372 (comment)
The above link works, but I got annoyed with updates breaking it so I have a modified the non-snap solution to work via LD_PRELOAD instead of LD_LIBRARY_PATH and it works.

create the modified lib

  • mkdir ~/lib
  • cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
  • sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
  • LD_PRELOAD=$HOME/lib/libxcb.so.1 code
@nk0952
Copy link

@nk0952 nk0952 commented Mar 23, 2020

@groone Thanks! its worked you are a savior

@ahjumma
Copy link

@ahjumma ahjumma commented Mar 24, 2020

#86372 (comment)
The above link works, but I got annoyed with updates breaking it so I have a modified the non-snap solution to work via LD_PRELOAD instead of LD_LIBRARY_PATH and it works.

create the modified lib

  • mkdir ~/lib
  • cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
  • sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
  • LD_PRELOAD=$HOME/lib/libxcb.so.1 code

On top of this, I made an alias to inject the LD_PRELOAD variable whenever "code" is executed.

In your shell config,

alias code="LD_PRELOAD=$HOME/lib/libxcb.so.1 code"
@MaximoTrinidad
Copy link

@MaximoTrinidad MaximoTrinidad commented Mar 25, 2020

This issue has been around for a few years, more since the beginning of VSCode. I'm surprised that they still leave it to us to do the hack instead of fixing it.

@viettelidc-oss
Copy link

@viettelidc-oss viettelidc-oss commented Mar 25, 2020

This issue has been around for a few years, more since the beginning of VSCode. I'm surprised that they still leave it to us to do the hack instead of fixing it.

yes, it's super annoying. Why can't they just fix that?

@deckar01
Copy link

@deckar01 deckar01 commented Mar 31, 2020

Use code --user-data-dir=/tmp/remote.

$ code --help
...
  --user-data-dir <dir>             Specifies the directory that user data is
                                    kept in. Can be used to open multiple
                                    distinct instances of Code.
...

I'm sure they just pass it through to chromium, because I have to use the same flag for it when using xrdp with multiple sessions.

https://chromium.googlesource.com/chromium/src.git/+/master/docs/user_data_dir.md

@vitaly-zverev
Copy link

@vitaly-zverev vitaly-zverev commented Apr 24, 2020

#86372 (comment)
The above link works, but I got annoyed with updates breaking it so I have a modified the non-snap solution to work via LD_PRELOAD instead of LD_LIBRARY_PATH and it works.
create the modified lib

  • mkdir ~/lib
  • cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
  • sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
  • LD_PRELOAD=$HOME/lib/libxcb.so.1 code

On top of this, I made an alias to inject the LD_PRELOAD variable whenever "code" is executed.

In your shell config,

alias code="LD_PRELOAD=$HOME/lib/libxcb.so.1 code"

Thanks a lot!

mkdir ~/lib
cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
echo 'alias code="LD_PRELOAD=$HOME/lib/libxcb.so.1 code"' > ~/.bash_aliases
bash

code --version
1.44.2
ff91584
x64

works like a charm on ubuntu_18.04+novnc+xfce4

@svc76
Copy link

@svc76 svc76 commented May 3, 2020

@FelixQuehl The old fix from "groon" May 8 2016 above still works. It is sad that this issue still dangles around. It worked in Windows Subsystem for Linux / Ubuntu at least.

For convenience: sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1

This worked perfectly fine for me! Thanks a lot. Mine was a ubuntu 18.04 LTS with LXDE over TightVNCServer. Accessing through screenshare app from Mac.

@neo502721
Copy link

@neo502721 neo502721 commented Sep 16, 2020

There is a much cleaner workaround that won't break other apps:

# make a copy of the relevant library
mkdir ~/lib
cp /usr/lib/x86_64-linux-gnu/libxcb.so.1 ~/lib
sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' ~/lib/libxcb.so.1
# set the dynamic loader path to put your library first before executing VS Code
LD_LIBRARY_PATH=$HOME/lib code

Obviously, you can tweak your .desktop files and other launchers to set the environment variable solely for VS Code. Go to /usr/share/applications/code.desktop, copy it to ~/.gnome/apps (or wherever your desktop manager likes it) and change the Exec line to read something like:

Exec=sh -c "env LD_LIBRARY_PATH\=\$HOME/lib  /usr/share/code/code" %U

The sh -c makes sure the command is evaluated and variables expanded, and env sets the variable itself. This is not very pretty, but not all desktop managers handle environment variables inside .desktop files the same way, so it's a sort of belt and suspenders approach.

I just tested this on Xenial (Ubuntu 16.04) inside vnc4server. Of course the real issue needs to be fixed upstream in Electron (I have to wonder why they don't have cleaner fallbacks for lack of graphics acceleration...)

I'm use ubuntu vnc too. The exec cmd need --no-sandbox parameter.

if no that, vscode will fail:
[27719:0916/111425.651934:FATAL:electron_main_delegate.cc(275)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
Trace/breakpoint trap (core dumped)

vscode version:
version: 1.49.0
Commit: e790b93
Date: 2020-09-10T13:20:50.359Z (5 days ago)
Electron: 9.2.1
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 4.4.0-184-generic

@bennettpeter
Copy link

@bennettpeter bennettpeter commented Sep 16, 2020

This problem no longer happens with xubuntu 20.04 and the latest vs code. I don't know when or where it was fixed, but I have not used the workaround for a long time and vs code now runs fine under xrdp.

@thoughtrefraction
Copy link

@thoughtrefraction thoughtrefraction commented Sep 22, 2020

I'm running xubuntu 20.04 with a tighvnc server and I still need the workaround.

@nh-37rtm
Copy link

@nh-37rtm nh-37rtm commented Sep 22, 2020

same problem (the workaround works) with Ubuntu 20.04 with XMing via SSH (with X11 forwarding), no problem for running vscode without X11 Forwarding

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
You can’t perform that action at this time.