ANR with blocked HeapTaskDaemon thread

前端 未结 3 531
暖寄归人
暖寄归人 2021-02-02 05:13

I get an ANR-error in my Android app. The trace shows only one thread in blocked state (all the others are in state waiting, sleeping, native,..), so it doesn\'t seem to be in d

3条回答
  •  醉酒成梦
    2021-02-02 05:59

    Seems like your SurfaceView is locking thread with ReentrantLock, but possibly having a problem initialising after setting WaitLock, and the ReentrantLock stays locked by SurfaceView, this is causing your Thread blocked usually know as Jank.

    You sholud try debugging issue yourself, use Systrace to find what is causing Jank, also enable GPU rendering and Paste Systrace data here so that i can review, and provide any solution if possible.

提交回复
热议问题