9

I've installed vscode 1.0 on ubuntu 14.4 LTS. It works fine if I log in locally with unity desktop and type the "code" command in the terminal.

However, when I rdp into the box I have to use xfce4 desktop because xrdp apparently doesn't work with unity, and when I try to launch it from the command line there I get no errors in the terminal but the UI never appears.

I did previously install an older version of vscode and did not uninstall that prior to installing 1.0 in case that could be a factor.

when I type

code --version

it correctly reports 1.0.0

anyone have any ideas to solve this? I really want to be able to work using rdp from my windows 10 machine

UPDATE: this problem seems to only occur using rdp, if I login locally with xfce4 it works as expected just as with unity desktop. My ubuntu box an intel nuc5ppyh with latest bios, I think maybe code is launching on a not visible display output. Previously the box was configured to mirror to an hdmi output at I use this also connected to a tv. I've tried disabling the hdmi output from the bios and messing around with xrandr but still cannot get it working over rdp. I'm not a linux expert but still think it might actually be loading code in a non visible display output but not sure how to troubleshoot the problem

Joe Audette
  • 35,330
  • 11
  • 106
  • 99

5 Answers5

34

The suggested command from the second link above helps:

sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1
Mikhail Orlov
  • 2,789
  • 2
  • 28
  • 38
3

This is happening due to an Electron bug, see issues tracking the bug below:

Daniel Imms
  • 47,944
  • 19
  • 150
  • 166
  • I could not get the workarounds mentioned in those links to work for me, in the end I uninstalled xrdp and installed tigervnc on the ubuntu box and now I'm able to use tightvnc viewer from my windows 10 machine and vscode does work for me with this combination – Joe Audette Apr 18 '16 at 20:23
  • It's actually due to a BIG-REQUESTS bug in whatever is acting like an X server e.g. some X implementations (e.g. Xming) or programs acting like X and resending the X display (e.g. xrdp, x2go, vncserver etc). [The Arctica Project devs narrowed down a 2007 big requests bug fix in Xorg](https://github.com/ArcticaProject/nx-libs/pull/729) (link to the [Xorg commit containing the big requests fix](https://gitlab.freedesktop.org/xorg/xserver/commit/ca82d4bddf235c9b68d51d68636bab40eafb9889)) and fixed it in their version of x2go. Modern TigerVNC (which builds against Xorg) is also fine. – Anon Nov 23 '19 at 08:06
3

The libgconf-2-4 package might be missing preventing the application to launch. This might help:

sudo apt-get install libgconf-2-4
0

The answer from above needed a little tweak to work on my 32 bit Unbuntu 16.04 system running xfce4 over a vnc connection.

sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/i386-linux-gnu/libxcb.so.1

My code version is 1.11.2.

jkjellman
  • 9
  • 2
-1

This works fine, I am using Ubuntu 16.04 XRDP:

sudo sed -i 's/BIG-REQUESTS/_IG-REQUESTS/' /usr/lib/x86_64-linux-gnu/libxcb.so.1
Pedro del Sol
  • 2,840
  • 9
  • 39
  • 52