New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xcrash_sample在5.0以上的机型 ANR 不走callback #34
Comments
anr时的 .anr.xcrash 文件能生成吗? |
没有修改过的代码 直接使用xcrash_sample工程的
目前用的机型是华为手机 型号 HUAWEI NXT-AL10 Android版本8.0
…------------------ 原始邮件 ------------------
发件人: "195936478"<notifications@github.com>;
发送时间: 2020年2月25日(星期二) 下午2:50
收件人: "iqiyi/xCrash"<xCrash@noreply.github.com>;
抄送: "苏俊雄"<792392444@qq.com>;"State change"<state_change@noreply.github.com>;
主题: Re: [iqiyi/xCrash] xcrash_sample在5.0以上的机型 ANR 不走callback (#34)
anr时的 .anr.xcrash 文件能生成吗?
是否直接使用 xcrash_sample 工程测试的?如果修改过,请贴出初始化代码。
请说明具体的测试机型、厂家、OS版本。
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
anr时,是否有生成 .anr.xcrash 或者 .trace.xcrash 文件? |
这两个文件在xcrash文件目录下吗 没有找到这两个文件
…------------------ 原始邮件 ------------------
发件人: "195936478"<notifications@github.com>;
发送时间: 2020年2月25日(星期二) 下午2:58
收件人: "iqiyi/xCrash"<xCrash@noreply.github.com>;
抄送: "苏俊雄"<792392444@qq.com>;"State change"<state_change@noreply.github.com>;
主题: Re: [iqiyi/xCrash] xcrash_sample在5.0以上的机型 ANR 不走callback (#34)
anr时,是否有生成 .anr.xcrash 或者 .trace.xcrash 文件?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
咱们保存文件的路径代码在哪里呢 可以跟我说下 我去那边打断点 看会不会执行到
…------------------ 原始邮件 ------------------
发件人: "195936478"<notifications@github.com>;
发送时间: 2020年2月25日(星期二) 下午2:58
收件人: "iqiyi/xCrash"<xCrash@noreply.github.com>;
抄送: "苏俊雄"<792392444@qq.com>;"State change"<state_change@noreply.github.com>;
主题: Re: [iqiyi/xCrash] xcrash_sample在5.0以上的机型 ANR 不走callback (#34)
anr时,是否有生成 .anr.xcrash 或者 .trace.xcrash 文件?
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
|
|
断点这两个变量用到的地方 ANR的时候 没有抓到
static final String anrLogSuffix = ".anr.xcrash";
static final String traceLogSuffix = ".trace.xcrash";
…------------------ 原始邮件 ------------------
发件人: "195936478"<notifications@github.com>;
发送时间: 2020年2月25日(星期二) 下午3:12
收件人: "iqiyi/xCrash"<xCrash@noreply.github.com>;
抄送: "苏俊雄"<792392444@qq.com>;"State change"<state_change@noreply.github.com>;
主题: Re: [iqiyi/xCrash] xcrash_sample在5.0以上的机型 ANR 不走callback (#34)
https://github.com/iqiyi/xCrash/blob/e2773d34f133467e055539e86b555360401d867c/src/java/xcrash/xcrash_lib/src/main/java/xcrash/XCrash.java#L109
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
解决了吗? |
你好 adb有找到trace 然后导的出来并且可以查到anr内容 |
@Sue-moonlight 是否编译了so库?xcrash需要先编译so库的。 |
so有编译并且替换旧版本 如果没编译的话 应该是其他闪退日志都会不走这个回调吧 |
xcrash需要在主线程初始化,否则会捕获不到android 5.0以上的anr。。不知道是不是踩了这个坑? |
检查了下 初始化是在主线程的 Application onAsyncCreate,5,main |
请按照readme和sample app的方式,在Application attachBaseContext中同步的初始化xcrash |
我刚才直接下载demo 跑了下xcrash_sample, 点击native crash 跟ANR 都没有打印出来日志 |
先确认so库按照readme描述编译了吗?apk中包含so库吗?还是不行话,建议自己加些log和断点调试一下。 |
你好 我重新编译了so就OK了 谢谢 |
4.x的机型是OK的 会走callback
5.x以上(我用的是8.0)不走callback anr时locat打出来日志
/xcrash.sample I/zygote64: Thread[3,tid=6022,WaitingInMainSignalCatcherLoop,Thread*=0x707d45ca00,peer=0x16702970,"Signal Catcher"]: reacting to signal 3
/xcrash.sample I/zygote64: Wrote stack traces to '/data/anr/traces.txt'
The text was updated successfully, but these errors were encountered: