Timout and freezed frame

I used an RGB camera to pick up pictures. Now I have the problem that a HW error occurs with the first image, then I always get the same image when I use the acquireFrame method. Which components do I have to reset so that I can receive new images again?

Uresult cuResult = CUresult::CUDA_ERROR_UNKNOWN;
  EULER_LOG_INFO(m_log, "starting get frame");
  cuResult = cuCtxSetCurrent(g_cudaContext);
  EULER_LOG_INFO(m_log, "cuda cftx set current");
  if (cuResult != CUDA_SUCCESS)
  {
    EULER_LOG_ERROR(m_log,
                    "Unable to set current cuda context "
                    "(CUresult %s).",
                    ArgusSamples::getCudaErrorString(cuResult));
  }
  CUgraphicsResource pCudaResource = 0;
  CUstream           pCudaStream   = 0;
  if (!iCaptureSession->isRepeating())
  {
    EULER_LOG_ERROR(m_log, " isRepeating() failed");
    return false;
  }
  unsigned int timoutAcquireFrame = 1000000; //  Desired timeout in usec
  auto start = std::chrono::high_resolution_clock::now();
  cuResult = cuEGLStreamConsumerAcquireFrame(cudaConnection.get(), &pCudaResource, &pCudaStream, timoutAcquireFrame);
  auto stop = std::chrono::high_resolution_clock::now();
  if (cuResult != CUDA_SUCCESS)
  {
    EULER_LOG_ERROR(m_log,
                    "Unable to acquire an image frame from the EGLStream with CUDA as a "
                    "consumer (CUresult %s).",
                    ArgusSamples::getCudaErrorString(cuResult));
  }

hello JanGerber,

may I know which Jetpack release you’re now using?
please check $ cat /etc/nv_tegra_release for confirmation.
you may also narrow down the issue, please check developer guide, Applications Using V4L2 IOCTL Directly by using V4L2 IOCTL to verify basic camera functionality.

Hi JerryChang,

I use the following version

# R35 (release), REVISION: 3.1, GCID: 32827747, BOARD: t186ref, EABI: aarch64, DATE: Sun Mar 19 15:19:21 UTC 2023

hello JanGerber,

please also test with V4L2 IOCTL to verify basic camera functionality.

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