当前位置:网站首页>Anr problem - camera related debug
Anr problem - camera related debug
2022-06-28 20:31:00 【Professional developer】
Generally speaking ,ANR Related issues , Need to combine ANR Occurs when trace file ( It can be downloaded from /data/anr Obtained under directory ), analysis logcat Of log. Here are two camera related ANR Examples of problem analysis .
problem 1:
【 Problem description 】stopPreview Get stuck , Lead to ANR
from logcat log You can see 'stopPreview(): E' Not followed 'stopPreview(): X' Led to ANR
Happen :
01-03 01:55:49.724 8466 8476 D QCamera2HWI: int qcamera::
QCamera2HardwareInterface::stopPreview(): E
01-03 01:57:34.894 1431 1450 E ActivityManager: ANR in com.android.camera (
com.android.camera/.CameraActivity)
Let's check trace file . Usually camera related ANR, We will first check mediaserver Of call stack
. stay trace Search for 'camera' See if there is anything suspicious . We found that stopPreview
Is when the card is waiting for a thread to end :
"Binder_2" sysTid=8476
#00 pc 0000f9b8 /system/lib/libc.so (syscall+28)
#01 pc 000138b3 /system/lib/libc.so (pthread_join+90)
#02 pc 00029e1b /system/lib/hw/camera.msm8916.so (qcamera::QCameraCmdThread::exit()+46)
#03
边栏推荐
- Lucene构建索引的原理及源代码分析
- Can layoffs really save China's Internet?
- Résumé de la stabilité
- 关键字long
- Fix the simulator that cannot be selected by flutter once
- Learning Tai Chi Maker - mqtt Chapter II (VII) esp8266 mqtt Testament application
- 稳定性总结
- 方 差 分 析
- LeetCode每日一题——30. 串联所有单词的子串
- QSP read label configuration error
猜你喜欢

学习太极创客 — MQTT 第二章(八)ESP8266 MQTT 用户密码认证

with torch. no_ Grad(): reason for using

【Try to Hack】Cobalt Strike(一)

28 rounds of interviews with 10 companies in two and a half years

Are you still paying for your thesis? Come and join me

Lucene构建索引的原理及源代码分析

bluecmsv1.6代码审计
oracle delete误删除表数据后如何恢复

方 差 分 析

学习太极创客 — MQTT 第二章(七)ESP8266 MQTT 遗嘱应用
随机推荐
Compression and decompression commands
2022 welder (elementary) special operation certificate examination question bank and answers
Use of WC command
数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
Various types of long
Server configuration estimation of core IOT Bluetooth AOA positioning system
Employee salary management system
28 rounds of interviews with 10 companies in two and a half years
Keyword long
Pyinstaller打包pikepdf失败的问题排查
A few lines of code can realize complex excel import and export. This tool class is really powerful!
API 网关 Apache APISIX 助力雪球双活架构演进
理解整个网络模型的构建
On the complexity of software development and the way to improve its efficiency
[learning notes] Introduction to principal component analysis
关键字long
Win 10 create a gin framework project
CSDN salary increase technology selenium automated test stack summary
稳定性总结
大智慧上怎么进行开户啊, 安全吗