elFarto / nvidia-vaapi-driver

A VA-API implemention using NVIDIA's NVDEC
Other
1.17k stars 53 forks source link

vaInitialize failed with error code 1 after hibernate #217

Closed yjdwbj closed 1 year ago

yjdwbj commented 1 year ago

Hi guys. I got a strange question that vaInitialize failed after the second time. But also run vdpauinfo is fine. Also reboot the system it's fine.

vainfo
libva info: VA-API version 1.17.0
libva info: User environment variable requested driver 'nvidia'
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_1_0
libva error: /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so init failed
libva info: va_openDriver() returns 1
vaInitialize failed with error code 1 (operation failed),exit
michael@debian:~$ vdpauinfo
display: :0   screen: 0
API version: 1
Information string: NVIDIA VDPAU Driver Shared Library  525.105.17  Tue Mar 28 22:17:10 UTC 2023

Video surface:

name   width height types
-------------------------------------------
420     8192  8192  NV12 YV12 
422     8192  8192  UYVY YUYV 
444     8192  8192  NV24 YV24 
420_16  8192  8192  P010 P016 
422_16  8192  8192  UYVY YUYV 
444_16  8192  8192  Y_U_V_444_16 

Decoder capabilities:

libva info: Found init function vaDriverInit_1_0 9154.014032264 [78158-78158] ../src/vabackend.c:1872 vaDriverInit_1_0 Initialising NVIDIA VA-API Driver: 0x55e1e1780f50 10 9154.014038035 [78158-78158] ../src/vabackend.c:1894 vaDriverInit_1_0 Now have 0 (0 max) instances 9154.014041612 [78158-78158] ../src/vabackend.c:1916 vaDriverInit_1_0 Selecting EGL backend 9154.018975415 [78158-78158] ../src/export-buf.c: 150 findGPUIndexFromFd Defaulting to CUDA GPU ID 0. Use NVD_GPU to select a specific CUDA GPU 9154.018982698 [78158-78158] ../src/export-buf.c: 163 findGPUIndexFromFd Looking for GPU index: 0 9154.020207555 [78158-78158] ../src/export-buf.c: 175 findGPUIndexFromFd Found 3 EGL devices 9154.021765387 [78158-78158] ../src/export-buf.c: 229 findGPUIndexFromFd No EGL_CUDA_DEVICE_NV support for EGLDevice 0 9154.021776538 [78158-78158] ../src/export-buf.c: 229 findGPUIndexFromFd No EGL_CUDA_DEVICE_NV support for EGLDevice 1 9154.021780255 [78158-78158] ../src/export-buf.c: 232 findGPUIndexFromFd No DRM device file for EGLDevice 2 9154.021782619 [78158-78158] ../src/export-buf.c: 235 findGPUIndexFromFd No match found, falling back to default device 9154.022897830 [78158-78158] ../src/export-buf.c: 289 egl_initExporter Driver supports 16-bit surfaces 9154.022908871 [78158-78158] ../src/vabackend.c:1948 __vaDriverInit_1_0 CUDA ERROR 'initialization error' (3)

  9154.022911606 [78158-78158] ../src/export-buf.c:  65      egl_releaseExporter Releasing exporter, 0 outstanding frames
  9154.022917698 [78158-78158] ../src/export-buf.c:  82      egl_releaseExporter Done releasing frames

libva error: /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so init failed libva info: va_openDriver() returns 1 vaInitialize failed with error code 1 (operation failed),exit

yjdwbj commented 1 year ago

it's my system problem.