aravis icon indicating copy to clipboard operation
aravis copied to clipboard

arv_camera_gv_auto_packet_size() crash bug

Open CynthiaLiLi opened this issue 1 year ago • 3 comments
trafficstars

Describe the bug Calling arv_camera_gv_auto_packet_size() to automatically negotiate the packet size causes the program to crash.

Camera description:

  • Manufacturer[Hikrobot]
  • Model[MV-CB060-10GM-S-W]
  • Interface [GIGE]

Platform description:

  • Aravis version [0.8.29]
  • OS [windows]
  • Hardware [x86_64]
  • Development Framework [QT]

Additional context stack information: crash stack

CynthiaLiLi avatar Feb 27 '24 07:02 CynthiaLiLi

Thanks for the report.

What does mean the last but one column ?

Is the crash reproducible ? If so, could you try to capture a complete backtrace of the crash, with the variable values, similar to what can be obtained using gdb ?

EmmanuelP avatar Feb 27 '24 09:02 EmmanuelP

  1. What does mean the last but one column ?

The last line is a function I wrote myself to initialize the camera. In this function, arv_camera_gv_auto_packet_size() is called. In addition, I did another test. After replacing arv_camera_gv_auto_packet_size() with arv_camera_gv_set_packet_size(), if I set a value that exceeds the maximum supported by the camera, the program still crashes when calling arv_camera_create_stream(). The following is the stack information: crashcreatestream

  1. Is the crash reproducible ? If so, could you try to capture a complete backtrace of the crash, with the variable values, similar to what can be obtained using gdb ?

Yes, the crash can be reproduced. I am currently using a compiled dll file in the program, so I cannot trace back more information. When I have time later, I can download the aravis source code for further debugging and locating problems.

CynthiaLiLi avatar Feb 29 '24 02:02 CynthiaLiLi

What does mean the last but one column ?

The last line is a function I wrote myself to initialize the camera. In this function, arv_camera_gv_auto_packet_size() is called.

That is not what I'm asking. I was wondering the meaning of the numbers in the last but one column (770, 796, ...).

EmmanuelP avatar Feb 29 '24 13:02 EmmanuelP