调用setPreviewCallback时,A / libc致命信号11(SIGSEGV)位于0xd2044d4c(代码= 1),线程5786(FinalizerDaemon)错误

时间:2015-07-22 07:48:21

标签: android c camera video-streaming native

我有这个奇怪的问题,偶尔我的相机模块中我的应用程序会出现SIGSEGV错误。使用Camera.PreviewCallback实现, onPreviewFrame 方法会在 8-10 次之前被调用,之后会被日志跟踪崩溃,如下所示:

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)**

此行为不会一直发生,但每当我从我的应用程序登录并进入此相机模块时,就会发生此错误。如果我直接从我的DashBoard页面输入相机模块,则不会发生此错误或如果我运行此相机模块作为独立应用程序不会发生错误。

注意:我也在本应用程序中使用本机C代码进行加密

0 个答案:

没有答案