当前位置:网站首页>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
边栏推荐
猜你喜欢

Leetcode 36. Effective Sudoku (yes, once)

2022 tea master (intermediate) examination simulated 100 questions and simulated examination

如何使用 DataAnt 监控 Apache APISIX

with torch.no_grad():的使用原因

Shell reads the value of the JSON file

with torch. no_ Grad(): reason for using
![[graduation season · advanced technology Er] hard work can only pass, hard work can be excellent!](/img/e5/b6035abfa7d4bb59c3080d3b87ce45.jpg)
[graduation season · advanced technology Er] hard work can only pass, hard work can be excellent!

Analysis of variance

2022 welder (elementary) special operation certificate examination question bank and answers

ref属性,props配置,mixin混入,插件,scoped样式
随机推荐
Can layoffs really save China's Internet?
员工薪资管理系统
mysql-发生系统错误1067
Comparisonchain file name sort
Leetcode 36. Effective Sudoku (yes, once)
ANR问题--相机相关的debug
LeetCode每日一题——324. 摆动排序 II
2. integrate filter
List of domestic database directory
How to analyze the relationship between enterprise digital transformation and data asset management?
题解 The SetStack Computer(UVa12096)紫书P116STL的综合应用
管道 | 与重定向 >
酷学院华少:如何在SaaS赛道里做成一家头部公司
grep文本搜索工具
Win 10 create a gin framework project
UESTC (shenhengtao team) & JD AI (Mei Tao team) proposed a structured dual stream attention network for video Q & A, with performance SOTA! Better than the method based on dual video representation
wc命令的使用
怎么理解云原生数据库的易用性?
数据资产为王,如何解析企业数字化转型与数据资产管理的关系?
Tcwind mode setting