Actions
Bug #5321
openOpenCV segmentation fault using Leginon RCT
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
Updated by Neil Voss about 7 years ago
From our IT guy:
It turns out that the Debian version of OpenCV 2.4.9 does not have SIFT or SURF compiled or available, apparently, at all. So, I'm working on recompiling from official source (not Debian's package source) OpenCV 2.4.9 to provide the non-free portions of code. This is taking me down a route of more dependency chasing, but hopefully I'll have it built soon (famous last words).
Updated by Neil Voss about 7 years ago
- Assignee changed from Anchi Cheng to Neil Voss
After compiling a openCV 2.4.9 from source code, it seems to be working now.
Updated by Anchi Cheng almost 7 years ago
This issue was found a few months ago in
Updated by Neil Voss almost 7 years ago
Ah, that makes sense, when I click on your link I get:
"You are not authorized to access this page."
Actions