-
Notifications
You must be signed in to change notification settings - Fork 5.8k
OpenCV Error: Assertion failed (type == srcB.type() && srcA.size() == srcB.size()) #1057
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Could you provide stack trace for this assertion? (you can setup breakpoint on |
I am a beginer,not know how to debug the framework, and mainly the opencv/platforms/ios/ios/build/arm64-iPhoneOS/OpenCV.xcodeproj not generate the opencv2.framework, it geneate libopencv_tracking.a , libopencv_world.a, and some .a file. 2017-03-10 11:25:12.116354 KCF[2972:1412156] [MC] System group container for systemgroup.com.apple.configurationprofiles path is /private/var/containers/Shared/SystemGroup/systemgroup.com.apple.configurationprofiles it crashed very frequent, you can recurrent easyly. |
@alalek Hi, i have learn how to debug the framework. stack is: Crash at function:
_Tp is double, so, the CV_DbgAssert is 142 * 1 < 142 *1 , should fix < to <= ? The function :
boundingBox const Rect2d & roi cv::Rect2d i unsigned int 0 |
The BOOSTING crash error is: stack is: Crash at function:
data is NULL.
boundingBox Rect2d & float StrongClassifierDirectSelection::eval( const Mat& response ):
images const std::__1::vector<cv::Mat, std::__1::allocatorcv::Mat > & size=9435 0x000000016e1b0b20 curPatch int 9435 |
the KCF another crash error is: stack is: Crash at function:
type 14 |
I am use iphone6s plus. |
I fixed the fisrt crash at mat.inl.hpp, line 956:
The other two crash, I can't fixed. |
Don't do this. Condition in assertion is valid and it detects memory corruption problems. The bug is in this code:
Here roi is Rect2d (double type) with non integer values (like 106.33332824707031). Both conditions should be changed:
Probably there are other similar places in this module. |
trackerKCF.cpp, i fixed like this:
2.Change
to
I'm use 3.2 version, so can't compile the last version, could you push the code ? |
OpenCV Error: Assertion failed (type == srcB.type() && srcA.size() == srcB.size()) in mulSpectrums, file /Users/alberli/Documents/git/opencv_contrib_track/modules/core/src/dxt.cpp, line 3546
I used KCF, TLD, MIL, BOOSTING, MEDIANFLOW.
But the KCF and BOOSTING crash sometimes. Probably crash 3 times when run 5 times.
The code,
The text was updated successfully, but these errors were encountered: