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

Created on 10 Nov 2017  路  3Comments  路  Source: openMVG/openMVG

The problems I have encountered are not the same as those reported by others before锛宼he 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;
}
build

Most helpful comment

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.

All 3 comments

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.

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.

Can you please close the issue?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

hcjghr picture hcjghr  路  17Comments

pmoulon picture pmoulon  路  34Comments

squashking picture squashking  路  22Comments

mchildsCO76 picture mchildsCO76  路  22Comments

KarimHassanieh picture KarimHassanieh  路  20Comments