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

Microsoft Edge freezes when resizing window with GPU enabled #272

Open
joaomoreno opened this issue Jun 7, 2021 · 14 comments
Open

Microsoft Edge freezes when resizing window with GPU enabled #272

joaomoreno opened this issue Jun 7, 2021 · 14 comments
Labels
bug Something isn't working GPU

Comments

@joaomoreno
Copy link
Member

Environment

Windows build number: 10.0.21390.0
Your Distribution version: 20.04
Your WSLg version: Windows Subsystem for Linux WSLg Preview 1.0.22
mesa: 21.1.2~kisak1~f

Steps to reproduce

Make sure Edge has hardware acceleration:

image

Then:

  1. Open microsoft-edge
  2. Resize the window

🐛 The window contents get frozen forever. Edge continues running since moving the mouse around still makes the mouse cursor switch to the respective CSS rules, the view never rerenders again. No interesting output comes from the terminal.

  • This reproduces with any other Chromium-based apps: VS Code, Google Chrome
  • I've found a workaround: --disable-gpu

Here's how it looks:

recording (13)

Logs

/mnt/wslg/weston.log

Nothing interesting here...

[20:59:04.664] set_position_from_xwayland: XWM 940, 316; geometry 32, 32; view 908, 284
[20:59:04.737] Client: ClientGetAppidReq: pid:5369 appId:Microsoft-edge-dev

/mnt/wslg/versions.txt

$ cat 
WSLg ( x86_64 ): 1.0.22+Branch.main.Sha.d7102a7ff8a3bb04bbcd3483c3f7d7a7633686a1
Mariner: VERSION="1.0.20210224"
FreeRDP: 5f083fa0b97d433d6204985f6047886e29c1c61e
weston: 9e402088aa2cd9316851ea20b9befbcf3b9c9564
pulseaudio: 2f0f0b8c3872780f15e275fc12899f4564f01bd5
mesa:

glxinfo -B

name of display: :0
NVD3D10: CPU cyclestats are disabled on client virtualization
NVD3D10: CPU cyclestats are disabled on client virtualization
display: :0  screen: 0
direct rendering: Yes
Extended renderer info (GLX_MESA_query_renderer):
    Vendor: Microsoft Corporation (0xffffffff)
    Device: D3D12 (NVIDIA GeForce GTX 1050 Ti) (0xffffffff)
    Version: 21.1.2
    Accelerated: yes
    Video memory: 20361MB
    Unified memory: no
    Preferred profile: core (0x1)
    Max core profile version: 3.3
    Max compat profile version: 3.1
    Max GLES1 profile version: 1.1
    Max GLES[23] profile version: 3.0
OpenGL vendor string: Microsoft Corporation
OpenGL renderer string: D3D12 (NVIDIA GeForce GTX 1050 Ti)
OpenGL core profile version string: 3.3 (Core Profile) Mesa 21.1.2 - kisak-mesa PPA
OpenGL core profile shading language version string: 3.30
OpenGL core profile context flags: (none)
OpenGL core profile profile mask: core profile

OpenGL version string: 3.1 Mesa 21.1.2 - kisak-mesa PPA
OpenGL shading language version string: 1.40
OpenGL context flags: (none)

OpenGL ES profile version string: OpenGL ES 3.0 Mesa 21.1.2 - kisak-mesa PPA
OpenGL ES profile shading language version string: OpenGL ES GLSL ES 3.00

microsoft-edge

[7386:7420:0607/210351.107311:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7386:7544:0607/210351.181791:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7386:7544:0607/210351.181846:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7386:7544:0607/210351.181872:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7386:7544:0607/210351.181891:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7386:7544:0607/210351.181910:ERROR:bus.cc(393)] Failed to connect to the bus: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory
[7476:7476:0607/210352.374334:ERROR:sandbox_linux.cc(374)] InitializeSandbox() called with multiple threads in process gpu-process.
[7386:7386:0607/210352.564764:ERROR:CONSOLE(1)] "PSL: window.chrome.ntpSettingsPrivate.getPref does not have campaigns. [object Object] Mon Jun 07 2021 21:03:52 GMT+0200 (Central European Summer Time)", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/vendors.75f4411cef43db1eb41a.js (1)
[7386:7386:0607/210353.912187:ERROR:CONSOLE(1)] "Request has failed. [object Object] Mon Jun 07 2021 21:03:53 GMT+0200 (Central European Summer Time)", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/vendors.75f4411cef43db1eb41a.js (1)
[7386:7386:0607/210353.912347:ERROR:CONSOLE(1)] " [object Object] Mon Jun 07 2021 21:03:53 GMT+0200 (Central European Summer Time)", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/vendors.75f4411cef43db1eb41a.js (1)
[7386:7386:0607/210402.033331:ERROR:CONSOLE(1569)] "Mon Jun 07 2021 21:04:02 GMT+0200 (Central European Summer Time): 1623092642031 {"id":20155,"source":"SAMAdService.ts","severity":0,"pb":{"build":"20210604.540","appType":"edgeChromium","pcsVersion":"20210528.7_master","buildAlias":"latest","customMessage":"pageType: edgechrntp, status: 0, StatusText: "},"message":"Error calling SAMRTB Ajax"}", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/common.7c77a7611a32c8a0632a.js (1569)
[7386:7386:0607/210402.169025:ERROR:CONSOLE(1569)] "Mon Jun 07 2021 21:04:02 GMT+0200 (Central European Summer Time): 1623092642168 {"id":20155,"source":"SAMAdService.ts","severity":0,"pb":{"build":"20210604.540","appType":"edgeChromium","pcsVersion":"20210528.7_master","buildAlias":"latest","customMessage":"pageType: edgechrntp, status: 0, StatusText: "},"message":"Error calling SAMRTB Ajax"}", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/common.7c77a7611a32c8a0632a.js (1569)
[7386:7386:0607/210402.565638:ERROR:CONSOLE(1569)] "Mon Jun 07 2021 21:04:02 GMT+0200 (Central European Summer Time): 1623092642565 {"id":20155,"source":"SAMAdService.ts","severity":0,"pb":{"build":"20210604.540","appType":"edgeChromium","pcsVersion":"20210528.7_master","buildAlias":"latest","customMessage":"pageType: edgechrntp, status: 0, StatusText: "},"message":"Error calling SAMRTB Ajax"}", source: https://assets.msn.com/bundles/v1/edgeChromium/latest/common.7c77a7611a32c8a0632a.js (1569)

Expected behavior

I expected the app not to freeze at all.

Actual behavior

The app freezes when resizing the window.

@joaomoreno joaomoreno added the bug Something isn't working label Jun 7, 2021
@hideyukn88 hideyukn88 changed the title Microsoft Edge freezes when resizing window Microsoft Edge freezes when resizing window with GPU enabled Jun 7, 2021
@jenatali
Copy link
Member

jenatali commented Jun 7, 2021

I can reproduce this, but it's not 100% repro. Occasionally I can successfully resize using the window edges, and I have no problem using maximize/restore.

@hideyukn88
Copy link
Member

@joaomoreno, would you please check what GPU driver version does your system has in Windows side ? You can run dxdiag to check GPU driver version on Windows. Could it be recently released NVIDIA 470.76 ? thanks!

@joaomoreno
Copy link
Member Author

joaomoreno commented Jun 8, 2021

@jenatali For me it's pretty much 100%.


@hideyukn88 Yeah I'm on 470.76:

image

Here's dxdiag:

------------------
System Information
------------------
      Time of this report: 6/8/2021, 10:33:50
             Machine name: SPEEDY
               Machine Id: {2F0404CE-FF32-4D58-AC6F-634C0F954BCA}
         Operating System: Windows 10 Enterprise 64-bit (10.0, Build 21390) (21390.co_release.210521-1658)
                 Language: English (Regional Setting: English)
      System Manufacturer: ASUS
             System Model: System Product Name
                     BIOS: 1202 (type: UEFI)
                Processor: AMD Ryzen 7 3700X 8-Core Processor              (16 CPUs), ~3.6GHz
                   Memory: 32768MB RAM
      Available OS Memory: 32684MB RAM
                Page File: 17108MB used, 48343MB available
              Windows Dir: C:\WINDOWS
          DirectX Version: DirectX 12
      DX Setup Parameters: Not found
         User DPI Setting: 120 DPI (125 percent)
       System DPI Setting: 144 DPI (150 percent)
          DWM DPI Scaling: Disabled
                 Miracast: Available, no HDCP
Microsoft Graphics Hybrid: Not Supported
 DirectX Database Version: 1.2.2
           DxDiag Version: 10.00.21390.0001 64bit Unicode

------------
DxDiag Notes
------------
      Display Tab 1: No problems found.
        Sound Tab 1: No problems found.
        Sound Tab 2: No problems found.
          Input Tab: No problems found.

--------------------
DirectX Debug Levels
--------------------
Direct3D:    0/4 (retail)
DirectDraw:  0/4 (retail)
DirectInput: 0/5 (retail)
DirectMusic: 0/5 (retail)
DirectPlay:  0/9 (retail)
DirectSound: 0/5 (retail)
DirectShow:  0/6 (retail)

---------------
Display Devices
---------------
           Card name: NVIDIA GeForce GTX 1050 Ti
        Manufacturer: NVIDIA
           Chip type: NVIDIA GeForce GTX 1050 Ti
            DAC type: Integrated RAMDAC
         Device Type: Full Device (POST)
          Device Key: Enum\PCI\VEN_10DE&DEV_1C82&SUBSYS_862A1043&REV_A1
       Device Status: 0180200A [DN_DRIVER_LOADED|DN_STARTED|DN_DISABLEABLE|DN_NT_ENUMERATOR|DN_NT_DRIVER] 
 Device Problem Code: No Problem
 Driver Problem Code: Unknown
      Display Memory: 20361 MB
    Dedicated Memory: 4019 MB
       Shared Memory: 16342 MB
        Current Mode: 3840 x 2160 (32 bit) (60Hz)
         HDR Support: Supported
    Display Topology: Internal
 Display Color Space: DXGI_COLOR_SPACE_RGB_FULL_G22_NONE_P709
     Color Primaries: Red(0.679688,0.315430), Green(0.280273,0.673828), Blue(0.152344,0.049805), White Point(0.312500,0.329102)
   Display Luminance: Min Luminance = 315.214996, Max Luminance = 400.000000, MaxFullFrameLuminance = 0.393700
        Monitor Name: Generic PnP Monitor
       Monitor Model: LG HDR 4K
          Monitor Id: GSM7707
         Native Mode: 3840 x 2160(p) (59.997Hz)
         Output Type: Displayport External
Monitor Capabilities: HDR Supported (BT2020RGB BT2020YCC Eotf2084Supported )
Display Pixel Format: DISPLAYCONFIG_PIXELFORMAT_32BPP
      Advanced Color: AdvancedColorSupported 
         Driver Name: C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_aac5fcf0fda5401b\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_aac5fcf0fda5401b\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_aac5fcf0fda5401b\nvldumdx.dll,C:\WINDOWS\System32\DriverStore\FileRepository\nv_dispi.inf_amd64_aac5fcf0fda5401b\nvldumdx.dll
 Driver File Version: 30.00.0014.7076 (English)
      Driver Version: 30.0.14.7076
         DDI Version: 12
      Feature Levels: 12_1,12_0,11_1,11_0,10_1,10_0,9_3,9_2,9_1
        Driver Model: WDDM 3.0
 Hardware Scheduling: DriverSupportState:Stable Enabled:True 
 Graphics Preemption: Pixel
  Compute Preemption: Dispatch
            Miracast: Not Supported by Graphics driver
      Detachable GPU: No
 Hybrid Graphics GPU: Discrete
      Power P-states: Not Supported
      Virtualization: Paravirtualization 
          Block List: No Blocks
  Catalog Attributes: Universal:False Declarative:True 
   Driver Attributes: Final Retail
    Driver Date/Size: 27/05/2021 02:00:00, 1054840 bytes
         WHQL Logo'd: n/a
     WHQL Date Stamp: n/a
   Device Identifier: {D7B71E3E-5FC2-11CF-5768-24A60EC2D335}
           Vendor ID: 0x10DE
           Device ID: 0x1C82
           SubSys ID: 0x862A1043
         Revision ID: 0x00A1
  Driver Strong Name: oem23.inf:0f066de3900e3bc1:Section044:30.0.14.7076:pci\ven_10de&dev_1c82
      Rank Of Driver: 00CF2001
         Video Accel: 
         DXVA2 Modes: {86695F12-340E-4F04-9FD3-9253DD327460}  DXVA2_ModeMPEG2_VLD  {6F3EC719-3735-42CC-8063-65CC3CB36616}  DXVA2_ModeVC1_D2010  DXVA2_ModeVC1_VLD  {32FCFE3F-DE46-4A49-861B-AC71110649D5}  DXVA2_ModeH264_VLD_Stereo_Progressive_NoFGT  DXVA2_ModeH264_VLD_Stereo_NoFGT  DXVA2_ModeH264_VLD_NoFGT  DXVA2_ModeHEVC_VLD_Main  DXVA2_ModeHEVC_VLD_Main10  {20BB8B0A-97AA-4571-8E99-64E60606C1A6}  {15DF9B21-06C4-47F1-841E-A67C97D7F312}  DXVA2_ModeMPEG4pt2_VLD_Simple  DXVA2_ModeMPEG4pt2_VLD_AdvSimple_NoGMC  {9947EC6F-689B-11DC-A320-0019DBBC4184}  {33FCFE41-DE46-4A49-861B-AC71110649D5}  DXVA2_ModeVP9_VLD_Profile0  DXVA2_ModeVP9_VLD_10bit_Profile2  {DDA19DC7-93B5-49F5-A9B3-2BDA28A2CE6E}  {6AFFD11E-1D96-42B1-A215-93A31F09A53D}  {914C84A3-4078-4FA9-984C-E2F262CB5C9C}  
   Deinterlace Caps: {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive 
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YUY2,YUY2) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch 
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive 
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(UYVY,UYVY) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch 
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive 
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(YV12,0x32315659) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch 
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_PixelAdaptive 
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY 
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(NV12,0x3231564e) Frames(Prev/Fwd/Back)=(0,0,0) Caps=VideoProcess_YUV2RGB VideoProcess_StretchX VideoProcess_StretchY DeinterlaceTech_BOBVerticalStretch 
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(IMC1,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(IMC2,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(IMC3,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(IMC4,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(S340,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {6CB69578-7617-4637-91E5-1C02DB810285}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {F9F19DA5-3B09-4B2F-9D89-C64753E3EAAB}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {5A54A0C9-C7EC-4BD9-8EDE-F3C75DC4393B}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
                     {335AA36E-7884-43A4-9C91-7F87FAF3E37E}: Format(In/Out)=(S342,UNKNOWN) Frames(Prev/Fwd/Back)=(0,0,0) Caps=
        D3D9 Overlay: Supported
             DXVA-HD: Supported
        DDraw Status: Enabled
          D3D Status: Enabled
          AGP Status: Enabled
       MPO MaxPlanes: 1
            MPO Caps: Not Supported
         MPO Stretch: Not Supported
     MPO Media Hints: Not Supported
         MPO Formats: Not Supported
    PanelFitter Caps: Not Supported
 PanelFitter Stretch: Not Supported

@onomatopellan
Copy link
Contributor

What happens if you run Edge with gpu but using wayland instead of x11?
microsoft-edge --enable-features=UseOzonePlatform --ozone-platform=wayland

@jenatali
Copy link
Member

jenatali commented Jun 8, 2021

What happens if you run Edge with gpu but using wayland instead of x11?
microsoft-edge --enable-features=UseOzonePlatform --ozone-platform=wayland

That works perfectly fine for me.

@joaomoreno
Copy link
Member Author

That does work. But some other features don't work:

  • Can't scroll
  • Can't paste contents after closing the app

No flags

Canvas: Hardware accelerated
Compositing: Hardware accelerated
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Enabled
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated
WebGL2: Hardware accelerated

--disable-gpu

Canvas: Software only, hardware acceleration unavailable
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Disabled
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Software only, hardware acceleration unavailable
WebGL2: Software only, hardware acceleration unavailable

--enable-features=UseOzonePlatform --ozone-platform=wayland

Canvas: Hardware accelerated
Compositing: Software only. Hardware acceleration disabled
Multiple Raster Threads: Enabled
Out-of-process Rasterization: Disabled
OpenGL: Enabled
Rasterization: Software only. Hardware acceleration disabled
Skia Renderer: Enabled
Video Decode: Software only. Hardware acceleration disabled
Vulkan: Disabled
WebGL: Hardware accelerated but at reduced performance
WebGL2: Hardware accelerated but at reduced performance

@onomatopellan
Copy link
Contributor

Installed Nvidia new official drivers 471.11 but still has this resizing issue with X11 Edge+GPU.

Wayland Edge+GPU resizing works but scroll is indeed broken since Edge-dev version 92.0.902.

So the latest Edge-dev where window resizing works for me with GPU enabled and working scroll is version 92.0.891 with wayland.

sudo apt install microsoft-edge-dev=92.0.891.1-1
microsoft-edge-dev --enable-features=UseOzonePlatform --ozone-platform=wayland

@onomatopellan
Copy link
Contributor

This problem seems fixed for me. I updated everything and now I can resize x11 apps with GPU acceleration without problem.

Windows build number: 10.0.22000.194
Your Distribution version: 20.04
WSL2 kernel: 5.10.60.1-microsoft-standard-WSL2
Your WSLg version: Windows Subsystem for Linux WSLg Preview 1.0.28
mesa: Mesa 21.3.0-devel (git-0a592db 2021-10-05 focal-oibaf-ppa)

GPU: NVIDIA GeForce GT 710
Microsoft Edge 96.0.1032.0 dev

@joaomoreno
Copy link
Member Author

joaomoreno commented Oct 6, 2021

Same here, seems fixed on the following versions:

Windows 11 21H2 22000.194
NVIDIA Graphics Driver 471.68
Edge: Version 96.0.1032.0 (Official build) dev (64-bit)

@TTSKarlsson
Copy link

Windows 11 21H2 22000.194
Nvidia GameReady Driver 510.06

Problem persists when running the apps as explained https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps

But it is resolved after installing X11 (sudo apt install x11-apps -y), which is not an outspoken requirement.

@akuropka
Copy link

It works meanwhile at my end as well but I do not have x11-apps installed.

@TTSKarlsson
Copy link

Tried this on a wsl --install -d Debian dist and it doesn't suffer from this problem, while Ubuntu 20.04 LTS does.

@ianken
Copy link

ianken commented Oct 13, 2021

Seeing this with vscode as well. Ubuntu 20.04, NVIDIA 510.06 driver.

@hideyukn88 hideyukn88 added the GPU label Oct 18, 2021
@hideyukn88
Copy link
Member

Based on our investigation, this issue should be fixed by below commit in mesa. If anyone needs to be unblocked or simply just tryout, please apply below commit to whatever version of mesa you are currently using and let us know how do you see. Thanks!

https://gitlab.freedesktop.org/mesa/mesa/-/commit/7ff30a0499bd872d77b0f377414bbc03463b9f87

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working GPU
Projects
None yet
Development

No branches or pull requests

7 participants