lundi 30 mars 2020

Met "CUDA_ERROR_MISALIGNED_ADDRESS" error when using NvDecoder decoding video

When I use nvdecoder to decode one video, sometimes met error

"HandlePictureDisplay : cuvidMapVideoFrame(m_hDecoder, pDispInfo->picture_index, &dpSrcFrame, &nSrcPitch, &videoProcessingParameters) returned error 716 at NvCodec/NvDecoder/NvDecoder.cc:450". (CUDA_ERROR_MISALIGNED_ADDRESS)

After this error occur, then every video I want to decode will trigger error

"HandleVideoSequence : cuvidGetDecoderCaps(&decodecaps) returned error 101 at NvCodec/NvDecoder/NvDecoder.cc:155"(CUDA_ERROR_INVALID_DEVICE)

But If I restart the service and decode same video again, the error would not appear again.

Code is cloned from https://github.com/NVIDIA/video-sdk-samples/tree/master/Samples/NvCodec/NvDecoder.

What is this problem and how can I fix it? Thank you in advance.

Aucun commentaire:

Enregistrer un commentaire