Open elegracer opened 7 years ago
Hi,
We're currently trying to implement Bundle Adjustment for our school project and we ran into similar problems. In order to bypass these problems we started using an older version of g2o to link against (this one to be specific).
I'm not sure what the actual problem is but there have been updates concerning memory usage and I'm guessing that has to do with the problem. As you have mentioned in your comment the example within g2o seemed to be running just fine, but when running the exact same code linked to g2o it gives a segmentation fault.
Same case for me. Sometime just linking (no invoking) the g2o_types_sba.so will cause the problem. sometimes instance creation such as g2o::VertexSE3Expmap * pose = new g2o::VertexSE3Expmap() will cause the problem.
sb. says that Eigen 3.2.10 can fix this issue. I tried but not working. sb. says it is caused by environment setup. I am not sure.
be waiting for answer. thanks.
Hi, @DellBrother You statement seems to be my problem too, I'm wondering if you have any solution? That would be great!
Looking forward to you reply. THANKS
My Development Environment is: OS: Arch Linux x86_64 cmake: 3.9.3 gcc: 7.2.0 eigen: 3.3.4 suitesparse 4.5.4 opencv: 3.3.0
After I compiled g2o, I tried it with a simple curve fitting program:
and the following is the CMakeLists.txt:
there is a FindG2O.cmake in the
cmake-build-debug
subdirectory, with the same content as the one in this repository.Compiling this is OK, but when I run the binary, even before the first line of main function, it failed:
Process finished with exit code 139 (interrupted by signal 11: SIGSEGV)
But if I remove the last linked library
g2o_types_sba
, the program can run normally.Note: the last linked library
g2o_types_sba
is not used anywhere in this .cpp file, but I deliberately added it, because I had tried to use sparse bundle adjustment in another program but had failed, so I tried to test it in this program. It seems that this .so file is broken? But it's pretty strange that the examples compiled during compiling g2o can run without any incident.Please help me ~ I don't know how to deal with it now .....