AravisProject / aravis

A vision library for genicam based cameras
GNU Lesser General Public License v2.1
872 stars 326 forks source link

arv_camera_gv_auto_packet_size() crash bug #874

Open CynthiaLiLi opened 7 months ago

CynthiaLiLi commented 7 months ago

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

Camera description:

Platform description:

Additional context stack information: crash stack

EmmanuelP commented 7 months ago

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 ?

CynthiaLiLi commented 7 months ago
  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.

EmmanuelP commented 7 months ago

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, ...).