Linux CUDA_ERROR_SYSTEM_NOT_READY with the latest NVIDIA 515.65.01 prop drivers. FFMPEG and OBS problem

Summary of the bug:
OS Debian “bullseye” 64 bit
nvidia-bug-report.log.gz (389.5 KB)

ffmpeg -y -hwaccel cuda -i input.mp4 output.mp4
ffmpeg version N-107843-g0446282320 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --enable-cuda --enable-cuvid --enable-nvenc --enable-nonfree --enable-libnpp --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64
  libavutil      57. 33.101 / 57. 33.101
  libavcodec     59. 42.102 / 59. 42.102
  libavformat    59. 30.100 / 59. 30.100
  libavdevice    59.  8.101 / 59.  8.101
  libavfilter     8. 46.103 /  8. 46.103
  libswscale      6.  8.103 /  6.  8.103
  libswresample   4.  8.100 /  4.  8.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    creation_time   : 2020-05-22T18:43:09.000000Z
  Duration: 00:00:12.57, start: 0.000000, bitrate: 993 kb/s
  Stream #0:0[0x1](eng): Video: h264 (Baseline) (avc1 / 0x31637661), yuv420p(tv, smpte170m/bt470bg/smpte170m, progressive), 512x640, 992 kb/s, 30 fps, 30 tbr, 90k tbn (default)
    Metadata:
      creation_time   : 2020-05-22T18:43:02.000000Z
      handler_name    : VideoHandle
      vendor_id       : [0][0][0][0]
[AVHWDeviceContext @ 0x562422d58d00] cu->cuInit(0) failed -> CUDA_ERROR_SYSTEM_NOT_READY: system not yet initialized
Device creation failed: -542398533.
No device available for decoder: device type cuda needed for codec h264.
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> mpeg4 (native))
Device setup failed for decoder on input stream #0:0 : Generic error in an external library

How to reproduce:

  1. Install the latest NVIDIA 515.65.01 drivers
  2. Compile the latest ffmpeg from git
  3. Try use cuda: ffmpeg -y -hwaccel cuda -i input.mp4 output.mp4

Mainboard with nvidia chipset
https://forums.developer.nvidia.com/t/envec-h264-encoding-does-not-work-with-gtx-1660ti-1660-super-with-ubuntu-linux-22-04/223440/7?u=generix
https://forums.developer.nvidia.com/t/gtx1070-doesnt-work-with-cuda-465-24-02-and-newer-when-it-is-in-motherboard-based-on-nvidia-chipset/205250?u=generix

Understand. Please fix it!

Just an idea:
does setting kernel parameter
nvidia.NVreg_NvLinkDisable=1
make it work?

No :(

Fix it in the next release?

I’m a user, not affiliated with nvidia in any kind.