NAPI中调用C代码出现 appfreeze: com.xx.xx THREAD_BLOCK_6S at 20240116102253

LCoder1024 显示全部楼层 发表于 2024-1-17 22:49:52

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

您尚未登录,无法参与评论,登录后可以:
参与开源共建问题交流
认同或收藏高质量问答
获取积分成为开源共建先驱

精彩评论2

深开鸿_王石

沙发 发表于 2024-1-18 11:49:17
可以参考以下文档,其实就是看到底那个线程卡住了,导致主线程超时
https://gitee.com/openharmony/do ... reeze-guidelines.md

LCoder1024

发表于 2024-1-20 10:06  IP属地: 陕西省西安市

回复 深开鸿_王石: NAPI中调用C代码时用了异步就可以了

【1 条回复】

Copyright   ©2023  OpenHarmony开发者论坛  京ICP备2020036654号-3 |技术支持 Discuz!

返回顶部