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

dbus is very slow/does not work #75

Closed
AngellusMortis opened this issue Feb 1, 2019 · 10 comments
Closed

dbus is very slow/does not work #75

AngellusMortis opened this issue Feb 1, 2019 · 10 comments

Comments

@AngellusMortis
Copy link

AngellusMortis commented Feb 1, 2019

Describe the issue
dbus is very slow to start and any applications that use dbus (VS Code) seem to not work at all.

To Reproduce

  1. Install an X server (I am using VcXsrv) on Windows 10.
  2. Install visual-studio-code-bin from AUR (any app that uses X11/dbus should work as well?)
  3. Open Arch WSL and run the following:
       $ sudo mkdir /run/dbus -p
       $ sudo dbus-daemon --system  # this takes ~90 seconds to start on my machine
       $ DISPLAY=:0.0 code # It is normal for this command to exit right away, 
       # check Task Manager/do `ps` to see process. It exits after ~5 minutes 
       # on my machine never launching VS Code properly. It *should* spawn 
       # ~5 `code` processes and start a window with VS Code.

Expected behavior
Starting dbus should be much faster. In the official Ubuntu WSL instance, it takes almost no time for it to start. Likewise, starting applications that use dbus should start and work. VS Code works fine in Ubuntu WSL and takes ~5 seconds to start on my machine. See microsoft/WSL#2293 for details about using VS Code in Ubuntu WSL.

Enviroment:

  • Windows build number: 10.0.17763.253
  • ArchWSL version: 19010200
  • Launcher version: 18122700

Additional context
Not sure what you need to help track down the issue, let me know if you need anything else.

@yuk7
Copy link
Owner

yuk7 commented Mar 21, 2019

I did the same, but I could not confirm the problem. . .

@AngellusMortis
Copy link
Author

Are you able to actually VS Code to launch?

I still get the same issues with dbus when I try to run it on the system level (as above with sudo dbus-daemon --system), but I did see #73 which allows me to launch dbus in the user space and it run instantly, but VS Code still has the same problem where it never launches.

@ssolidus
Copy link

I reproduced this as well, with these commands:

   $ sudo mkdir /run/dbus -p
   $ sudo dbus-daemon --system

@hemanta212
Copy link

hemanta212 commented May 1, 2019

I confirm. I have release 19.3.19.1. Tried with administrator command prompt.

       $ sudo mkdir /run/dbus -p
       $ sudo dbus-daemon --system

Took 1 minute after LXCORE.SYS failed.

@ssolidus
Copy link

Any update on this @yuk7? There are multiple repros in this thread, and currently this is preventing me from switching to ArchWSL.

@javashin
Copy link

Installed All from today and got same problem

@yuk7 yuk7 removed the need-repro label Oct 30, 2019
@koumaza
Copy link
Contributor

koumaza commented Jan 10, 2020

Replacing libdbus with dbus-x11 may solve this problem.

@yuk7
Copy link
Owner

yuk7 commented May 13, 2020

I think this issue was fixed in latest systemd-libs.

@yuk7 yuk7 closed this as completed May 13, 2020
@anandbhaskaran
Copy link

I got the same issue again

@koumaza
Copy link
Contributor

koumaza commented Sep 21, 2021

We can try to use dbus-x11aur.

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

No branches or pull requests

7 participants