-
-
Notifications
You must be signed in to change notification settings - Fork 56.5k
Description
System information (version)
- OpenCV => 4.0.1:
- Operating System / Platform => Android 8.0 armeabi-v7a:
- Compiler => ❔ clang NDK 19, 18, 17, 16
Detailed description
I am trying to use opencv-4.0.1-android-sdk.zip in latest Android studio. For Armv8 everything is ok. Armv7 crashes when I am trying to call compute function.
Maybe I need any special arguments in build.gradle file with Armv7 build?
I tried NDK 19, 18, 17, 16, and "-DANDROID_STL=c++_shared" flags, it does not helps.
Here is Logcat:
signal 7 (SIGBUS), code 1 (BUS_ADRALN)
...
/lib/arm/libopencv_java4.so (_ZN2cv3hal11sepFilter2DEiiiPhjS1_jiiiiiiS1_iS1_iiidi+474)
/lib/arm/libopencv_java4.so (_ZN2cv11sepFilter2DERKNS_11_InputArrayERKNS_12_OutputArrayEiS2_S2_NS_6Point_IiEEdi+428)
/lib/arm/libopencv_java4.so (_ZN2cv12GaussianBlurERKNS_11_InputArrayERKNS_12_OutputArrayENS_5Size_IiEEddi+432)
/lib/arm/libopencv_java4.so
/lib/arm/libopencv_java4.so (_ZN2cv9Feature2D7computeERKNS_11_InputArrayERNSt6__ndk16vectorINS_8KeyPointENS4_9allocatorIS6_EEEERKNS_12_OutputArrayE+76)
...
Steps to reproduce
call Feature2D.compute or cv::buildOpticalFlowPyramid