GithubHelp home page GithubHelp logo

无法及时捕获的traces信息 about xcrash HOT 5 CLOSED

iqiyi avatar iqiyi commented on May 9, 2024
无法及时捕获的traces信息

from xcrash.

Comments (5)

zhongxiaofeng avatar zhongxiaofeng commented on May 9, 2024 1

谢谢已经解决,发现是XCrash没有在主线程初始化导致的。

from xcrash.

caikelun avatar caikelun commented on May 9, 2024

能复线的话,还是排除法分析下吧。因素很多:

  • 进程中是否有其他sdk也注册了sigquit
  • art有没有被hook

另外,目前xCrash捕捉ANR的方式(sigaction注册sigquit),对于主线程进入uninterruptible sleep(D)状态的block情况,是捕获不到的。

from xcrash.

zhongxiaofeng avatar zhongxiaofeng commented on May 9, 2024

可能是有其他的SDK捕获ANR干扰。我疑惑的点是捕获ANR会延迟,并不是不能捕获,需要等到第二次ANR的时候才能捕获到

from xcrash.

caikelun avatar caikelun commented on May 9, 2024

因为android framework的ANR处理也是基于sigquit的,信号在进程中都是串行处理的。所以建议不要同时接入多个anr捕获方案,如果要线上灰度对比,建议使用类似设备ID尾号奇偶AB test的方式。(native crash捕获也是类似的情况)

在没有干扰的情况下,目前xCrash的捕获方案,应该是几乎没有延迟的,在系统判定process状态为not responding的时候,xCrash就会保存下anr dump文件的。

from xcrash.

zhongxiaofeng avatar zhongxiaofeng commented on May 9, 2024

谢谢已经解决,发现是XCrash没有在主线程初始化导致的。

from xcrash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.