aravis icon indicating copy to clipboard operation
aravis copied to clipboard

Buffer timeout status after buffer underflow

Open Pibben opened this issue 1 year ago • 10 comments

Describe the bug I'm using the Aravis library with a GenICam ethernet camera.

If I don’t call arv_stream_timeout_pop_buffer() often enough and Aravis runs out of input buffers and gets buffer underruns, after a while (a few calls) I start to get ARV_BUFFER_STATUS_TIMEOUT status on my buffers. Why does buffer underrun cause timeouts to happen? What can I do about it?

To Reproduce Steps to reproduce the behavior:

  • Set up streaming from camera
  • Call arv_stream_timeout_pop_buffer at a frequency lower than the camera frame rate
  • After a while the returned buffers have ARV_BUFFER_STATUS_TIMEOUT status

Expected behavior The buffers having ARV_BUFFER_STATUS_SUCCESS status.

Camera description:

  • Dalsa
  • Genie Nano
  • Ethernet

Platform description:

  • Aravis version 0.8.20
  • OS: Ubuntu 20.04
  • Hardware x86_64

Pibben avatar Nov 27 '23 12:11 Pibben

Could run your software with ARV_DEBUG=all:3 and attach the console output here.

EmmanuelP avatar Dec 08 '23 16:12 EmmanuelP