AnyChat技术支持论坛

标题: 销毁视频后,再次初始化,如此重复多次后,会退出。 [打印本页]

作者: whkf    时间: 2014-7-1 15:05
标题: 销毁视频后,再次初始化,如此重复多次后,会退出。
如题,在程序里多次调用 AnyChatCoreSDK.mCameraHelper.surfaceDestroyed(myView.getHolder()) 后,再次初始化,反复多次后会出现闪退的情况。
麻烦帮看下是什么原因,日志附上。
07-01 14:52:57.224: D/CameraHal_Mem(120): createJpegBuffer(330): Jpeg buffer information(phy:0x91800000 vir:0x42c19000 size:0x300000)
07-01 14:52:57.224: D/CameraHal_Mem(120): createRawBuffer(294): Raw buffer information(phy:0x91b00000 vir:0x431e7000 size:0x2c0000)
07-01 14:52:57.224: D/CameraHal(120): previewThread(1841): camera driver is stream off, so preview thread wait for command thread wake...
07-01 14:52:57.224: D/CameraHal(120): CameraHal create success!
07-01 14:52:57.254: I/DEBUG(108):     r0 00000027  r1 deadbaad  r2 40120258  r3 00000000
07-01 14:52:57.254: I/DEBUG(108):     r4 00000000  r5 6b8939b4  r6 000001e0  r7 32315659
07-01 14:52:57.254: I/DEBUG(108):     r8 6465d8bd  r9 00100000  sl 00000000  fp 00000016
07-01 14:52:57.254: I/DEBUG(108):     ip 40137e78  sp 6b8939b0  lr 400f3089  pc 400ef722  cpsr 60000030
07-01 14:52:57.254: I/DEBUG(108):     d0  432038383a707063  d1  614e6d284b434548
07-01 14:52:57.254: I/DEBUG(108):     d2  646e695765766974  d3  554e203d2120776f
07-01 14:52:57.254: I/DEBUG(108):     d4  43340000434d0000  d5  3f80000000000000
07-01 14:52:57.254: I/DEBUG(108):     d6  3f80000000000000  d7  00ee9f803f800000
07-01 14:52:57.254: I/DEBUG(108):     d8  0000000000000000  d9  00000000428a0000
07-01 14:52:57.254: I/DEBUG(108):     d10 0000000000000000  d11 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d12 0000000000000000  d13 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d14 0000000000000000  d15 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d16 0000000000000001  d17 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d18 0000000000000000  d19 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d20 0000000000000000  d21 3fe8a3d700000000
07-01 14:52:57.254: I/DEBUG(108):     d22 0000000000000000  d23 3fe8a3d700000000
07-01 14:52:57.254: I/DEBUG(108):     d24 3ff0000000000000  d25 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d26 0000000000000000  d27 0000000000000000
07-01 14:52:57.254: I/DEBUG(108):     d28 0000000000000000  d29 3ff0000000000000
07-01 14:52:57.254: I/DEBUG(108):     d30 3ff0000000000000  d31 3ff0000000000000
07-01 14:52:57.254: I/DEBUG(108):     scr 6000001f
07-01 14:52:57.254: I/DEBUG(108): backtrace:
07-01 14:52:57.254: I/DEBUG(108):     #00  pc 0001a722  /system/lib/libc.so
07-01 14:52:57.254: I/DEBUG(108):     #01  pc 00018798  /system/lib/libc.so (abort+4)
07-01 14:52:57.254: I/DEBUG(108):     #02  pc 00003df9  /system/lib/libcutils.so (__android_log_assert+88)
07-01 14:52:57.254: I/DEBUG(108):     #03  pc 00004f57  /data/app-lib/com.vanhong.question-2/libmediashow_4.0.so (android::SoftwareRenderer::SoftwareRenderer(android::sp<ANativeWindow> const&, android::sp<android::MetaData> const&)+94)
07-01 14:52:57.254: I/DEBUG(108):     #04  pc 0000422f  /data/app-lib/com.vanhong.question-2/libmediashow_4.0.so (CVideoShowSurface::InitVideoShow(void*)+294)
07-01 14:52:57.254: I/DEBUG(108):     #05  pc 0000391f  /data/app-lib/com.vanhong.question-2/libmediashow_4.0.so (MediaShowServiceThread(void*)+98)
07-01 14:52:57.254: I/DEBUG(108):     #06  pc 0000e3d8  /system/lib/libc.so (__thread_entry+72)
07-01 14:52:57.254: I/DEBUG(108):     #07  pc 0000dac4  /system/lib/libc.so (pthread_create+160)
07-01 14:52:57.254: I/DEBUG(108): stack:
07-01 14:52:57.254: I/DEBUG(108):          6b893970  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b893974  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b893978  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b89397c  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b893980  00004000  
07-01 14:52:57.254: I/DEBUG(108):          6b893984  6b893a2f  
07-01 14:52:57.254: I/DEBUG(108):          6b893988  4011d254  /system/lib/libc.so
07-01 14:52:57.254: I/DEBUG(108):          6b89398c  4011d1b4  /system/lib/libc.so
07-01 14:52:57.254: I/DEBUG(108):          6b893990  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b893994  400f3089  /system/lib/libc.so (_fwalk+32)
07-01 14:52:57.254: I/DEBUG(108):          6b893998  00000001  
07-01 14:52:57.254: I/DEBUG(108):          6b89399c  6b8939b4  
07-01 14:52:57.254: I/DEBUG(108):          6b8939a0  000001e0  
07-01 14:52:57.254: I/DEBUG(108):          6b8939a4  32315659  
07-01 14:52:57.254: I/DEBUG(108):          6b8939a8  df0027ad  
07-01 14:52:57.254: I/DEBUG(108):          6b8939ac  00000000  
07-01 14:52:57.254: I/DEBUG(108):     #00  6b8939b0  00000000  
07-01 14:52:57.254: I/DEBUG(108):          6b8939b4  fffffbdf  
07-01 14:52:57.254: I/DEBUG(108):          6b8939b8  6b8939b4  
07-01 14:52:57.254: I/DEBUG(108):          6b8939bc  00000001  
07-01 14:52:57.254: I/DEBUG(108):          6b8939c0  646626d7  /data/app-lib/com.vanhong.question-2/libmediashow_4.0.so
07-01 14:52:57.254: I/DEBUG(108):          6b8939c4  00000011  
07-01 14:52:57.254: I/DEBUG(108):          6b8939c8  6b8939e4  
07-01 14:52:57.254: I/DEBUG(108):          6b8939cc  646626d7  /data/app-lib/com.vanhong.question-2/libmediashow_4.0.so
07-01 14:52:57.254: I/DEBUG(108):          6b8939d0  67aa1748  
07-01 14:52:57.254: I/DEBUG(108):          6b8939d4  400ed79c  /system/lib/libc.so (__pthread_clone)
07-01 14:52:57.254: I/DEBUG(108):     #01  6b8939d8  4012da5d  /system/lib/libcutils.so
07-01 14:52:57.254: I/DEBUG(108):          6b8939dc  4012ddfd  /system/lib/libcutils.so (__android_log_assert+92)
07-01 14:52:57.254: I/DEBUG(108):     #02  6b8939e0  6b893df4  
07-01 14:52:57.254: I/DEBUG(108):          6b8939e4  2f696e6a  
07-01 14:52:57.254: I/DEBUG(108):          6b8939e8  6a2f2e2e  /dev/mali
07-01 14:52:57.254: I/DEBUG(108):          6b8939ec  342f696e  
07-01 14:52:57.254: I/DEBUG(108):          6b8939f0  532f302e  /dev/ashmem/dalvik-heap (deleted)
07-01 14:52:57.254: I/DEBUG(108):          6b8939f4  7774666f  
07-01 14:52:57.254: I/DEBUG(108):          6b8939f8  52657261  /dev/ashmem/dalvik-heap (deleted)
07-01 14:52:57.254: I/DEBUG(108):          6b8939fc  65646e65  /system/usr/icu/icudt48l.dat
07-01 14:52:57.254: I/DEBUG(108):          6b893a00  2e726572  
07-01 14:52:57.254: I/DEBUG(108):          6b893a04  3a707063  
07-01 14:52:57.254: I/DEBUG(108):          6b893a08  43203838  /dev/ashmem/dalvik-heap (deleted)
07-01 14:52:57.254: I/DEBUG(108):          6b893a0c  4b434548  /dev/ashmem/dalvik-heap (deleted)
07-01 14:52:57.254: I/DEBUG(108):          6b893a10  614e6d28  /dev/ashmem/dalvik-mark-stack (deleted)
07-01 14:52:57.254: I/DEBUG(108):          6b893a14  65766974  
07-01 14:52:57.264: I/DEBUG(108):          6b893a18  646e6957  [url=]/data/dalvik-cache/system@framework@services.jar@classes.dex[/url]
0

AndroidLog.rar

6.34 KB, 下载次数: 0

BRAnyChatCore.rar

3.92 KB, 下载次数: 1


作者: 廖斌    时间: 2014-7-1 15:14
您好,用标准的demo可以吗?看您报的错,你应该使用的是内核显示模式,建议您用Java采集和显示模式看看,参考最新的demo源码




欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) Powered by Discuz! X3