Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An error about segmentation error during running MSC-VO code #3

Closed
Zhangzhh-107 opened this issue Feb 20, 2023 · 3 comments
Closed

Comments

@Zhangzhh-107
Copy link

Hello dear author, I am trying to running the code of MSC-VO. During the process of configuring environment, there always exists segmentation error. After debug, I found that this segmentation error is loacte in Optimizer::LineOptStruct, if I delete the calling of this function in 277 of Tracking.cc, the algorithm can run successfully. I add an output at the end of Optimizer::LineOptStruct and 278 of Tracking.cc, only the output in Optimizer::LineOptStruct can be print, which means that the segmentation error maybe caused by the memory reclamation of Optimizer::LineOptStruct.I would like to know that is this problem happens when you run this code. If this problem also happened in your device, how can i solve it?
Thank you so much!

@joanpepcompany
Copy link
Owner

Hi Ayakanoinu,
Thanks for trying it. I have never experienced the related issue. However, I would like to know if this issues is related to the code or the differences in the libraries used. Can you provide more details about the versions of the libraries installed and the operative system used. Have you tried one of the dataset mentioned in the article?
Best,
Joan Pep

@neilzhuu
Copy link

Hi joanpepcompany,
I got the same problem with the TUM datasets. Here are the details of my runtime environment:

  • OS - Ubuntu 20.04.3 LTS
  • Eigen - 3.3.7
  • OpenCV - 3.4.5
  • Pangolin - 0.6

I also tried OpenCV 3.2, but it did not work. I hope you could offer some ideas for solutions.
Thank you so much!

@Zhangzhh-107
Copy link
Author

Hi Ayakanoinu, Thanks for trying it. I have never experienced the related issue. However, I would like to know if this issues is related to the code or the differences in the libraries used. Can you provide more details about the versions of the libraries installed and the operative system used. Have you tried one of the dataset mentioned in the article? Best, Joan Pep

Sorry Joan. It is so appologize that i didn't notice the reply of you. I have resolved this problem by adding "return 1" at the end of function LineOptStruct in Optimizer.cc. I think this problem is caused by the c++ library of my computer. Function LineOptStruct is defined as a function with integer return value. But there is no return statement in code. It is hard to explain why but i really solve this problem by adding "return 1" in the end of this function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants