NVENC breaks after suspend using an NVIDIA GPU

cinatit

New Member
When I first installed OBS it worked perfectly, until I suspend my computer, then it stopped working. After a reboot it came back to work, and stopped again after another suspension.

That's a constant behavior: it stops working after every suspension, only works again after a reboot.

How to fix this error? Is it related to NVIDIA drivers?

OBS version: 29.1.3
OS: 22.04.2
GPU: GTX 970
GPU driver: nvidia-driver-535 (proprietary, tested)
CPU: Ryzen 5 1600 AF

The following log is generated when running OBS from the terminal:
Code:
info: [FFmpeg NVENC encoder: 'simple_video_recording'] settings:
    encoder:      NVIDIA NVENC HEVC (FFmpeg)
    rate_control: CQP
    bitrate:      0
    cqp:          21
    keyint:       250
    preset:       p5
    tuning:       hq
    multipass:    qres
    profile:      main
    width:        1280
    height:       720
    b-frames:     2
    psycho-aq:    1
    GPU:          0

[hevc_nvenc @ 0x563b2fd72e40] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
warning: [NVENC encoder] nvenc_create_internal failed, trying again without Psycho Visual Tuning
info: ---------------------------------
info: [FFmpeg NVENC encoder: 'simple_video_recording'] settings:
    encoder:      NVIDIA NVENC HEVC (FFmpeg)
    rate_control: CQP
    bitrate:      0
    cqp:          21
    keyint:       250
    preset:       p5
    tuning:       hq
    multipass:    qres
    profile:      main
    width:        1280
    height:       720
    b-frames:     2
    psycho-aq:    0
    GPU:          0

[hevc_nvenc @ 0x563b2fd7f480] dl_fn->cuda_dl->cuInit(0) failed -> CUDA_ERROR_UNKNOWN: unknown error
 

Attachments

  • log-obs.txt
    6.8 KB · Views: 13

juliokarl

New Member
as a solution so you don't have to reboot, you can unload and load again the nvidia_uvm module:
as root:
rmmod nvidia_uvm
modprobe nvidia_uvm
But there has to be a better fix
 
Top