A / libc Fatal signal 11 (SIGSEGV) at 0xd2044d4c (code = 1), stream 5786 (FinalizerDaemon) error when calling setPreviewCallback

I have this particular issue where my application sometimes crashes with a SIGSEGV error in my camera module. Using the Camera.PreviewCallback implementation, the onPreviewFrame method gets called around 8-10 times before it crashed with a log trace like below:

07-22 12:37:34.981    5777-5777/com.example.surveyapp V/surfaceChanged﹕ entered
07-22 12:37:37.834    5777-5777/com.example.surveyapp V/surfaceChanged﹕ entered

07-22 12:37:40.056    5777-5777/com.example.surveyapp D/ProgressBar﹕ updateDrawableBounds: left = 0
07-22 12:37:40.056    5777-5777/com.example.surveyapp D/ProgressBar﹕ updateDrawableBounds: top = 0
07-22 12:37:40.056    5777-5777/com.example.surveyapp D/ProgressBar﹕ updateDrawableBounds: right = 64
07-22 12:37:40.056    5777-5777/com.example.surveyapp D/ProgressBar﹕ updateDrawableBounds: bottom = 64
07-22 12:37:40.126    5777-5777/com.example.surveyapp E/MainActivity﹕ onPreviewFrame
07-22 12:37:40.227    5777-5777/com.example.surveyapp E/MainActivity﹕ onPreviewFrame
07-22 12:37:40.387    5777-6254/com.example.surveyapp D/dalvikvm﹕ **GC_FOR_ALLOC freed 4059K, 28% free 12685K/17596K, paused 37ms, total 37ms**
07-22 12:37:40.387    5777-5777/com.example.surveyapp E/MainActivity﹕ onPreviewFrame
07-22 12:37:40.467    5777-5777/com.example.surveyapp E/MainActivity﹕ onPreviewFrame
07-22 12:37:40.647    5777-5788/com.example.surveyapp D/dalvikvm﹕ **GC_FOR_ALLOC freed 1364K, 31% free 12223K/17596K, paused 53ms, total 53ms**
07-22 12:37:40.647    5777-5786/com.example.surveyapp A/libc﹕ **Fatal signal 11 (SIGSEGV) at 0xd2044d4c (code=1), thread 5786 (FinalizerDaemon)**

      

This behavior doesn't happen all the time, but whenever I log in from my app and go to this camera module this error occurs. If I directly enter the camera module from my DashBoard page, this error does not occur or if I run this camera as a standalone application no error occurs.

Note: I am also using native C code for the purpose of encryption in this application

+3


source to share





All Articles