首页 > 其他分享 >ANR

ANR

时间:2024-12-24 14:41:16浏览次数:3  
标签:kernel java user ANR 0% android com

 

 

 E  Could not find class 'android.media.AudioAttributes$Builder', referenced from method com.android.launcher3.common.utils.AudioFocusManager.requestAudioFocus
2024-12-24 14:31:07.289  1041-1041  WindowManager           pid-1041                             E  
                                                                                                    android.view.WindowLeaked: Activity com.android.launcher3.moudle.launcher.view.LauncherActivity has leaked window com.android.internal.policy.impl.PhoneWindow$DecorView{418d6d48 V.E..... R.....I. 0,0-0,0} that was originally added here
                                                                                                        at android.view.ViewRootImpl.<init>(ViewRootImpl.java:349)
                                                                                                        at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:248)
                                                                                                        at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:69)
                                                                                                        at android.app.Dialog.show(Dialog.java:286)
                                                                                                        at com.android.launcher3.common.dialog.AlertDialog$Builder.show(AlertDialog.kt:155)
                                                                                                        at com.android.launcher3.common.dialog.Loading.startDialPregress(Loading.kt:54)
                                                                                                        at com.android.launcher3.moudle.launcher.view.LauncherActivity$installTask.onPreExecute(LauncherActivity.java:663)
                                                                                                        at android.os.AsyncTask.executeOnExecutor(AsyncTask.java:587)
                                                                                                        at android.os.AsyncTask.execute(AsyncTask.java:535)
                                                                                                        at com.android.launcher3.moudle.launcher.view.LauncherActivity.init(LauncherActivity.java:433)
                                                                                                        at com.android.launcher3.moudle.launcher.view.LauncherActivity.initData(LauncherActivity.java:269)
                                                                                                        at com.android.launcher3.common.base.BaseActivity.onCreate(BaseActivity.java:97)
                                                                                                        at com.android.launcher3.common.base.BaseMvpActivity.onCreate(BaseMvpActivity.java:21)
                                                                                                        at android.app.Activity.performCreate(Activity.java:5258)
                                                                                                        at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1099)
                                                                                                        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2228)
                                                                                                        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2337)
                                                                                                        at android.app.ActivityThread.access$800(ActivityThread.java:151)
                                                                                                        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1243)
                                                                                                        at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                                                        at android.os.Looper.loop(Looper.java:136)
                                                                                                        at android.app.ActivityThread.main(ActivityThread.java:5375)
                                                                                                        at java.lang.reflect.Method.invokeNative(Native Method)
                                                                                                        at java.lang.reflect.Method.invoke(Method.java:515)
                                                                                                        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:989)
                                                                                                        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:805)
                                                                                                        at dalvik.system.NativeStart.main(Native Method)
2024-12-24 14:31:07.699   220-288   BufferQueue             pid-220                              E  [com.android.launcher3/com.android.launcher3.moudle.launcher.view.LauncherActivity] connect: already connected (cur=1, req=1)
2024-12-24 14:31:07.739   220-288   BufferQueue             pid-220                              E  [com.android.launcher3/com.android.launcher3.moudle.launcher.view.LauncherActivity] connect: already connected (cur=1, req=1)
2024-12-24 14:32:22.327   854-874   ActivityManager         system_process                       E  ANR in com.android.launcher3
                                                                                                    PID: 1041
                                                                                                    Reason: Broadcast of Intent { act=android.intent.action.SCREEN_ON flg=0x50000010 }
                                                                                                    Load: 2.02 / 1.02 / 0.39
                                                                                                    CPU usage from 0ms to 5152ms later:
                                                                                                      13% 854/system_server: 9.7% user + 3.6% kernel / faults: 4213 minor 101 major
                                                                                                      0.4% 217/debuggerd: 0.2% user + 0.2% kernel / faults: 1819 minor 115 major
                                                                                                      1.5% 945/com.android.phone: 0.5% user + 0.9% kernel / faults: 669 minor 28 major
                                                                                                      1.3% 115/krtccd: 0% user + 1.3% kernel
                                                                                                      1.1% 219/slog: 0% user + 1.1% kernel / faults: 34 minor 2 major
                                                                                                      1.1% 245/adbd: 0.5% user + 0.5% kernel / faults: 2 minor
                                                                                                      1.1% 1053/com.sohu.inputmethod.sogou: 0.9% user + 0.1% kernel / faults: 423 minor 307 major
                                                                                                      0.5% 794/logcat: 0.1% user + 0.3% kernel / faults: 35 minor 5 major
                                                                                                      0.5% 799/logcat: 0% user + 0.5% kernel / faults: 35 minor 5 major
                                                                                                      0.1% 924/com.android.systemui: 0% user + 0% kernel / faults: 138 minor 79 major
                                                                                                      0.3% 25/ksmd: 0.3% user + 0% kernel
                                                                                                      0.3% 39/cfinteractive: 0.3% user + 0% kernel
                                                                                                      0% 160/mmcqd/0: 0% user + 0% kernel
                                                                                                      0% 1014/com.android.settings: 0% user + 0% kernel / faults: 283 minor 128 major
                                                                                                      0% 1088/com.spreadst.validator: 0% user + 0% kernel / faults: 211 minor 79 major
                                                                                                      0% 1094/com.longcos.paycenter.app: 0% user + 0% kernel / faults: 207 minor 50 major
                                                                                                      0% 1108/com.longcos.wechatkids.authorize: 0% user + 0% kernel / faults: 207 minor 84 major
                                                                                                      0% 3/ksoftirqd/0: 0% user + 0% kernel
                                                                                                      0.1% 7/rcu_preempt: 0.1% user + 0% kernel
                                                                                                      0.1% 158/kworker/u4:3: 0% user + 0.1% kernel
                                                                                                      0% 220/surfaceflinger: 0% user + 0% kernel / faults: 22 minor 22 major
                                                                                                      0.1% 1041/com.android.launcher3: 0% user + 0.1% kernel / faults: 86 minor 65 major
                                                                                                    20% TOTAL: 9.4% user + 9.8% kernel + 0.8% iowait + 0.2% softirq
                                                                                                    CPU usage from 4615ms to 5132ms later:
                                                                                                      3.8% 854/system_server: 0% user + 3.8% kernel / faults: 1 minor
                                                                                                        3.8% 874/ActivityManager: 0% user + 3.8% kernel
                                                                                                    1.9% TOTAL: 0.9% user + 0.9% kernel

 

标签:kernel,java,user,ANR,0%,android,com
From: https://www.cnblogs.com/pengmn/p/18627419

相关文章

  • 强化学习SQL算法(soft q leanring)中的squash_correction是否存疑?
    SQL算法的官方实现地址:https://openi.pcl.ac.cn/devilmaycry812839668/softlearning提两个问题:SQL算法的原始论文中在计算Qlossfunction的时候建议使用重要性采样,而实际代码中却使用的是均匀采样,同时也没有采样重要性采样的方法进行修正,而原始论文中在这一步的推导公式......
  • 强化学习:人形机器人 —— soft-q-leanring的官方实现的配置环境
    项目源码地址:https://github.com/rail-berkeley/softlearningmujoco版本为200,地址:https://www.roboti.us/download.htmlpython版本3.8具体配置环境如下:(softlearning)root@I1e4c53bdf900b01340:~/softlearning#piplistPackageVersionLo......
  • Android14 屏蔽ANR和Crash弹窗
    前言Android系统在应用发生Crash/ANR的时候,总会弹出一个提示对话框,但是现在部分客户不想要这样的对话框,要求移除一、ApplicationCrash表现:程序崩溃或闪退,界面上通常会出现“应用已停止运行”的提示。常见原因(Java异常):错误类型详细描述NullPointerException尝试在需要......
  • Android13 屏蔽ANR和Crash弹窗
    前言Android系统在应用发生Crash/ANR的时候,总会弹出一个提示对话框,但是现在部分客户不想要这样的对话框,要求移除一、ApplicationCrash表现:程序崩溃或闪退,界面上通常会出现“应用已停止运行”的提示。常见原因(Java异常):错误类型详细描述NullPointerException尝试在需要......
  • Anrdoir 13 关于设置静态IP后,突然断电,在上电开机卡动画
    bug描述:设置静态IP成功后,机器突然断电,然后在上电开机,发现机器一直卡在开机动画,无法成功进入桌面第一时间抓取日志分析,Log如下:08-1311:26:42.45528032803IEthernetServiceImpl:StartingEthernetservice08-1311:26:42.45728032924DConnectivityService:......
  • Android Camera close异常导致app的input ANR案例分析
    1.背景在日常的项目开发过程中,经常会收到用户或者测试同仁报过来的ANR(ApplicationNotResponse)的问题,本文结合作者的日常工作中遇到的典型案例,分享ANR的分析过程。ANR(‌ApplicationNotResponding)‌主要分为以下几种类型:‌Inputdispatchingtimedout:‌当输入事件(......
  • 《yanr 的安装与配置全攻略》
    在软件开发和技术领域,yanr 作为一款强大的工具,能够为我们带来诸多便利。本文将详细介绍 yanr 的安装与配置步骤,帮助您快速上手并充分发挥其优势。一、yanr 简介Yarn(YetAnotherResourceNegotiator)是一种新的JavaScript包管理工具,具有速度快、离线模式、确定性、多注......
  • Anroid 11 关于NotificationManager && NotificationManagerService
    frameworks/base/core/java/android/app/NotificationManager.java几个比较重要的函数://移除mContext.getUser发送的通知publicvoidcancel(@NullableStringtag,intid){cancelAsUser(tag,id,mContext.getUser());}//移除所有通知publicvoidcanc......
  • ANR问题分析总结
    前言ANR(ApplicationNotResponding)应用程序无响应。如果你应用程序在UI线程被阻塞太长时间,就会出现ANR,通常出现ANR,系统会弹出一个提示提示框,让用户知道,该程序正在被阻塞,是否继续等待还是关闭。ANR类型出现ANR的一般有以下几种类型:类型说明logcat日志关键字KeyDis......
  • 高性能、低功耗 基于8位AVR®RISC的ATMEGA328PB-MUR、ATMEGA328PB-ANR、ATMEGA328PB-A
    1、说明ATMEGA328PB是一款高性能、低功耗、基于8位AVR®RISC的微控制器,集成了具有读写功能的64kBISP闪存、2kBEEPROM、4kBSRAM、27条通用I/O线、32个通用工作寄存器、两个具有比较模式和PWM的灵活定时器/计数器、一个具有硬件Lin的UART、一个具有两个差分可编程增益输入级......