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

access violation #267

Closed fogelton closed 4 years ago

fogelton commented 4 years ago

My app crashed due to facedetection, the access violation occured in this line 215 in file facedetectcnn.cpp

pOut[ch] = 0;//the new created blob is not zeros, clear it first

the stack trace is [function] [line] [source file] convolution3x3P0 215 facedetectcnn.cpp convolution 351 facedetectcnn.cpp objectdetect_cnn 249 facedetectcnn-model.cpp facedetect_cnn 412 facedetectcnn-model.cpp

ShiqiYu commented 4 years ago

It looks strange. But currently I have no idea. I remember it and will review the source code when I have time. Anyway, you are welcome to find the solution and submit a pitch.

On Thu, Aug 6, 2020 at 4:10 AM fogelton notifications@github.com wrote:

My app crashed due to facedetection, the access violation occured in this line 215 in file facedetectcnn.cpp

pOut[ch] = 0;//the new created blob is not zeros, clear it first

the stack trace is [function] [line] [source file] convolution3x3P0 215 facedetectcnn.cpp convolution 351 facedetectcnn.cpp objectdetect_cnn 249 facedetectcnn-model.cpp facedetect_cnn 412 facedetectcnn-model.cpp

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ShiqiYu/libfacedetection/issues/267, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABWR4HP63LXXYMGBC4J6KITR7G4EXANCNFSM4PV3LFTQ .

--

Prof. Shiqi YU (于仕琪)

Department of Computer Science and Engineering,

Southern University of Science and Technology,

Shenzhen, China.

fogelton commented 4 years ago

I looked at my logs and the crash happened during closing the app, so when using openmp there should be some measures to ensure that the facedetection is stooped to go forward in the process.. you can close this, maybe I do it wrong in my destructor