Bug occurs with latest nvidia packages on ArchLinux:
nvidia-dkms 430.14-6
nvidia-utils 430.14-1
lib32-nvidia-utils 430.14-1
opencl-nvidia 430.14-1
When using NVENC to encode video with h264 codec using FFMPEG or OBS-Studio, the program crashes with segfault with latest mentioned packages installed. This bug does not occur after downgrading the mentioned packages to version 418.74-1 .
Note that though I use the “linux-hardened” kernel by default, I’ve tested this with the stock linux kernel too, and the situation is the same.
EDIT: Forgot to mention system specs, which may be quicker to parse some brief info:
stephen@ArchLighthouse
EDIT: I can confirm that ffmpeg can successfully process the test video when using the downgraded packages. backtrace_ffmpeg_nvenc_2019-06-01.txt (5.53 KB)
Just tested obs/ffmpeg again with NVENC with the latest NVIDIA drivers on ArchLinux, anything using NVENC still crashes with segmentation fault. Note I’m using an NVIDIA GeForce GTX 660Ti graphics card, maybe NVENC support for this card has been dropped?
I am also having the exact same problem. Completely up to date on Arch. Card is a GTX 770. Hitting the record or stream button with NVENC selected causes the program (OBS) to close immediately with no entry into the logs.
Choose NVENC in Recording, start recording and it segfaults.
Driver version: 430.26-14.1, from NVIDIA repos for Tumbleweed. Card: GeForce GTX 760
mandar_godse,
Try the AppImage above on any Linux distro with 430.* driver and 760-770 cards, you should be able to reproduce with at least some, judging by answers above.
UPD. sorry, I read that as “we are not able to reproduce”. Disregard.
I just built some ArchLinux NVIDIA packages after editing their PKGBUILDs, namely:
nvidia-dkms (and nvidia from same split ArchLinux package)
nvidia-utils (and opencl-nvidia from same split ArchLinux package)
lib32-nvidia-utils (and lib32-opencl-nvidia from same split ArchLinux package)
I mainly changed the pkgver’s to “435.17”, and pkgrel to “1”, and had to change a few more things in the nvidia-utils PKGBUILD to get it to work (“nvidia_icd.json.template” no longer exists, and the PKGBUILD tries to patch it with sed, and it also tries to install it in the install section of the PKGBUILD, so I replaced “nvidia_icd.json.template” with “nvidia_icd.json” for that install line).
After installing the updated packages with the new drivers, I tested encoding with nvenc and decoding with nvdec.
obs-studio does not crash anymore when encoding, and so does ffmpeg. mpv can successfully display video decoding with nvdec as well.
I think it’s safe to say the new drivers fix this issue.