Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

v.4.0.1 android SIGBUS crash

Hi, I've built v.4.0.1 for android both for armv7 and arm64 using the c++_shared stl on windows. Both builds were successfull. When executing calcOpticalFlowPyrLK(prevGray, gray, inPoints, outPoints, status, err, winSize, maxLevel, termcrit, lkFlags, minEigenThreshold); on an arm64 device, all seems to work well but on a 32bit armv7, I get a SIGBUS signal telling me i have some data alignment issues with this trace:
2019-02-24 16:15:01.112 22884-22884/? A/DEBUG: backtrace: 2019-02-24 16:15:01.112 22884-22884/? A/DEBUG: #00 pc 002aae0e /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #01 pc 002a72cd /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #02 pc 002a6cad /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv7pyrDownERKNS_11_InputArrayERKNS_12_OutputArrayERKNS_5Size_IiEEi+168) 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #03 pc 001fab51 /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv23buildOpticalFlowPyramidERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEibiib+800) 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #04 pc 001fc91f /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #05 pc 001fb319 /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv20calcOpticalFlowPyrLKERKNS_11_InputArrayES2_S2_RKNS_17_InputOutputArrayERKNS_12_OutputArrayES8_NS_5Size_IiEEiNS_12TermCriteriaEid+100) I've checked all the matrices and vectors and they all seem fine, I've also tried v.3.4.5, and got the same results. This crash is also occuring for me on the official release binaries for 4.0.1 with c++_static stl.

Maybe i'm building OpenCV wrong or something but i can't figure it out. Can anyone point me in the right direction?

v.4.0.1 android SIGBUS crash

Hi, I've built v.4.0.1 for android both for armv7 and arm64 using the c++_shared stl on windows. Both builds were successfull. When executing calcOpticalFlowPyrLK(prevGray, gray, inPoints, outPoints, status, err, winSize, maxLevel, termcrit, lkFlags, minEigenThreshold); on an arm64 device, all seems to work well but on a 32bit armv7, I get a SIGBUS signal telling me i have some data alignment issues with this trace:
2019-02-24 16:15:01.112 22884-22884/? A/DEBUG: backtrace: 2019-02-24 16:15:01.112 22884-22884/? A/DEBUG: #00 pc 002aae0e /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #01 pc 002a72cd /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #02 pc 002a6cad /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv7pyrDownERKNS_11_InputArrayERKNS_12_OutputArrayERKNS_5Size_IiEEi+168) 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #03 pc 001fab51 /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv23buildOpticalFlowPyramidERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEibiib+800) 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #04 pc 001fc91f /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so 2019-02-24 16:15:01.113 22884-22884/? A/DEBUG: #05 pc 001fb319 /data/app/com.sesame.phone_nougat-1/lib/arm/libSesameEngine.so (_ZN2cv20calcOpticalFlowPyrLKERKNS_11_InputArrayES2_S2_RKNS_17_InputOutputArrayERKNS_12_OutputArrayES8_NS_5Size_IiEEiNS_12TermCriteriaEid+100) I've checked all the matrices and vectors and they all seem fine, I've also tried v.3.4.5, and got the same results. This crash is also occuring for me on the official release binaries for 4.0.1 with c++_static stl.

Maybe i'm building OpenCV wrong or something but i can't figure it out. Can anyone point me in the right direction?

Edit: Doesn't happen in 3.1.0.