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

cannot open display: :0 #62

Closed
hakiri opened this issue Apr 23, 2021 · 5 comments
Closed

cannot open display: :0 #62

hakiri opened this issue Apr 23, 2021 · 5 comments
Labels
bug Something isn't working

Comments

@hakiri
Copy link

hakiri commented Apr 23, 2021

Environment

**Windows build number:** Microsoft Windows [version 10.0.21364.1] 

Platform ServicePack Version      VersionString
-------- ----------- -------      -------------
 Win32NT             10.0.21364.0 Microsoft Windows NT 10.0.21364.0

**Your Distribution version:** 
Distributor ID: Ubuntu
Description:    Ubuntu 20.04.2 LTS
Release:        20.04
Codename:       focal

**Your WSLg version:** 1.0.17

WSLg ( x86_64 ): 1.0.17+3.Branch.master.Sha.a526dfd5ad03d126bb2d8c528f6c3563e86a40da
Mariner: VERSION="1.0.20210224"
FreeRDP: e4a2fc2053bd8c5f99455fcd08ffee7e5591567a
weston: fd961f5cd116c9358d82ce94d139c1578e21bd00
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:

Steps to reproduce

WSL logs:

  • Attach WSLg logs from /mnt/wslg

You can access the wslg logs using explorer at: \\wsl\<Distro-Name>\mnt\wslg (eg: \\wsl\Ubuntu-20.04\mnt\wslg)

  • puseaudio.log
  • weston.log
  • versions.txt

Expected behavior

Actual behavior

Unable to init server: Could not connect: Connection refused

(gedit:496): Gtk-WARNING **: 12:09:11.931: cannot open display: :0

@hakiri hakiri added the bug Something isn't working label Apr 23, 2021
@mrconnerton
Copy link

My issue when got this was #19 (comment)

@spronovo
Copy link
Collaborator

@hakiri could you also share your /mnt/wslg/weston.log

@hakiri
Copy link
Author

hakiri commented Apr 23, 2021

My issue is resolved by uninstalling and reinstalling Ubuntu 20.04

@spronovo
Copy link
Collaborator

Thanks @hakiri, i'll resolve this issue for now. If you hit problem with X applications having trouble connecting to WSLg's X server, please take a peek at this wiki page for diagnostic.

https://github.com/microsoft/wslg/wiki/Diagnosing-%22cannot-open-display%22-type-issues

spronovo pushed a commit that referenced this issue Apr 26, 2021
Fix issue introduced by ProcessMonitor refactoring.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants