In arrows/mvg/algo/initialize_cameras_landmarks.h, the initialize function gives a default value for the constraints parameter as nullptr. However, as far as I can tell actually calling the function with the default parameter will always result in a crash.
The constraints parameter will be passed into initialize_keyframes, which will then pass it into metadata_centric_keyframe_initialization, which will then reach reach line 2440, and crash.
I'm unsure if the solution for this is to simply remove the default value for the constraints parameter, or if additional checks and cases for a value of nullptr are needed throughout the code called by the function. I believe the default value for the parameter was ported over from the arrows/mvg/algo/initialize_cameras_landmarks_basic.h file.
In
arrows/mvg/algo/initialize_cameras_landmarks.h, theinitializefunction gives a default value for theconstraintsparameter asnullptr. However, as far as I can tell actually calling the function with the default parameter will always result in a crash.The
constraintsparameter will be passed intoinitialize_keyframes, which will then pass it intometadata_centric_keyframe_initialization, which will then reach reach line 2440, and crash.I'm unsure if the solution for this is to simply remove the default value for the
constraintsparameter, or if additional checks and cases for a value ofnullptrare needed throughout the code called by the function. I believe the default value for the parameter was ported over from thearrows/mvg/algo/initialize_cameras_landmarks_basic.hfile.