I’m seeing a weird error calling cuEGLStreamProducerPresentFrame after between 64 - 108 frames (it varies quite a bit). It returns a 999 unknown error, and causes an EGL debug message to be logged:
EGL_BAD_PARAMETER error: In EGL Access Table::stream2.producer.bufferRegister: Invalid buffer handle
Before my call to PresentFrame, I’m calling cuEGLStreamProducerReturnFrame until it returns CUDA_ERROR_LAUNCH_TIMEOUT. On the EGL side, I do both an eglStreamAcquireImageNV and eglStreamReleaseImageNV, which both report that they were successful.
It feels like there’s something I’m not releasing, but I believe I’ve accounted for everything.
There are some other threads on a similar error, such as this, but the underlying issue wasn’t mentioned.
Thanks & Regards