Bug #5321
Updated by Neil Voss about 7 years ago
Hi Anchi,
I was wondering if you have an insight on this problem. We keep getting segmentation faults whenever we use openCV. I created a new test file in leginon/testOpenCV.py to show the problem I am having.
<pre>
#!/usr/bin/env python
import sys
import cv2
import numpy
import platform
print "system platform: ", platform.platform()
print "openCV version: ", cv2.__version__
detector = cv2.FeatureDetector_create("SIFT")
descriptor = cv2.DescriptorExtractor_create("BRIEF")
matcher = cv2.DescriptorMatcher_create("BruteForce-Hamming")
image1 = numpy.random.random((128,128))
kp1=detector.detect(image1)
print "We did it, openCV is working, congrats to all"
</pre>
When testing I always get a "Segmentation fault" with different versions and different systems.
CentOS 7:
<pre>
system platform: Linux-3.10.0-514.10.2.el7.x86_64-x86_64-with-centos-7.4.1708-Core
openCV version: 2.4.5
Segmentation fault
</pre>
<pre>
system platform: Linux-4.4.83-boot2docker-x86_64-with-centos-7.3.1611-Core
openCV version: 2.4.5
Segmentation fault
</pre>
Fedora 24:
<pre>
system platform: Linux-4.11.12-100.fc24.x86_64-x86_64-with-fedora-24-Twenty_Four
openCV version: 2.4.12.2
Segmentation fault (core dumped)
</pre>
Debian 9:
<pre>
system platform: Linux-3.16.0-4-amd64-x86_64-with-debian-8.9
openCV version: 2.4.9.1
Segmentation fault
</pre>