cv::Kalman Segmentation Fault after call to destructor (Bug #441)


Added by Vito Macchia over 14 years ago. Updated over 14 years ago.


Status:Done Start date:
Priority:Low Due date:
Assignee:- % Done:

0%

Category:imgproc, video
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi to all, I tried to "translate" the samples/c/kalman.c example into C++ code, i.e. using the new OpenCV 2.1 C++ interface.

All works fine except when exiting the program (by pressing Esc or Q), it results in a segmentation fault.

This is the call stack:

Thread r1 (Suspended: Signal 'SIGSEGV' received. Description: Segmentation fault.)
6 free() 0x00d19871
5 cv::fastFree( ) 0x0075ab62
4 cv::Mat::release( ) /usr/local/include/ opencv/cxmat. hpp:378 0x080515e6
3 ~Mat() /usr/local/include/ opencv/cxmat. hpp:262 0x080511ab
2 ~KalmanFilter( ) /usr/local/include/ opencv/cv. hpp:588 0x0805b78c
1 main() /home/vito/Programm ing/C-C++ /OCamDemoBT/ src/kalman. cpp:105 0x0805b15c

I use Linux Ubuntu 9.10, 32 bit with gcc/g++ 4.4.1. I did compile the library by myself using CMake.


kalman.cpp - Example program that causes the segmentation fault (3.7 kB) Vito Macchia, 2010-07-09 02:09 pm


Associated revisions

Revision 6e4aeff4
Added by Andrey Kamaev about 12 years ago

Merge pull request #441 from jet47:filter-speckles-8u

History

Updated by Vito Macchia over 14 years ago

Sorry I didn't notice someone else already did it :(

Ticket #319 implemented a working example. Perhaps my problem was caused by the macros.

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF