-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Segmentation Fault (Core Dumped) when running any examples #605
Comments
Have you solved this problem? I have met the same problem recently. But when I work in 14.04 everything is OK... |
I meet the same issue in MisEty/RTG-SLAM#28 |
in CMakeLists.txt |
If I use the following command, a new error will occur: SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -O3 -march=native") |
I solve the problem by re-compile the g2o in the Thirdparty directory |
I am new to ORBSLAM2 and have been trying to troubleshoot from the previous posts, but none of them seem to resolve the problem.
When i try and run any example (tried both EUROC and TUM datasets) i get a segmentation fault (core dumped). I am running Ubuntu 16.04LTE
Output from ORBSLAM2:
`ORB-SLAM2 Copyright (C) 2014-2016 Raul Mur-Artal, University of Zaragoza.
This program comes with ABSOLUTELY NO WARRANTY;
This is free software, and you are welcome to redistribute it
under certain conditions. See LICENSE.txt.
Input sensor was set to: RGB-D
Loading ORB Vocabulary. This could take a while...
Vocabulary loaded!
Camera Parameters:
ORB Extractor Parameters:
Depth Threshold (Close/Far Points): 3.09294
Start processing sequence ...
Images in the sequence: 792
New map created with 832 points
Segmentation fault (core dumped)`
And with GDB on the output from bt is:
`
Depth Threshold (Close/Far Points): 3.09294
[New Thread 0x7fffd4891700 (LWP 21137)]
[New Thread 0x7fffd4090700 (LWP 21138)]
[New Thread 0x7fffd388f700 (LWP 21139)]
Start processing sequence ...
Images in the sequence: 792
[New Thread 0x7fffd1ba1700 (LWP 21140)]
[New Thread 0x7fffd13a0700 (LWP 21141)]
[New Thread 0x7fffd0b9f700 (LWP 21142)]
[New Thread 0x7fffc3fff700 (LWP 21143)]
[New Thread 0x7fffc37fe700 (LWP 21144)]
[New Thread 0x7fffc2ffd700 (LWP 21145)]
[New Thread 0x7fffc27fc700 (LWP 21146)]
New map created with 834 points
[New Thread 0x7fffa7fff700 (LWP 21147)]
[New Thread 0x7fffa77fe700 (LWP 21148)]
[New Thread 0x7fffa6ffd700 (LWP 21149)]
Thread 1 "rgbd_tum" received signal SIGSEGV, Segmentation fault.
0x00007ffff51ffcc5 in g2o::EdgeSE3ProjectXYZOnlyPose::linearizeOplus() ()
from /home/joe/ORB_SLAM2/Thirdparty/g2o/lib/libg2o.so
(gdb) bt
#0 0x00007ffff51ffcc5 in g2o::EdgeSE3ProjectXYZOnlyPose::linearizeOplus() ()
from /home/joe/ORB_SLAM2/Thirdparty/g2o/lib/libg2o.so
#1 0x00007ffff7b6096c in g2o::BlockSolver<g2o::BlockSolverTraits<6, 3> >::buildSystem() () from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#2 0x00007ffff5246998 in g2o::OptimizationAlgorithmLevenberg::solve(int, bool)
() from /home/joe/ORB_SLAM2/Thirdparty/g2o/lib/libg2o.so
#3 0x00007ffff523dd17 in g2o::SparseOptimizer::optimize(int, bool) ()
from /home/joe/ORB_SLAM2/Thirdparty/g2o/lib/libg2o.so
#4 0x00007ffff7b44aab in ORB_SLAM2::Optimizer::PoseOptimization(ORB_SLAM2::Frame*) () from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#5 0x00007ffff7ae14af in ORB_SLAM2::Tracking::TrackReferenceKeyFrame() ()
from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#6 0x00007ffff7ae7770 in ORB_SLAM2::Tracking::Track() ()
from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#7 0x00007ffff7ae8eae in ORB_SLAM2::Tracking::GrabImageRGBD(cv::Mat const&, cv::Mat const&, double const&) () from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#8 0x00007ffff7ad2e28 in ORB_SLAM2::System::TrackRGBD(cv::Mat const&, cv::Mat const&, double const&) () from /home/joe/ORB_SLAM2/lib/libORB_SLAM2.so
#9 0x0000000000407e0b in main ()
(gdb)
`
Thanks for any help, this has me stumped
The text was updated successfully, but these errors were encountered: