UUsing filter2D causes crash in some Android based devices

asked 2016-11-17 10:34:37 -0500

e gravatar image


I am writing c++ Native code for Android using JNI interface. I am doing some image processing and among others using the function filter2D. I have noticed that in new Android devices this works good but in older ones such as Samsung Galaxy 4 I am getting crashes of dlfree. I have looked at the crash summary and found that the reason was heap corruption caused by opencv 3.0, that is the version I am using. I did many tests and proved it was filter2D that was causing the problem. Is there an alternative function? can you think of a reason why this is happening and only on older devices? (I have checked numerous newer devices such as Samsung Galaxy 6 and OnePlus2 and they work fine). I also made sure it is not OS related by updating the Android version to 5 in the older devices and downgrading it in the newer devices. The problem still occurs only in the older devices.

edit retag flag offensive close merge delete


i definitely can't help here - but - without (selected parts of your) error logs - it's just a complaint so far.

berak gravatar imageberak ( 2016-11-17 11:08:29 -0500 )edit