Bug 1227129 - libva/cvirtio_gpu_drv_video.so: Chromium GPU errors on kvm/virtio
Summary: libva/cvirtio_gpu_drv_video.so: Chromium GPU errors on kvm/virtio
Status: IN_PROGRESS
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: X.Org (show other bugs)
Version: Slowroll
Hardware: x86-64 openSUSE Tumbleweed
: P3 - Medium : Normal (vote)
Target Milestone: ---
Assignee: Gfx Bugs
QA Contact: Gfx Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-27 11:38 UTC by L
Modified: 2024-07-18 12:44 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---
sndirsch: needinfo? (elatllat)


Attachments
eglinfo (7.39 KB, application/zip)
2024-07-09 19:37 UTC, L
Details
eglinfo.txt (133.26 KB, text/plain)
2024-07-09 19:59 UTC, Stefan Dirsch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description L 2024-06-27 11:38:40 UTC
Fresh Tumbleweed GNOME install in KVM.

Chromium hangs before any GUI shows up.

# chromium
libva error: /usr/lib64/dri/virtio_gpu_drv_video.so init failed [28135:28135:0626/115134.122807:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization

# /usr/bin/chromium  --enable-features=UseOzonePlatform  --ozone-platform=wayland --force-dark-mode  --enable-features=WebUIDarkMode
libEGL warning: egl: failed to create dri2 screen libEGL warning: egl: failed to create dri2 screen libEGL warning: NEEDS EXTENSION: falling back to kms\_swrast libva error: /usr/lib64/dri/virtio\_gpu\_drv\_video.so init failed \[28226:28226:0626/115232.941494:ERROR:viz\_main\_impl.cc(166)\] Exiting GPU process due to errors during initialization
Comment 1 Callum Farmer 2024-06-27 11:56:27 UTC
Re-assign to libva maintainer
Chromium looks fine here
Comment 2 Stefan Dirsch 2024-07-09 12:00:11 UTC
I'm wondering if less demanding apps like eglinfo are working on Wayland. Package to install is Mesa-demo-egl.
Comment 3 L 2024-07-09 17:29:12 UTC
Can't reproduce now.


/usr/bin/chromium  --enable-features=UseOzonePlatform  --ozone-platform=wayland --force-dark-mode  --enable-features=WebUIDarkMode
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
libva error: /usr/lib64/dri/virtio_gpu_drv_video.so init failed
[28717:28717:0709/132034.681158:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization
[28672:28672:0709/132034.950985:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.ScreenSaver.GetActive: object_path= /org/freedesktop/ScreenSaver: org.freedesktop.DBus.Error.NotSupported: This method is not part of the idle inhibition specification: https://specifications.freedesktop.org/idle-inhibit-spec/latest/
libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
libva error: /usr/lib64/dri/virtio_gpu_drv_video.so init failed
[28820:28820:0709/132035.004726:ERROR:viz_main_impl.cc(166)] Exiting GPU process due to errors during initialization
libva error: /usr/lib64/dri/virtio_gpu_drv_video.so init failed
[28757:8:0709/132035.062300:ERROR:command_buffer_proxy_impl.cc(131)] ContextResult::kTransientFailure: Failed to send GpuControl.CreateCommandBuffer.
Comment 4 Stefan Dirsch 2024-07-09 18:07:58 UTC
Well, this doesn't answer my question of comment#2
Comment 5 Stefan Dirsch 2024-07-09 18:08:18 UTC
Well, this doesn't answer my question of comment#2
Comment 6 L 2024-07-09 18:21:45 UTC
(In reply to Stefan Dirsch from comment #2)
> I'm wondering if less demanding apps like eglinfo are working on Wayland.
> Package to install is Mesa-demo-egl.

Mesa-demo-egl is a package and I'm not sure which bin from it you want tested however eglgears_x11 works using xWayland (not directly from Wayland).
Comment 7 Stefan Dirsch 2024-07-09 18:33:32 UTC
No, I've meant 'eglinfo'.
Comment 8 L 2024-07-09 19:37:15 UTC
Created attachment 875972 [details]
eglinfo
Comment 9 Stefan Dirsch 2024-07-09 19:59:28 UTC
Created attachment 875973 [details]
eglinfo.txt
Comment 10 Stefan Dirsch 2024-07-09 20:04:52 UTC
Thanks. Many errors:

[...]
MESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
EGL client extensions string:
[...]
GBM platform:
eglinfo: eglInitialize failed
[...]
0x0c 30  0 10 10 10  0 16  0  0 0 0x00--         y  y  y     win
0x0dMESA: error: ZINK: vkCreateInstance failed (VK_ERROR_INCOMPATIBLE_DRIVER)
libEGL warning: egl: failed to create dri2 screen
 30  0 10 10 10  0 24  0  0 0 0x00--         y  y  y     win
[...]
0x29 32  0  8  8  8  8  0  0  0 0 0x56TC      a  y  y  y     win,pb,pix
0x2a 32  0  8  8  8  8 16  0  0 0 0x56TC      a  y  y  y     libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
win,pb,pix
0x2b 32  0  8  8  8  8 24  0  0 0 0x56TC      a  y  y  y     win,pb,pix
[...]
0x0a 32  0 10 10 10  2 32  0  4 1 0x00--      a  y  y  y     pb
0x0b 30  0 10 10 10  0  0  0  0 0 0x00--      y  y  y  y libEGL warning: egl: failed to create dri2 screen
libEGL warning: egl: failed to create dri2 screen
libEGL warning: NEEDS EXTENSION: falling back to kms_swrast
    pb
0x0c 30  0 10 10 10  0 16  0  0 0 0x00--      y  y  y  y     pb
Comment 11 Stefan Dirsch 2024-07-09 20:18:37 UTC
Maybe the /usr/lib64/dri/virtio_gpu_drv_video.so libva/VA-API driver is just broken and we should disable the build. You could try to rename it temporarily to test if then chromium starts falling back to software rendering hopefully.

/usr/lib64/dri/virtio_gpu_dri.so seems also to be problematic. You could try to workaround the issue by using 

  dri_driver=kms_swrast chromium ...

  dri_driver=kms_swrast eglinfo
Comment 12 Stefan Dirsch 2024-07-18 12:44:30 UTC
(In reply to Stefan Dirsch from comment #11)
> Maybe the /usr/lib64/dri/virtio_gpu_drv_video.so libva/VA-API driver is just
> broken and we should disable the build. You could try to rename it
> temporarily to test if then chromium starts falling back to software
> rendering hopefully.
> 
> /usr/lib64/dri/virtio_gpu_dri.so seems also to be problematic. You could try
> to workaround the issue by using 
> 
>   dri_driver=kms_swrast chromium ...
> 
>   dri_driver=kms_swrast eglinfo

@L Any update you can provide about that?