Comments (5)
Thanks for reporting! We are not seeing this error here, so it is hard to track. I've followed a suggestion here (http://blog.gmane.org/gmane.comp.python.c%2B%2B/month=20090301) and remove the explicit include for Python.h. Could you check if last commits solved the problem?
from opensfm.
So with commit 28dfadd and using CMake the same segfault occured. I hadn't tried building with python so I tried that and there were no issues. Run_all ran fine on the data/berlin dataset!
from opensfm.
We are in the process of properly setting the setup.py script. Nice to hear that is working for you!
from opensfm.
The same issue (but stack-trace) occurred on OS X 10.10 with custom python 2.7 (via homebrew).
The error comes from the explicit inclusion of Python.framework in dependencies of both libboost_python.dylib and csfm.so (but cv2.so does not explicitly load python lib). The explicit inclusion leads to the conflict between two different python libraries (one is system bulitin, and the other is homebrewed).
To solve the problem might need several works:
csfm.so should use incremental linking (ex: ld -undefined dynamic_lookup ...
), and link with boost_python.a (static library) instead
$ otool -L /usr/local/lib/libboost_python.dylib
/usr/local/lib/libboost_python.dylib:
/usr/local/lib/libboost_python.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.0)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
$ otool -L opensfm/csfm.so
opensfm/csfm.so:
/Users/davidlin/projects/OpenSfM/opensfm/csfm.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libboost_python-mt.dylib (compatibility version 0.0.0, current version 0.0.0)
/System/Library/Frameworks/Python.framework/Versions/2.7/Python (compatibility version 2.7.0, current version 2.7.6)
/usr/local/lib/libgflags.2.dylib (compatibility version 4.0.0, current version 4.0.0)
/usr/local/lib/libglog.0.dylib (compatibility version 1.0.0, current version 1.0.0)
/usr/local/lib/libceres.1.dylib (compatibility version 1.0.0, current version 1.10.0)
/System/Library/Frameworks/Accelerate.framework/Versions/A/Accelerate (compatibility version 1.0.0, current version 4.0.0)
/usr/local/lib/libtbb.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libtbbmalloc.dylib (compatibility version 0.0.0, current version 0.0.0)
/usr/local/lib/libopencv_videostab.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_superres.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_stitching.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_contrib.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_nonfree.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_ocl.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_gpu.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_photo.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_legacy.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_video.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_ml.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_calib3d.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_features2d.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_highgui.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_imgproc.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_flann.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
$ otool -L /usr/local/lib/python2.7/site-packages/cv2.so
/usr/local/lib/python2.7/site-packages/cv2.so:
/usr/local/lib/python2.7/site-packages/cv2.so (compatibility version 0.0.0, current version 0.0.0)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_contrib.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_nonfree.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_gpu.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_legacy.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_photo.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_ocl.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_calib3d.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_features2d.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_flann.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_ml.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_video.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_objdetect.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_highgui.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_imgproc.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/local/Cellar/opencv/2.4.11/lib/libopencv_core.2.4.dylib (compatibility version 2.4.0, current version 2.4.11)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version 120.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
from opensfm.
Awesome find @davll, thanks!
from opensfm.
Related Issues (20)
- Error data and correlation similar to Metashape matrix HOT 1
- Install Error with Debian
- Consider updating to a newer Sphinx and relaxing the constraints HOT 1
- Consider tagging a new release
- opensfm/test/test_commands.py::test_run_all doesn't pass with matplotlib 3.8.0
- Camera::PixelToNormalizedCoordinatesMany returns incorrect value? HOT 1
- Camera Positions from R, t vector in reconstruction.json HOT 1
- 360 camera feature point coordinate
- Obtaining a more crisp point cloud HOT 3
- Inquiry Regarding Representation of Position and Orientation Data in exif_overrides.json HOT 1
- Any suggestions to improve the speed of reconstructing 360 images?
- Parsing tracks.csv
- ValueError: Unable to determine Axes to steal space for Colorbar. Either provide the *cax* argument to use as the Axes for the Colorbar, provide the *ax* argument to steal space from it, or add *mappable* to an Axes.
- Error when building using wsl ubuntu
- GPU Accelerated Feature Matching HOT 1
- merge sub-point cloud
- Using OpenSFM with a telescopic lens
- Unable to run, attempted to make changes but still failed HOT 2
- Wrong Flask resource paths in annotation_gui_gcp HOT 1
- cannot import name 'pybundle' from partially initialized module 'opensfm' (most likely due to a circular import)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opensfm.