cuGraphicsEGLRegisterImage failed : 3

Hi all ,
I have tested with

gst-launch-1.0 -v --gst-debug-level=1 v4l2src device=/dev/video0 ! 'video/x-raw, width=1920, height=1080, format=UYVY' ! nvvidconv ! 'video/x-raw(memory:NVMM), width=1920, height=1080, format=NV12' ! nvtee ! nvivafilter cuda-process=true customer-lib-name="libnvsample_cudaprocess.so" ! 'video/x-raw(memory:NVMM), format=(string)NV12' ! nvoverlaysink display-id=0 -e

And it worked correct .
But When I compile libnvsample_cudaprocess.so on my own from source file nvsample_cudaprocess_src
It show me that

cuGraphicsEGLRegisterImage failed : 3

My system is TX2 with 28.1 .
Anyone knows problems ?

Hi,

Error code 3 is not initialized.


CUDA_ERROR_NOT_INITIALIZED = 3
This indicates that the CUDA driver has not been initialized with cuInit() or that initialization has failed.

http://docs.nvidia.com/cuda/cuda-driver-api/group__CUDA__TYPES.html#group__CUDA__TYPES_1gc6c391505e117393cc2558fff6bfc2e9

Please check if your source code has well-initialized CUDA driver at the beginning.

Thanks.

Hi,
It is because that I mistake to install cuda 9.0 in R28.1 .
I reinstall cuda 8.0 then It works .

Good.

Thanks for the update.