NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k stars 233 forks source link

CUDA error: CUDA_ERROR_NO_DEVICE #432

Closed SubMarineas closed 1 year ago

SubMarineas commented 1 year ago

Describe the bug

CUDA error: CUDA_ERROR_NO_DEVICE. no CUDA-capable device is detected

When decoding, the error is cuda error. The detailed log is:

(base) '/xxx/program/VideoProcessingFramework# python3 sample.py
0 ............gpu_id
/tmp/pip-req-build-pmp9vnfi/src/TC/src/NvDecoder.cpp:215
CUDA error: CUDA_ERROR_NO_DEVICE
no CUDA-capable device is detected

Decoder not initialized.Cuvid parser faced error.
Cuvid parser exception happened.
Exception in thread Thread-1:
0 ............gpu_id
Traceback (most recent call last):
  File "/root/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/root/anaconda3/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "ceshi3.py", line 209, in run
    src_surface = nvDec.DecodeSingleSurface()
PyNvCodec._PyNvCodec.CuvidParserException: HW reset
/tmp/pip-req-build-pmp9vnfi/src/TC/src/NvDecoder.cpp:215
CUDA error: CUDA_ERROR_NO_DEVICE
no CUDA-capable device is detected

Decoder not initialized.Cuvid parser faced error.
Cuvid parser exception happened.
Exception in thread Thread-2:
Traceback (most recent call last):
  File "/root/anaconda3/lib/python3.8/threading.py", line 932, in _bootstrap_inner
    self.run()
  File "/root/anaconda3/lib/python3.8/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "ceshi3.py", line 209, in run
    src_surface = nvDec.DecodeSingleSurface()
PyNvCodec._PyNvCodec.CuvidParserException: HW reset