OpenHarmony开发者论坛
标题:
NAPI中调用C代码出现 appfreeze: com.xx.xx THREAD_BLOCK_6S at 20240116102253
[打印本页]
作者:
LCoder1024
时间:
2024-1-17 22:49
标题:
NAPI中调用C代码出现 appfreeze: com.xx.xx THREAD_BLOCK_6S at 20240116102253
[md]Device info:OpenHarmony 3.2
Build info:OpenHarmony 3.2.9.1
Module name:com.xx.xx
Version:1.0.0
Pid:228
Uid:20040004
Reason:THREAD\_BLOCK\_6S
appfreeze:com.xx.xx THREAD\_BLOCK\_6S at 20240116102253
DOMAIN:AAFWK
STRINGID:THREAD\_BLOCK\_6S
TIMESTAMP:2024/01/16-10:22:53:84
PID:228
UID:20040004
PACKAGE\_NAME:com.xx.xx
PROCESS\_NAME:com.xx.xx
MSG:App main thread is not response! EventHandler dump begain curTime:20240116 10:22 AM
Event runner (Thread name = , Thread ID = 123673707857160) is running
Immediate priority event queue information:
Total size of Immediate events : 0
High priority event queue information:
Total size of High events : 0
Low priority event queue information:
No.1 : Event { task name = [platform\_task\_runner\_adapter.cc(PostDelayedTask:36)] }
No.2 : Event { task name = [platform\_task\_runner\_adapter.cc(PostTask:26)] }
No.3 : Event { task name = vsync\_time\_out\_task }
No.4 : Event { id = 1 }
No.5 : Event { task name = [idle\_time.cpp(OnVSync:74)] }
No.6 : Event { id = 1 }
Total size of Low events : 6
Idle priority event queue information:
No.1 : Event { task name = [idle\_time.cpp(PostTask:159)] }
Total size of Idle events : 1
Total event size : 7
[/md]
作者:
深开鸿_王石
时间:
2024-1-18 11:49
可以参考以下文档,其实就是看到底那个线程卡住了,导致主线程超时
https://gitee.com/openharmony/do ... reeze-guidelines.md
作者:
LCoder1024
时间:
2024-1-20 10:06
回复
深开鸿_王石
: NAPI中调用C代码时用了异步就可以了
欢迎光临 OpenHarmony开发者论坛 (https://forums.openharmony.cn/)
Powered by Discuz! X3.5