Bug 437695

Summary: VAAPI Failure Plasma Wayland Session
Product: [Plasma] kwin Reporter: Heiko Gimbel <heiko.gimbel>
Component: wayland-genericAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED UPSTREAM    
Severity: normal CC: kde
Priority: NOR    
Version First Reported In: 5.22.0   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Heiko Gimbel 2021-05-26 08:54:30 UTC
SUMMARY

VAAPI is broken on KDE Plasma Wayland Session

STEPS TO REPRODUCE
1. Open a terminal
2. Type in vainfo


OBSERVED RESULT

Error Message:
heiko@Tuxedobook:~$ vainfo
wl_drm@6: error 0: authenticate failed
VA error: wayland: Wayland roundtrip error: Protocol error (errno 71)
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with invalid VADisplay, driver_name = (null)
vaInitialize failed with error code 3 (invalid VADisplay),exit



EXPECTED RESULT
Should show VAAPI information without errors like on X11 session

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2021-05-26 10:19:21 UTC
>wl_drm@6: error 0: authenticate failed
>VA error: wayland: Wayland roundtrip error: Protocol error (errno 71)

wl_drm is very low in the stack, can you confirm this works correctly in weston.
Comment 2 Bug Janitor Service 2021-06-10 04:33:34 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Heiko Gimbel 2021-06-12 11:06:37 UTC
I have tried the same on Kubuntu 21.04 (Plasma 5.22.0) today with an AMD GPU. MESA-VA Drivers are installed. vainfo works on X11. On Wayland i get the same result as on my Notebook with an Intel iGPU. Typing in vainfo into a terminal results in the following:

wl_drm@6: error 0: authenticate failed
VA error: wayland: Wayland roundtrip error: Protocol error (errno 71)
libva info: VA-API version 1.10.0
libva error: vaGetDriverNameByIndex() failed with invalid VADisplay, driver_name = (null)
vaInitialize failed with error code 3 (invalid VADisplay),exit
Comment 4 Heiko Gimbel 2021-06-12 11:11:06 UTC
It might also be important that KODI Mediacenter is not starting on Plasma Wayland because of this VAAPI problem. Starting KODI from the terminal results in the same error.
Comment 5 Heiko Gimbel 2021-06-12 11:34:36 UTC
I installed Weston and got the same error. So the problem seems not to be related to plasma-wayland. VAAPI seems actually broken on Wayland in general at least on Ubuntu.
Comment 6 David Edmundson 2021-06-12 12:42:02 UTC
>I installed Weston and got the same error. 

No signs currently point to kwin.