OpenCV camera crashes during initialization on Android GalaxyS3 (Japanese version SC06D) (Bug #2144)
camera samples first freeze and and then crash (after about 2s/3s)
I also experienced problem running OpenCV in Galaxy S3 with Android OS 4.0.4. The same piece of code worked fine in other phones and different Android OS. I have already tried to use
libnative_camera_r*.so in the git repository, but the problem is still unsolved.
The following code caused the problem:
And the logcat output showed the following line:
libc @@@ABORTING: HEAP MEMORY CORRUPTION IN tmalloc_small
libc Fatal signal 22 (SIGSEGV) at 0xdeadbaad (code=1)
Hope that help.