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

Load SfM_Data error, double free or corruption (out): 0x000000000486b460 *** #1143

Closed
CanCanZeng opened this issue Nov 10, 2017 · 3 comments
Closed
Labels

Comments

@CanCanZeng
Copy link

The problems I have encountered are not the same as those reported by others before,the software provided by openMVG can run correctly, but when I use openMVG as a lib, this problem happened. The program runs well but crashes when it ends.

I tried using the eigen lib from internal, but it doesn't work.

I use gcc4.8.4 on ubuntu14.04.

I just load a SfM_Data and this problem happens.

SfM_Data sfm_data;
if(!openMVG::sfm::Load(sfm_data, (reconstruction_dir+"/robust.json"), openMVG::sfm::ALL))
{
    std::cerr << std::endl
              << "The input SfM_Data file : " << reconstruction_dir << "/robust.json" << " connot be read." << endl;
    return -1;
}
@pmoulon
Copy link
Member

pmoulon commented Nov 10, 2017

This problem can be due to a conflict between the compilation settings (compiler preprocessor)
You can compiler OpenMVG with this option -DTARGET_ARCHITECTURE=generic in order to avoid any usage of compiler intrinsics (sse, avx)

I suppose you are using OpenMVG (master branch). The problem should be fixed in the develop branch.

@pmoulon pmoulon added the build label Nov 10, 2017
@CanCanZeng
Copy link
Author

Thank you for your reply, adding the option -DTARGET_ARCHITECTURE=generic works for me.

I first compile the develop branch without the option, but my problem still happens, after adding the option, my software runs smoothly, thanks a lot.

@pmoulon
Copy link
Member

pmoulon commented Nov 11, 2017

Can you please close the issue?

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

No branches or pull requests

2 participants