Public bug reported:

After installing the candidate/vaapi channel, I still do not get
hardware acceleration for video decoding from my NVIDIA gpu, see:

```
$ LIBVA_MESSAGING_LEVEL=2 snap run chromium
Gtk-Message: 09:07:37.215: Failed to load module "canberra-gtk-module"
Gtk-Message: 09:07:37.216: Failed to load module "canberra-gtk-module"
libva info: VA-API version 1.7.0
libva info: Trying to open 
/snap/chromium/1191/usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: va_openDriver() returns -1
[141337:141337:0710/090737.297551:ERROR:vaapi_wrapper.cc(480)] vaInitialize 
failed: unknown libva error
```

For me, I am on Focal, so I had to manually install the vdpau-va-driver
from cosmic from https://launchpad.net/ubuntu/+source/vdpau-
video/0.7.4-7, (presumably on i.e. 18.04 I could just have installed it
with apt install), which provides the various files in
/var/lib/snapd/gl/vdpau, and then I also had to add that package along
with libvdpau1 into the chromium snap, at which point it loads the
libraries but I then run into very relevant errors:


```
libva info: VA-API version 1.7.0
libva info: Trying to open 
/snap/chromium/x3/usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
[121136:121136:0710/082840.674481:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674608:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG2Simple and 
entrypoint 1
[121136:121136:0710/082840.674647:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674680:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG2Main and entrypoint 1
[121136:121136:0710/082840.674709:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674739:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG4Simple and 
entrypoint 1
[121136:121136:0710/082840.674791:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674817:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG4AdvancedSimple and 
entrypoint 1
[121136:121136:0710/082840.674844:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674870:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264Baseline and 
entrypoint 1
[121136:121136:0710/082840.674896:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674920:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264Main and entrypoint 1
[121136:121136:0710/082840.674946:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.674971:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264High and entrypoint 1
[121136:121136:0710/082840.674996:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.675020:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Simple and entrypoint 1
[121136:121136:0710/082840.675046:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.675073:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Main and entrypoint 1
[121136:121136:0710/082840.675097:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
[121136:121136:0710/082840.675122:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Advanced and 
entrypoint 1

```

at which point I am stuck trying to get it to work.

FWIW, this is with ubuntu 20.04, snapd 2.45.1, nvidia drivers 440, and
X11 with gdm.

** Affects: chromium-browser (Ubuntu)
     Importance: Medium
     Assignee: Olivier Tilloy (osomon)
         Status: Triaged


** Tags: snap

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1887172

Title:
  [snap] VA-API does not work with nvidia proprietary drivers

Status in chromium-browser package in Ubuntu:
  Triaged

Bug description:
  After installing the candidate/vaapi channel, I still do not get
  hardware acceleration for video decoding from my NVIDIA gpu, see:

  ```
  $ LIBVA_MESSAGING_LEVEL=2 snap run chromium
  Gtk-Message: 09:07:37.215: Failed to load module "canberra-gtk-module"
  Gtk-Message: 09:07:37.216: Failed to load module "canberra-gtk-module"
  libva info: VA-API version 1.7.0
  libva info: Trying to open 
/snap/chromium/1191/usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
  libva info: va_openDriver() returns -1
  [141337:141337:0710/090737.297551:ERROR:vaapi_wrapper.cc(480)] vaInitialize 
failed: unknown libva error
  ```

  For me, I am on Focal, so I had to manually install the vdpau-va-
  driver from cosmic from https://launchpad.net/ubuntu/+source/vdpau-
  video/0.7.4-7, (presumably on i.e. 18.04 I could just have installed
  it with apt install), which provides the various files in
  /var/lib/snapd/gl/vdpau, and then I also had to add that package along
  with libvdpau1 into the chromium snap, at which point it loads the
  libraries but I then run into very relevant errors:

  
  ```
  libva info: VA-API version 1.7.0
  libva info: Trying to open 
/snap/chromium/x3/usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
  libva info: Found init function __vaDriverInit_1_1
  libva info: va_openDriver() returns 0
  [121136:121136:0710/082840.674481:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674608:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG2Simple and 
entrypoint 1
  [121136:121136:0710/082840.674647:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674680:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG2Main and entrypoint 1
  [121136:121136:0710/082840.674709:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674739:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG4Simple and 
entrypoint 1
  [121136:121136:0710/082840.674791:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674817:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileMPEG4AdvancedSimple and 
entrypoint 1
  [121136:121136:0710/082840.674844:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674870:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264Baseline and 
entrypoint 1
  [121136:121136:0710/082840.674896:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674920:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264Main and entrypoint 1
  [121136:121136:0710/082840.674946:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.674971:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileH264High and entrypoint 1
  [121136:121136:0710/082840.674996:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.675020:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Simple and entrypoint 1
  [121136:121136:0710/082840.675046:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.675073:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Main and entrypoint 1
  [121136:121136:0710/082840.675097:ERROR:vaapi_wrapper.cc(900)] 
vaQuerySurfaceAttributes failed, VA error: invalid parameter
  [121136:121136:0710/082840.675122:ERROR:vaapi_wrapper.cc(789)] 
FillProfileInfo_Locked failed for va_profile VAProfileVC1Advanced and 
entrypoint 1

  ```

  at which point I am stuck trying to get it to work.

  FWIW, this is with ubuntu 20.04, snapd 2.45.1, nvidia drivers 440, and
  X11 with gdm.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/chromium-browser/+bug/1887172/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to