Project

General

Profile

Actions

Bug #5321

open

OpenCV segmentation fault using Leginon RCT

Added by Neil Voss about 7 years ago. Updated almost 7 years ago.

Status:
Assigned
Priority:
Normal
Assignee:
Category:
-
Target version:
-
Start date:
11/20/2017
Due date:
% Done:

0%

Estimated time:
Affected Version:
Appion/Leginon 3.2
Show in known bugs:
No
Workaround:

Description

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.

#!/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" 

When testing I always get a "Segmentation fault" with different versions and different systems.

CentOS 7:

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

system platform:  Linux-4.4.83-boot2docker-x86_64-with-centos-7.3.1611-Core
openCV version:   2.4.5
Segmentation fault

Fedora 24:

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)

Debian 9:

system platform:  Linux-3.16.0-4-amd64-x86_64-with-debian-8.9
openCV version:   2.4.9.1
Segmentation fault

Actions

Also available in: Atom PDF