Hi All! So I am using OpenCV (in C++ using Android NDK) for some image processing task. It is running very well on a good number of devices but the same code causes a SIGBUS error on some low-end Android phones. I thought it was because of their low RAM and this I used cv::setNumThreads(0) to limit the number of threads used to 1. However, the crash still persists. Any help is appreciated! The relevant crash log is below:
05-02 15:55:12.661 17993 17993 F DEBUG : backtrace:
05-02 15:55:12.661 17993 17993 F DEBUG : #00 pc 000a18da /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #01 pc 00095ca3 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #02 pc 000a0529 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #03 pc 000e8b93 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_core.so (cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double)+158) (BuildId: 3a396ba323f6e12af7e8719e0e6f2327d0dbfd51)
05-02 15:55:12.662 17993 17993 F DEBUG : #04 pc 00094505 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (cv::remap(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::_InputArray const&, int, int, cv::Scalar_<double> const&)+692) (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #05 pc 000a0be5 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #06 pc 000e8c37 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_core.so (cv::parallel_for_(cv::Range const&, cv::ParallelLoopBody const&, double)+322) (BuildId: 3a396ba323f6e12af7e8719e0e6f2327d0dbfd51)
05-02 15:55:12.662 17993 17993 F DEBUG : #07 pc 0009d60d /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (cv::hal::warpAffine(int, unsigned char const*, unsigned int, int, int, unsigned char*, unsigned int, int, int, double const*, int, int, double const*)+300) (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)
05-02 15:55:12.662 17993 17993 F DEBUG : #08 pc 0009d911 /data/app/~~z3sJlh0-FVZlvCZDCHR51Q==/ai.tech5.airsnap.face.demo-bzwQqpKBn7GY76HFR5QOwA==/lib/arm/libopencv_imgproc.so (cv::warpAffine(cv::_InputArray const&, cv::_OutputArray const&, cv::_InputArray const&, cv::Size_<int>, int, int, cv::Scalar_<double> const&)+480) (BuildId: 6da922410e37c52f0a267da37e402ae8804be308)