opencv functions (cvFindCornerSubPix) return Segmentation fault

Bug #663639 reported by toomuchcookies
30
This bug affects 5 people
Affects Status Importance Assigned to Milestone
opencv (Ubuntu)
New
Undecided
Unassigned

Bug Description

I was trying to implement a camera calibration using opencv-python and it produced Segmentation faults upon using cv.FindCornerSubPix. To test it, i used the example calibration.cpp:

1. It finds the camera and gets the image without problems
2. If a chessboard is partly in the image, it finds the corners that are visible
3. Whenever the whole chessboard appears inside the image, the program crashes with a segmentation fault.

Here is the output:

./calibration -w 8 -h 8
When the live video from camera is used as input, the following hot-keys may be used:
  <ESC>, 'q' - quit the program
  'g' - start capturing images
  'u' - switch undistortion on/off
Segmentation fault

Revision history for this message
hendeby (hendeby) wrote :

Do you by any chance use a 32bit system? I have a similar problem with a seg fault caused by a call to lapack/blas in opencv (I think it is in the same function but at C level, I'm unfortunately not able to test right now). This only occurs on my 32bit system, and it went away when I recompile opencv with their own lapack implementation instead of linking with the Ubuntu lapack package.

Revision history for this message
toomuchcookies (kontakt-toomuchcookies) wrote :

That's a yes. I'm running 32-bit.

Revision history for this message
Timo Dickscheid (dicksche) wrote :

I am having the same problem here, also running a the 32 bit version of Maverick. The crash happens every time I call cv.FindCornerSubPix.

Revision history for this message
Leandro Pavón Serrano (leandroteleco) wrote :

I'm having the same problem.
I'm using C++ implementation and OpenCV2.3 in 32-bit Ubuntu 10.04LTS.
But the same code works fine in Ubuntu 10.10 64-bit version.

Revision history for this message
Emanuele Russo (emanuele-russo) wrote :

I also have the same problem, in C++
when call the function: findChessBoarrdCorners(...)

with tis message:

"Program received signal SIGSEV, Segmentation Fault.
In ATL_dgemvT_a1_x1_b0_y1( ) ( /usr/lib/libblas.so.3gf )"

...the problem arised after the installation of octave and scilab...

Ubuntu 11.04
+ OpenCV 2.1.0-3ubuntu1
+ libblas3gf 1.2-8
(+octave 3.2+scilab...)

Revision history for this message
Emanuele Russo (emanuele-russo) wrote :

sorry, the interested package is not "libblas3gf 1.2-8" but "libatlas3gf-base 3.8.3-29".

Revision history for this message
Emanuele Russo (emanuele-russo) wrote :

After removing: libatlas3gf-bas (3.8.3-29) all works fine.
(solved for me)

Revision history for this message
haralampi (xzardaz) wrote :

Same for me - after removing libatlas3gf-base works fine.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.