Return Codes#
The NvCV_Status enumeration defines the following values that the NVIDIA AR SDK functions might return to indicate error or success:
- NVCV_SUCCESS = 0
- Success: The function executed successfully.
- NVCV_ERR_GENERAL
- Generic error: The function failed to execute for an unspecified reason.
- NVCV_ERR_UNIMPLEMENTED
- The requested feature is not implemented.
- NVCV_ERR_MEMORY
- Memory error: The requested operation requires more memory than is available.
- NVCV_ERR_EFFECT
- Invalid effect handle has been supplied.
- NVCV_ERR_SELECTOR
- The specified selector is not valid for this effect filter.
- NVCV_ERR_BUFFER
- No image buffer has been specified.
- NVCV_ERR_PARAMETER
- An invalid parameter value has been supplied for this combination of effect and selector string.
- NVCV_ERR_MISMATCH
- Some parameters, for example, image formats or image dimensions, are not correctly matched.
- NVCV_ERR_PIXELFORMAT
- The specified pixel format is not supported.
- NVCV_ERR_MODEL
- An error occurred while the TRT model was being loaded.
- NVCV_ERR_LIBRARY
- An error occurred while the dynamic library was being loaded.
- NVCV_ERR_INITIALIZATION
- The effect has not been properly initialized.
- NVCV_ERR_FILE
- The specified file could not be found.
- NVCV_ERR_FEATURENOTFOUND
- The requested feature was not found.
- NVCV_ERR_MISSINGINPUT
- A required parameter was not set.
- NVCV_ERR_RESOLUTION
- The specified image resolution is not supported.
- NVCV_ERR_UNSUPPORTEDGPU
- The GPU is not supported.
- NVCV_ERR_WRONGGPU
- The current GPU is not the one selected.
- NVCV_ERR_UNSUPPORTEDDRIVER
- The currently installed graphics driver is not supported.
- NVCV_ERR_MODELDEPENDENCIES
- There is no model with dependencies that match this system.
- NVCV_ERR_PARSE
- There has been a parsing or syntax error while reading a file.
- NVCV_ERR_MODELSUBSTITUTION
- The specified model does not exist and has been substituted.
- NVCV_ERR_READ
- An error occurred while reading a file.
- NVCV_ERR_WRITE
- An error occurred while writing a file.
- NVCV_ERR_PARAMREADONLY
- The selected parameter is read-only.
- NVCV_ERR_TRT_ENQUEUE
- TensorRT enqueue failed.
- NVCV_ERR_TRT_BINDINGS
- Unexpected TensorRT bindings.
- NVCV_ERR_TRT_CONTEXT
- An error occurred while creating a TensorRT context.
- NVCV_ERR_TRT_INFER
- There was a problem creating the inference engine.
- NVCV_ERR_TRT_ENGINE
- There was a problem deserializing the inference runtime engine.
- NVCV_ERR_NPP
- An error has occurred in the NPP library.
- NVCV_ERR_CONFIG
- No suitable model exists for the specified parameter configuration.
- NVCV_ERR_TOOSMALL
- The supplied parameter or buffer is not large enough.
- NVCV_ERR_TOOBIG
- The supplied parameter is too big.
- NVCV_ERR_WRONGSIZE
- The supplied parameter is not the expected size.
- NVCV_ERR_OBJECTNOTFOUND
- The specified object was not found.
- NVCV_ERR_SINGULAR
- A mathematical singularity has been encountered.
- NVCV_ERR_NOTHINGRENDERED
- Nothing was rendered in the specified region.
- NVCV_ERR_OPENGL
- An OpenGL error has occurred.
- NVCV_ERR_DIRECT3D
- A Direct3D error has occurred.
- NVCV_ERR_CUDA_MEMORY
- The requested operation requires more CUDA memory than is available.
- NVCV_ERR_CUDA_VALUE
- A CUDA parameter is not within its acceptable range.
- NVCV_ERR_CUDA_PITCH
- A CUDA pitch is not within its acceptable range.
- NVCV_ERR_CUDA_INIT
- The CUDA driver and runtime could not be initialized.
- NVCV_ERR_CUDA_LAUNCH
- The CUDA kernel failed to launch.
- NVCV_ERR_CUDA_KERNEL
- No suitable kernel image is available for the device.
- NVCV_ERR_CUDA_DRIVER
- The installed NVIDIA CUDA driver is older than the CUDA runtime library.
- NVCV_ERR_CUDA_UNSUPPORTED
- The CUDA operation is not supported on the current system or device.
- NVCV_ERR_CUDA_ILLEGAL_ADDRESS
- CUDA attempted to load or store an invalid memory address.
- NVCV_ERR_CUDA
- An unspecified CUDA error has occurred.
Note
Many other CUDA-related errors exist that are not listed here. However, you can use the function NvCV_GetErrorStringFromCode() to convert the error code into a string to help you debug.