Opened 15 years ago

Closed 14 years ago

#24648 closed defect (fixed)

HaarClassifierCascade crashes

Reported by: wiking@… Owned by: stante@…
Priority: Normal Milestone:
Component: ports Version: 1.8.2
Keywords: Cc:
Port: opencv

Description

I'm trying to run the simple facedetect.cpp sample of OpenCV, but seems there's something wrong as it crashes right away.

gdb output:

Program received signal EXC_BAD_ACCESS, Could not access memory.
Reason: KERN_INVALID_ADDRESS at address: 0x0000000000000020
[Switching to process 15967]
0x0000000101213200 in omp_get_thread_num ()
(gdb) bt
#0  0x0000000101213200 in omp_get_thread_num ()
#1  0x0000000100f373bb in cvHaarDetectObjects.omp_fn.1 ()
#2  0x00007fff857fd8b6 in _pthread_start ()
#3  0x00007fff857fd769 in thread_start ()

(gdb) info threads
* 4 port# 0x2503 0x0000000101213200 in omp_get_thread_num ()
  3 port# 0x1b03 0x00007fff857de30a in __workq_kernreturn ()
  2 port# 0x1703 0x00007fff857dd4ea in kevent ()
  1 port# 0x903  0x0000000100f35147 in cvRunHaarClassifierCascade ()

Change History (3)

comment:1 Changed 15 years ago by wiking@…

I've tested the same sample with OpenCV version 2.1.0 (see Portfile and patches in ticket:24503) and it works fine with it! Thus upgrading to 2.1.0 would be great....

comment:2 Changed 15 years ago by jmroot (Joshua Root)

Owner: changed from macports-tickets@… to stante@…

Please remember to cc the maintainer.

comment:3 in reply to:  1 Changed 14 years ago by raphael-st (Raphael Straub)

Resolution: fixed
Status: newclosed

Replying to wiking@…:

I've tested the same sample with OpenCV version 2.1.0 (see Portfile and patches in ticket:24503) and it works fine with it! Thus upgrading to 2.1.0 would be great....

OpenCV has been updated to version 2.1.0 in r70430. So, your problem should be solved.

Note: See TracTickets for help on using tickets.