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
(Only CodeBlock) of 7.1 bug, openCv cvGEMM(),cvmMul(),cvMatMul() ... #1371
Comments
can you download the 0071 CB zip that's in the download section and try compiling / running this example again. We had to swap opencv libs (after we put 0071 up) because of some issues that are similar and I think maybe this problem got fixed in a newer zip. (it's also fixed in the develop branch of github). |
I just used the latest opencv the lib ... of 7.1 cvGEMM () became normal. But cvmMul cvMatMul will still crash ... void testApp::setup(){
float array1[]={3,1,2,0,1,5};
float array2[]={4,3,1,1,6,0};
CvMat *A=cvCreateMat(2,3,CV_32FC1);
CvMat *B=cvCreateMat(3,2,CV_32FC1);
CvMat *ResultMatrix=cvCreateMat(2,2,CV_32FC1);
cvSetData(A,array1,A->step);
cvSetData(B,array2,B->step);
printf("cvmMul():\n");
cvmMul(A,B,ResultMatrix); --->>run error!
PrintMatrix(ResultMatrix,2,2,1);
printf("\ncvMatMul():\n");
cvMatMul(A,B,ResultMatrix); --->>run error!
PrintMatrix(ResultMatrix,2,2,1);
system("pause");
}
void testApp::PrintMatrix(CvMat *Matrix,int Rows,int Cols,int Channels)
{
for(int i=0;i<Rows;i++)
{
for(int j=0;j<Cols;j++)
{
for(int k=0;k<Channels;k++)
{
printf("%.2f ",cvGet2D(Matrix,i,j).val[k]);
}
}
printf("\n");
}
} |
@gameoverhack - could you take a look at this? |
Test ofxcv calibrationExample I found the same problem. CalibrationExample.exe has stopped working And only the codeBlock 10.05 has this issue,, Visual studio 2010 is normal. |
@gameoverhack any chance you could see if you can reproduce this? |
Can confirm that the updated example produces a crash on CB 10.05. |
from reading this: http://eigen.tuxfamily.org/dox/TopicWrongStackAlignment.html |
But won't we then have a clash between libs compiled in 4.5? I had that problem when trzing to recompile libcairo... I've just tried openCV 2.4.2 but still causes the same error... |
yeah - thats what I ran into. can't use 4.5 or 4.6 libs with C::B 10.05 ( 4.4.1 ) At the moment it seems we have one of two potential solutions:
|
ps: I have a good windows setup now, so I am open to trying things out. |
just saw this: http://tech.groups.yahoo.com/group/OpenCV/message/76601 update: doesn't work as its a different gcc version. |
Updating the gcc that comes with C::B might be our best bet. I think we should push this to 0073 and then do a gcc update then? It sucks, but I don't know if there is a fix other than to change gcc versions ( which is not a quick fix at this stage ). Anyone curious Read: http://code.opencv.org/issues/1932#note-7 Another option is to drop official C::B support all together, maintaing two compilers for one platform that both require separate libs is a lot of work. Anyway that can be another discussion. |
moved to 0073 |
Yeah, dropping C::B should definitely be a separate issue (could you open one?). From an efficiency standpoint, it would be a better idea to drop visual studio - after all, we can keep gcc (which we use on other platforms, too), and drop the VS compiler only VS uses, right? Also, we would keep the IDE which is usable on all three (?) platforms, and drop the one which is bound to one platform. (Oh I can already hear the screams...:P) |
dropping vs would mean no access to the ms kinect sdk, dropping c::b would mean no lightweight windows option. i don't think either are options. we just need to admit that windows development is not a priority, and i need to do a better job finding+encouraging windows devs :) |
I don't have a proper overview, is this bug still occuring, and can we still not do anything except upgrade C::B gcc? |
now that we are going to move to C::B 12.10 anyway (and its newer gcc), I guess this issue will go away as soon as we can close #1765, right? |
this is fixed with #1865 |
Program runs, it might crash....
In the same test in of7.0 no problem....
of 7.1 run .....
windows messageBox "A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
:( I'm using win7 + codeblock 10.05 + of 0.71...
The text was updated successfully, but these errors were encountered: