{"action":"created","issue":{"url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/62","labels_url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/62/labels{/name}","comments_url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/62/comments","events_url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/62/events","html_url":"https://github.com/raulmur/ORB_SLAM/issues/62","id":105317389,"number":62,"title":"SegFault in DBoW2::L1Scoring loading the default vocabulary","user":{"login":"jlblancoc","id":5497818,"avatar_url":"https://avatars.githubusercontent.com/u/5497818?v=3","gravatar_id":"","url":"https://api.github.com/users/jlblancoc","html_url":"https://github.com/jlblancoc","followers_url":"https://api.github.com/users/jlblancoc/followers","following_url":"https://api.github.com/users/jlblancoc/following{/other_user}","gists_url":"https://api.github.com/users/jlblancoc/gists{/gist_id}","starred_url":"https://api.github.com/users/jlblancoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlblancoc/subscriptions","organizations_url":"https://api.github.com/users/jlblancoc/orgs","repos_url":"https://api.github.com/users/jlblancoc/repos","events_url":"https://api.github.com/users/jlblancoc/events{/privacy}","received_events_url":"https://api.github.com/users/jlblancoc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-08T07:23:25Z","updated_at":"2015-09-08T08:49:47Z","closed_at":null,"body":"Hola Raúl!\r\n\r\nJust to let you know that, under Ubuntu 14.04 (x64), the default vocabulary (extracted from ORBvoc.txt.tar.gz) seems to make the program crash just at start-up. \r\n\r\ngdb says:\r\n\r\n```\r\nLoading ORB Vocabulary. This could take a while.\r\n\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff54cf910 in DBoW2::L1Scoring::mustNormalize(DBoW2::LNorm&) const () from /home/jlblanco/catkin_ws/src/ORB_SLAM/Thirdparty/DBoW2/lib/libDBoW2.so\r\n(gdb) \r\n```\r\n\r\nI could try to investigate it, but perhaps you are more familiar with the code and find the problem much faster?"},"comment":{"url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/comments/138483008","html_url":"https://github.com/raulmur/ORB_SLAM/issues/62#issuecomment-138483008","issue_url":"https://api.github.com/repos/raulmur/ORB_SLAM/issues/62","id":138483008,"user":{"login":"jlblancoc","id":5497818,"avatar_url":"https://avatars.githubusercontent.com/u/5497818?v=3","gravatar_id":"","url":"https://api.github.com/users/jlblancoc","html_url":"https://github.com/jlblancoc","followers_url":"https://api.github.com/users/jlblancoc/followers","following_url":"https://api.github.com/users/jlblancoc/following{/other_user}","gists_url":"https://api.github.com/users/jlblancoc/gists{/gist_id}","starred_url":"https://api.github.com/users/jlblancoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jlblancoc/subscriptions","organizations_url":"https://api.github.com/users/jlblancoc/orgs","repos_url":"https://api.github.com/users/jlblancoc/repos","events_url":"https://api.github.com/users/jlblancoc/events{/privacy}","received_events_url":"https://api.github.com/users/jlblancoc/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T08:49:47Z","updated_at":"2015-09-08T08:49:47Z","body":"I have gcc 4.8.4, just in case you use another version.\r\n\r\nThanks for the update, but the error is still 100% reproducible every time it is launched. \r\nBT from GDB:\r\n\r\n```\r\nProgram received signal SIGSEGV, Segmentation fault.\r\n0x00007ffff54cf910 in DBoW2::L1Scoring::mustNormalize(DBoW2::LNorm&) const () from /home/jlblanco/catkin_ws/src/ORB_SLAM/Thirdparty/DBoW2/lib/libDBoW2.so\r\n(gdb) bt\r\n#0  0x00007ffff54cf910 in DBoW2::L1Scoring::mustNormalize(DBoW2::LNorm&) const () from /home/jlblanco/catkin_ws/src/ORB_SLAM/Thirdparty/DBoW2/lib/libDBoW2.so\r\n#1  0x00000000004365c3 in DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::createScoringObject() ()\r\n#2  0x0000000000439ed2 in DBoW2::TemplatedVocabulary<cv::Mat, DBoW2::FORB>::loadFromTextFile(std::string const&) ()\r\n#3  0x000000000042d898 in main ()\r\n(gdb) \r\n```\r\n\r\nAnyway, I can \"fix\" the crash by adding an arbitrary std::cout trace before the call to createScoringObject() in TemplatedVocabulary.h... if that can be called a \"fix\" :-( \r\nI tried to run it 10 times and it crashes all the times without the \"cout\", it passes with it. \r\n\r\nFor me it is fine to close the issue if nobody else can reproduce it. "}}