microsoft / wslg

Enabling the Windows Subsystem for Linux to include support for Wayland and X server related scenarios
MIT License
9.9k stars 296 forks source link

firefox and google-chrome strange behaviour #1203

Open snowgato opened 4 months ago

snowgato commented 4 months ago

Windows Version

Microsoft Windows [Version 10.0.22631.3155]

WSL Version

2.1.1.0

Are you using WSL 1 or WSL 2?

Kernel Version

5.15.133.1-microsoft-standard-WSL2-163368-gfb467c712f32

Distro Version

Ubuntu 22.04

Other Software

google-chrome Google Chrome 121.0.6167.160 installed using : wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo apt -y install ./google-chrome-stable_current_amd64.deb

firefox installed doing apt-get install firefox Mozilla Firefox 122.0.1

Repro Steps

Since upgrading to 2.1.1.0 no more glitches, that's cool Now I can use intellij idea community without any issue. That's not the case with browsers. Firefox can't be used anymore as soon as I launch idea, it doesn't respond. When idea is not launched, I can't neither get settings menu work ( access to settings menu appears after clicking on the 3 small horizontal lines icon on the right of menu ), when I click on settings menu , nothing happens.

google-chrome window doesn't appear when I launch it, even if no other wsl2 GUI window is launched. Strnagely though, when google-chrome is launched, I only see a reduced view of chrome window when I use Alt-Tab to switch between opened windows , but if I release Alt when focus is on google-chrome window it doesn't appear in full screen, it just vanishes

Expected Behavior

firefox should stay responsive, even if idea is launched It should be possible to get settings menu work google-chrome window should showup when launched

Actual Behavior

in the terminal window from where firefox is started, gets output the following message ( repeated several times ) : Gdk-Message: 15:53:37.104: Unable to load hand2 from the cursor theme

Here is a partial view of error messages in terminal window where google-chrome got started: [16864:16890:0216/154929.239653:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.239726:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.239739:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.239749:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.251359:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.251465:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16889:0216/154929.273086:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.284578:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16890:0216/154929.284672:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16904:16904:0216/154929.303387:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16904:16904:0216/154929.303622:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16904:16904:0216/154929.303750:ERROR:gl_display.cc(791)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [16904:16904:0216/154929.305065:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16904:16904:0216/154929.305155:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16904:16904:0216/154929.305351:ERROR:gl_display.cc(791)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [16904:16904:0216/154929.305451:ERROR:gl_display.cc(825)] Initialization of all EGL display types failed. [16904:16904:0216/154929.305564:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [16904:16904:0216/154929.331446:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16904:16904:0216/154929.331664:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16904:16904:0216/154929.331885:ERROR:gl_display.cc(791)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [16904:16904:0216/154929.333520:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16904:16904:0216/154929.333637:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16904:16904:0216/154929.333823:ERROR:gl_display.cc(791)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [16904:16904:0216/154929.333879:ERROR:gl_display.cc(825)] Initialization of all EGL display types failed. [16904:16904:0216/154929.333970:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [16904:16904:0216/154929.335592:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization [16864:16864:0216/154929.376791:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: [16864:16889:0216/154929.376950:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16864:0216/154929.390151:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: [16864:16897:0216/154929.390449:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16864:0216/154929.402261:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: [16864:16888:0216/154929.402427:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16864:0216/154929.408183:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: [16864:16897:0216/154929.408372:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory [16864:16864:0216/154929.409944:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: [16968:16968:0216/154929.459003:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16968:16968:0216/154929.459256:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16968:16968:0216/154929.459524:ERROR:gl_display.cc(791)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [16968:16968:0216/154929.460929:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16968:16968:0216/154929.461059:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16968:16968:0216/154929.461118:ERROR:gl_display.cc(791)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [16968:16968:0216/154929.461259:ERROR:gl_display.cc(825)] Initialization of all EGL display types failed. [16968:16968:0216/154929.461547:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [16968:16968:0216/154929.489324:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [16968:16968:0216/154929.489620:ERROR:gl_display.cc(520)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [16968:16968:0216/154929.489741:ERROR:gl_display.cc(791)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [16968:16968:0216/154929.491263:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. Thanks for your help !

Diagnostic Logs

No response

zitons commented 4 months ago

I got the same error, same with edge

[10540:10540:0221/172848.073180:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
[10540:10563:0221/172848.073442:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory
[10540:10540:0221/172848.078315:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
[10540:10563:0221/172848.078515:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory
[10540:10540:0221/172848.081565:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
[10540:10563:0221/172848.081742:ERROR:bus.cc(407)] Failed to connect to the bus: Failed to connect to socket /run/user/1000/bus: No such file or directory
[10540:10540:0221/172848.082213:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type:
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
[10580:10599:0221/172852.600155:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100
[10580:10599:0221/172857.146715:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100
[10580:10599:0221/173034.046170:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100
[10580:10599:0221/173034.174454:ERROR:ssl_client_socket_impl.cc(970)] handshake failed; returned -1, SSL error code 1, net_error -100
zitons commented 4 months ago

I solved it, I was missing something

sudo mkdir -p /run/user/1000
sudo chmod 700 /run/user/1000
sudo chown $(whoami): /run/user/1000

Then run google-chrome

TheNavyBear commented 4 months ago

@snowgato can you try 'sudo apt install dbus-x11' and tell me if that resolves your issues?

snowgato commented 4 months ago

@TheNavyBear Hi, it was already installed. Still the same issues : firefox error messages: [GFX1-]: ManageChildProcess(glxtest): poll failed: Success

[GFX1-]: glxtest: ManageChildProcess failed

[GFX1-]: No GPUs detected via PCI

Gdk-Message: 09:43:46.970: Unable to load hand2 from the cursor theme Gdk-Message: 09:43:57.752: Unable to load hand2 from the cursor theme Gdk-Message: 09:44:10.299: Unable to load hand2 from the cursor theme Gdk-Message: 09:44:58.803: Unable to load hand2 from the cursor theme

with firefox not able to get the focus back when I launch Intellij Idea, which works fine. When I click on some firefox menu, the event is caught by the underlying intellij idea window that is in the background of firefox, just as if firefox window was not there.

google chrome , once launched, never appears except as a thumbnail when I rotate GUI focus using Alt-tab with the following error message :

[4714:4744:0229/094143.176498:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.StartServiceByName: object_path= /org/freedesktop/DBus: org.freedesktop.DBus.Error.NoReply: Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken. [4761:4761:0229/094144.419537:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4761:4761:0229/094144.424294:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4761:4761:0229/094144.424976:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [4761:4761:0229/094144.431934:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4761:4761:0229/094144.443271:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4761:4761:0229/094144.443958:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [4761:4761:0229/094144.444509:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed. [4761:4761:0229/094144.444988:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [4761:4761:0229/094144.913072:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4761:4761:0229/094144.914727:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4761:4761:0229/094144.915651:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [4761:4761:0229/094144.945446:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4761:4761:0229/094144.946319:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4761:4761:0229/094144.947156:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [4761:4761:0229/094144.947984:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed. [4761:4761:0229/094144.948772:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [4761:4761:0229/094145.004676:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization [4900:4900:0229/094149.030862:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4900:4900:0229/094149.031632:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4900:4900:0229/094149.032086:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [4900:4900:0229/094149.051475:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4900:4900:0229/094149.052082:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4900:4900:0229/094149.052461:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [4900:4900:0229/094149.053498:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed. [4900:4900:0229/094149.054048:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [4900:4900:0229/094149.360378:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4900:4900:0229/094149.361572:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4900:4900:0229/094149.362976:ERROR:gl_display.cc(786)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type [4900:4900:0229/094149.379030:ERROR:angle_platform_impl.cc(44)] Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context. [4900:4900:0229/094149.380163:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context. [4900:4900:0229/094149.381171:ERROR:gl_display.cc(786)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED [4900:4900:0229/094149.382041:ERROR:gl_display.cc(820)] Initialization of all EGL display types failed. [4900:4900:0229/094149.382953:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed. [4900:4900:0229/094149.409630:ERROR:viz_main_impl.cc(196)] Exiting GPU process due to errors during initialization INFO: Created TensorFlow Lite XNNPACK delegate for CPU. [4833:7:0229/094151.437586:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.

Thanks for your help !

snowgato commented 4 months ago

I forgot to add that following some advice , I have added in my ~/.bashrc file the following command: $(dbus-launch)

universam1 commented 2 months ago

Same problem here, Firefox is unusable when Settings or Add-Ons dialogs are not accessible. A total show stopper for WSL for us. Any workaround possible?

druzhinin-kirill commented 2 months ago

Was able to resolve this issue by updating the driver for vGPU

ERR: Display.cpp:1052 (initialize): ANGLE Display::initialize error 12289: Could not create a backing OpenGL context.
[4900:4900:0229/094149.380163:ERROR:gl_display.cc(515)] EGL Driver message (Critical) eglInitialize: Could not create a backing OpenGL context.

https://learn.microsoft.com/en-us/windows/wsl/tutorials/gui-apps#prerequisites