ShiqiYu / libfacedetection

An open source library for face detection in images. The face detection speed can reach 1000FPS.
Other
12.33k stars 3.05k forks source link

Process finished with exit code 139 (interrupted by signal 11: SIGSEGV).? #179

Closed JiaoPaner closed 4 years ago

JiaoPaner commented 5 years ago

when I run the example.cpp it showed Process finished with exit code 139 (interrupted by signal 11: SIGSEGV). then I debuged the line : //!!! The input image must be a BGR one (three-channel) instead of RGB //!!! DO NOT RELEASE pResults !!! pResults = facedetect_cnn(pBuffer,(image.ptr(0)), image.cols, image.rows, (int)image.step);

but I can't find the implemention of facedetect_cnn?

JiaoPaner commented 5 years ago

sorry .I find it in facedetectcnn-model.cpp . but it still has this error. I compiled it in ubuntu

ShiqiYu commented 5 years ago

Can you debug it in the debug mode?

JiaoPaner commented 5 years ago

Can you debug it in the debug mode?

I have rearranged it in Visual studio 2015 and found the lines as follows which maybe has errors ,then added "printf" to check the lines.

TIME_START; printf("--------------START--------------\n"); maxpooling2x2S2(pConvDataBlobs + convidx, &pool1); printf("--------------END--------------\n"); TIME_END("pool1");

then I run the app again , the results like this: PS C:\programing\projects\c++\facetest\x64\Release> .\facetest.exe .\test.jpg --------------START--------------<\n> PS C:\programing\projects\c++\facetest\x64\Release> the result only has "START" and also not print out any errors ,even not show the image.

JiaoPaner commented 5 years ago

In facedetectcnn.cpp I commented the lines "#elif defined(_ENABLE_AVX2) for{...}" which in the function "maxpooling2x2S2". Run app again ,it work. Em........ my cpu is I7 and system is win10 X64..

ShiqiYu commented 5 years ago

If so, you can remove AVX2 code in maxpooling. I will check it later. Thank you.

On Wed, Sep 18, 2019 at 11:17 AM JiaoPaner notifications@github.com wrote:

In facedetectcnn.cpp I commented the lines "#elif defined(_ENABLE_AVX2) for{...}" which in the function "maxpooling2x2S2". Run app again ,it work. Em........ but I don't defined "_ENABLE_AVX2" .

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/ShiqiYu/libfacedetection/issues/179?email_source=notifications&email_token=ABWR4HJWQTKMMQFO4KZGCVLQKGMVFA5CNFSM4IXLNE6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD66VDQA#issuecomment-532500928, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWR4HMPMG4CLQAVFKCG6UDQKGMVFANCNFSM4IXLNE6A .