Make arv_buffer_get_status
and possibly arv_stream_try_pop_buffer
robust against "ARV_IS_BUFFER failed" issue
#967
Labels
1. bug
Problems, incorrect behavior or appearance
Is your feature request related to a problem? Please describe.
Yes, the feature request is related to #853 . It seems that due to network issues/camera issues, invalid buffers can be received and calling, e.g.,
arv_buffer_get_status
throws an error "assertion ARV_IS_BUFFER failed".Describe the solution you'd like
Instead of throwingn an error,
arv_buffer_get_status
could return a status indicating a broken buffer.For
arv_stream_try_pop_buffer
, I am less sure if it is the right solution, but possibly this would return NULL instead of the buffer in case of weird broken buffers.Describe alternatives you've considered
I found no alternative, I currently need to restart the acquisition program when this happens.
Additional context
I am using Aravis through a wrapper written in Julia (https://github.com/jwahlstrand/AravisCameras.jl).
Current workflow is calling
arv_stream_try_pop_buffer
followed by check for NULL followed by a check witharv_buffer_get_status
where I then often receive an error.The text was updated successfully, but these errors were encountered: