Ask Your Question

VideoCapture crashes on Samsung Galaxy S4 (Android 4.2.3)

asked 2013-06-07 04:15:43 -0500

updated 2013-06-07 05:50:58 -0500

Andrey Pavlenko gravatar image

I have Run the program of Roman for eyes and face detection. This program uses VideoCapture to take the raw video from camera, But when I run My app on Samsung Galaxy S4 it returns the next error:

06-06 22:32:06.998: A/libc(1911): @@@ ABORTING: HEAP MEMORY CORRUPTION IN tmalloc_small
06-06 22:32:06.998: A/libc(1911): Fatal signal 11 (SIGSEGV) at 0xdeadbaad (code=1)
06-06 22:32:07.287: I/dalvikvm(1911): threadid=3: reacting to signal 3

Speaking with Roman he has noted in the log an another and more specific error:

06-06 22:31:55.100: D/OpenCV_NativeCamera(1876): Supported Cameras: (null)

therefore I think that the error due to OpenCV library which don't support the camera of Samsung S4. My opinion is supported from my second test on Samsung S2 with android 4.1.2 where the program runs perfectly

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2013-06-07 05:55:01 -0500

Andrey Pavlenko gravatar image

Make sure you use the latest OpenCV4Android (currently v2.4.5) and check for update for Android on your phone.

Can't help more because we don't have access to such device for debugging.

edit flag offensive delete link more


yes I'm sure I have the last version and for more security I have installed the library(or driver I don't know the correct type) for my arm.

Andre85to gravatar imageAndre85to ( 2013-06-07 07:40:07 -0500 )edit

Currently all that you need to install to your device is [OpenCV Manager] (

You don't need OCV 2.4 pack

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-06-07 08:04:25 -0500 )edit

Also be aware that VideoCapture is implemented using non-public Android API, so it may not work on particular devices when vendor modified this part of Android.

Andrey Pavlenko gravatar imageAndrey Pavlenko ( 2013-06-07 08:07:46 -0500 )edit

thanks for all. I have resolved the problem. I have change all call to videocamputer with call to CameraBridgeViewBase and now the app run in all android device with androind 4.0.3 how minimal sistem. thanks so much for the support

Andre85to gravatar imageAndre85to ( 2013-06-08 08:29:23 -0500 )edit

Can you please share some more details about how you used the CameraBridgeViewBase to replace the VideoCapture? I'm basically just looking for a simple way to get images from the camera as Mat and I don't want to show them on the screen.

Jiri Valtr gravatar imageJiri Valtr ( 2014-02-22 12:41:31 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2013-06-07 04:15:43 -0500

Seen: 2,035 times

Last updated: Jun 07 '13