cyang-kth / fmm

Fast map matching, an open source framework in C++
https://fmm-wiki.github.io/
Apache License 2.0
875 stars 205 forks source link

got some problem while testing "Matching GPS trajectory in CSV file using fmm" #239

Open zoidburg opened 2 years ago

zoidburg commented 2 years ago

Hi, I'm following the Tutorial while something went wrong.

It seems like fmm failed to deal with the trips.csv parsing, the backtrace indicates some problems with the boost library, a read_wkt_exception was thrown.

0 __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:51

1 0x00007f8e368757f1 in __GI_abort () at abort.c:79

2 0x00007f8e36eca957 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

3 0x00007f8e36ed0ae6 in ?? () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

4 0x00007f8e36ed0b21 in std::terminate() () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

5 0x00007f8e36ed0d54 in __cxa_throw () from /usr/lib/x86_64-linux-gnu/libstdc++.so.6

6 0x00007f8e372c13c4 in void boost::throw_exception<boost::exception_detail::error_info_injector >(boost::exception_detail::error_info_injector const&) () from /usr/local/lib/libFMMLIB.so

7 0x00007f8e372c164c in void boost::exception_detail::throwexception(boost::geometry::read_wkt_exception const&, char const, char const, int) () from /usr/local/lib/libFMMLIB.so

8 0x00007f8e372c4668 in boost::geometry::detail::wkt::geometry_parser<boost::geometry::model::linestring<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian>, std::vector, std::allocator>, boost::geometry::detail::wkt::linestring_parser, boost::geometry::detail::wkt::prefix_linestring>::apply(std::__cxx11::basic_string<char, std::char_traits, std::allocator > const&, boost::geometry::model::linestring<boost::geometry::model::point<double, 2ul, boost::geometry::cs::cartesian>, std::vector, std::allocator>&) () from /usr/local/lib/libFMMLIB.so

9 0x00007f8e372f591d in FMM::IO::CSVTrajectoryReader::read_next_trajectory() () from /usr/local/lib/libFMMLIB.so

10 0x00007f8e3727b336 in FMM::MM::FMMApp::run() () from /usr/local/lib/libFMMLIB.so

11 0x00005615354cd81b in main ()

Below is some basic environment from the CMake configuring: -- Could NOT find Conda (missing: CONDA_PREFIX) -- Non conda exist, search library in default path -- Found GDAL: /usr/lib/libgdal.so (Required is at least version "2.2") -- GDAL headers found at /usr/include/gdal -- GDAL library found at /usr/lib/libgdal.so -- Boost version: 1.65.1 -- Found the following Boost libraries: -- serialization -- Boost headers found at /usr/include -- Boost library found at /usr/lib/x86_64-linux-gnu/libboost_serialization.so -- Boost library version 1_65_1 -- Found OpenMP_C: -fopenmp (found version "4.5") -- Found OpenMP_CXX: -fopenmp (found version "4.5") -- Found OpenMP: TRUE (found version "4.5") -- OpenMP_HEADERS found at -- OpenMP_CXX_LIBRARIES found at /usr/lib/gcc/x86_64-linux-gnu/7/libgomp.so;/usr/lib/x86_64-linux-gnu/libpthread.so -- Installation folder /usr/local -- Not install fmm headers -- Add python cmake information -- Found SWIG: /usr/bin/swig3.0 (found version "3.0.12") -- Swig version is 3.0.12 -- Found PythonInterp: /usr/bin/python (found version "2.7.17") -- Found PythonLibs: /usr/lib/x86_64-linux-gnu/libpython2.7.so (found version "2.7.17") -- Python header found at /usr/include/python2.7 -- Python library found at /usr/lib/x86_64-linux-gnu/libpython2.7.so -- Python packages /usr/lib/python2.7/dist-packages -- Using swig add module CMake Deprecation Warning at /usr/share/cmake-3.10/Modules/UseSWIG.cmake:231 (message): SWIG_ADD_MODULE is deprecated. Use SWIG_ADD_LIBRARY instead. Call Stack (most recent call first): python/CMakeLists.txt:30 (SWIG_ADD_MODULE)

The fmm seems correctly installed, as all the other tests have passed except this one. So what may be the cause? Did I setup fmm in a wrong way?

Thanks you and hope to hear from you soon.