NVJPEG library return code: 6

I’m using nvjpeg library to decode jpeg-encoded buffer. nvjpegDecode() returns error code 6 ( Error during the execution of the device tasks ). How can I debug this error, please?

Run your entire application through the cuda-memcheck tool

it will report all errors on CUDA API calls as well as most memory access problems that lead to kernels crashing.