Git Product home page Git Product logo

Comments (5)

haowenwu avatar haowenwu commented on July 17, 2024 2

这个问题在一些大型app里会频繁出现
debug 下会 assert 掉 正式包泄漏
具体的 @hello-david 会跟进了

from mthawkeye.

hello-david avatar hello-david commented on July 17, 2024

上面描述信息是报告了一个NSInternalInconsistencyException异常,导致这个问题的原因是记录长度太长导致的。在MTHawkeyeStorage模块有这段逻辑#ifdef DEBUG NSAssert(lineLength < 16 * 1024, @"line lenght should less than 16KB"); #endif,测试流程建议看一下TimeConsumingDemoTableViewController这个Demo中的卡顿/卡死模拟。

from mthawkeye.

euanchan avatar euanchan commented on July 17, 2024

目前记录anr堆栈时,直接使用了 appenderfile 来记录,但 appenderfile 限制了最长的单条记录长度。
可以看下具体触发的实例,对比下现实中遇到的概率,如果有一定概率重现,可考虑将单条记录以一定的方式拆成多行存储,同时调整对应的读取逻辑

from mthawkeye.

guesspalm avatar guesspalm commented on July 17, 2024

谢谢回复

from mthawkeye.

hello-david avatar hello-david commented on July 17, 2024

MTHANRHawkeyeAdaptor部分新增ANR消息大于16kb情况处理,在Debug模式下不会触发相应的断言

from mthawkeye.

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.