Nvbufsurface: Failed to create EGLImage

Jetpack 5.1.3 xavier agx 16G
when invoke NvBufSurfaceMapEglImage, it got error: nvbufsurface: Failed to create EGLImage.

the fllowing is part to source code:

    // dma fd -> EGL image
    ret = NvBufSurfaceFromFd(dstNv12Fd, (void **)(&pNvBufSurf));
    if (ret != 0 || !pNvBufSurf) {
        ret = -6;
        algd_trace_goto(CLEANUP, LvErr, "fail to Gets the NvBufSurface from the DMABUF FD.\n");
    }
    if (pNvBufSurf->surfaceList[0].mappedAddr.eglImage == NULL) {
        ret = NvBufSurfaceMapEglImage(pNvBufSurf, 0);
        if (ret != 0) {
            algd_trace_err("uable to map egl image: %d!\n", ret);
            ret = -7;
            goto CLEANUP;
        }
    }

Hi,
We don’t hit the issue on AGX Xavier developer kit. Please try the sample and see if you also observe the issue:

/usr/src/jetson_multimedia_api/samples/03_video_cuda_enc

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.