opencv3.0.0 BackgroundSubtractor::apply leads to "R6025 pure virtual function call"

230 views Asked by At

I'm running the BackgroundSubtractor demo in opencv3.0-gold-release with vs2013, while the following error occurs when exiting the program: enter image description here

the callstack is as follows:

cv3_bg_sub.exe!cv::MatAllocator::unmap(cv::UMatData * u) 行 62   C++
cv3_bg_sub.exe!cv::Mat::deallocate() 行 433  C++
cv3_bg_sub.exe!cv::Mat::release() 行 668 C++
cv3_bg_sub.exe!cv::Mat::~Mat() 行 555    C++

The var this in the auto-window shows inconsistently: enter image description here

Anyone who has experienced this?

1

There are 1 answers

0
zhangxaochen On BEST ANSWER

The issue was finally solved by changing lib dependencies from staticlib to dynamic libs, seems the pre-built staticlib is buggy (anyone who has the same experience?)

I've rebuilt (both static and dynamic) opencv300 source code on my own, and the errors are gone.