HarmonyOS调用 gattClient.off('BLECharacteristicChange') 项目闪退
闪退日志:
1
PID = 30380
UID = 20020128
TID = 30308
App main thread is not response!
mainHandler dump is:
EventHandler dump begin curTime: 2024-05-08 02:48:22.109
Event runner (Thread name = , Thread ID = 30380) is running
Current Running: start at 2024-05-08 02:48:17.958, Event { send thread = 30380, send time = 2024-05-08 02:48:17.958, handle time = 2024-05-08 02:48:17.958, task name = uvLoopTask }
History event queue information:
No. 0 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.848, handle time = 2024-05-08 02:48:17.848, trigger time = 2024-05-08 02:48:17.848, completeTime time = 2024-05-08 02:48:17.849, task name = vSyncTask }
No. 1 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.799, handle time = 2024-05-08 02:48:17.850, trigger time = 2024-05-08 02:48:17.850, completeTime time = 2024-05-08 02:48:17.850, task name = }
No. 2 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.856, handle time = 2024-05-08 02:48:17.856, trigger time = 2024-05-08 02:48:17.856, completeTime time = 2024-05-08 02:48:17.857, task name = vSyncTask }
No. 3 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.807, handle time = 2024-05-08 02:48:17.858, trigger time = 2024-05-08 02:48:17.858, completeTime time = 2024-05-08 02:48:17.858, task name = }
No. 4 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.864, handle time = 2024-05-08 02:48:17.865, trigger time = 2024-05-08 02:48:17.865, completeTime time = 2024-05-08 02:48:17.866, task name = vSyncTask }
No. 5 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.565, handle time = 2024-05-08 02:48:17.865, trigger time = 2024-05-08 02:48:17.866, completeTime time = 2024-05-08 02:48:17.868, task name = uv_timer_task }
No. 6 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.816, handle time = 2024-05-08 02:48:17.867, trigger time = 2024-05-08 02:48:17.868, completeTime time = 2024-05-08 02:48:17.868, task name = }
No. 7 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.871, handle time = 2024-05-08 02:48:17.871, trigger time = 2024-05-08 02:48:17.871, completeTime time = 2024-05-08 02:48:17.872, task name = uvLoopTask }
No. 8 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.873, handle time = 2024-05-08 02:48:17.873, trigger time = 2024-05-08 02:48:17.873, completeTime time = 2024-05-08 02:48:17.874, task name = vSyncTask }
No. 9 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.825, handle time = 2024-05-08 02:48:17.876, trigger time = 2024-05-08 02:48:17.876, completeTime time = 2024-05-08 02:48:17.876, task name = }
No. 10 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.881, handle time = 2024-05-08 02:48:17.881, trigger time = 2024-05-08 02:48:17.881, completeTime time = 2024-05-08 02:48:17.882, task name = vSyncTask }
No. 11 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.833, handle time = 2024-05-08 02:48:17.884, trigger time = 2024-05-08 02:48:17.884, completeTime time = 2024-05-08 02:48:17.884, task name = }
No. 12 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.889, handle time = 2024-05-08 02:48:17.889, trigger time = 2024-05-08 02:48:17.889, completeTime time = 2024-05-08 02:48:17.891, task name = vSyncTask }
No. 13 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.841, handle time = 2024-05-08 02:48:17.892, trigger time = 2024-05-08 02:48:17.893, completeTime time = 2024-05-08 02:48:17.893, task name = }
No. 14 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.898, handle time = 2024-05-08 02:48:17.898, trigger time = 2024-05-08 02:48:17.898, completeTime time = 2024-05-08 02:48:17.899, task name = vSyncTask }
No. 15 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.848, handle time = 2024-05-08 02:48:17.899, trigger time = 2024-05-08 02:48:17.900, completeTime time = 2024-05-08 02:48:17.900, task name = }
No. 16 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.906, handle time = 2024-05-08 02:48:17.906, trigger time = 2024-05-08 02:48:17.906, completeTime time = 2024-05-08 02:48:17.907, task name = vSyncTask }
No. 17 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.857, handle time = 2024-05-08 02:48:17.908, trigger time = 2024-05-08 02:48:17.908, completeTime time = 2024-05-08 02:48:17.908, task name = }
No. 18 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.914, handle time = 2024-05-08 02:48:17.914, trigger time = 2024-05-08 02:48:17.914, completeTime time = 2024-05-08 02:48:17.916, task name = vSyncTask }
No. 19 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.866, handle time = 2024-05-08 02:48:17.917, trigger time = 2024-05-08 02:48:17.918, completeTime time = 2024-05-08 02:48:17.918, task name = }
No. 20 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.918, handle time = 2024-05-08 02:48:17.918, trigger time = 2024-05-08 02:48:17.918, completeTime time = 2024-05-08 02:48:17.919, task name = uvLoopTask }
No. 21 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.923, handle time = 2024-05-08 02:48:17.923, trigger time = 2024-05-08 02:48:17.923, completeTime time = 2024-05-08 02:48:17.924, task name = vSyncTask }
No. 22 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.873, handle time = 2024-05-08 02:48:17.924, trigger time = 2024-05-08 02:48:17.925, completeTime time = 2024-05-08 02:48:17.925, task name = }
No. 23 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.931, handle time = 2024-05-08 02:48:17.931, trigger time = 2024-05-08 02:48:17.931, completeTime time = 2024-05-08 02:48:17.933, task name = vSyncTask }
No. 24 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.882, handle time = 2024-05-08 02:48:17.933, trigger time = 2024-05-08 02:48:17.933, completeTime time = 2024-05-08 02:48:17.933, task name = }
No. 25 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.939, handle time = 2024-05-08 02:48:17.939, trigger time = 2024-05-08 02:48:17.939, completeTime time = 2024-05-08 02:48:17.941, task name = vSyncTask }
No. 26 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.890, handle time = 2024-05-08 02:48:17.941, trigger time = 2024-05-08 02:48:17.942, completeTime time = 2024-05-08 02:48:17.942, task name = }
No. 27 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.948, handle time = 2024-05-08 02:48:17.948, trigger time = 2024-05-08 02:48:17.948, completeTime time = 2024-05-08 02:48:17.949, task name = vSyncTask }
No. 28 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.899, handle time = 2024-05-08 02:48:17.950, trigger time = 2024-05-08 02:48:17.950, completeTime time = 2024-05-08 02:48:17.950, task name = }
No. 29 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.956, handle time = 2024-05-08 02:48:17.956, trigger time = 2024-05-08 02:48:17.956, completeTime time = 2024-05-08 02:48:17.958, task name = vSyncTask }
No. 30 : Event { send thread = 30380, send time = 2024-05-08 02:48:17.907, handle time = 2024-05-08 02:48:17.958, trigger
HarmonyOS
赞
收藏 0
回答 1
待解决
相关问题
HarmonyOS C++ 调用 ets 层函数报错闪退
194浏览 • 1回复 待解决
HarmonyOS 利用BuilderParam将组件传值后,调用方法闪退
224浏览 • 1回复 待解决
HarmonyOS应用闪退问题
829浏览 • 1回复 待解决
HarmonyOS number toFixed方法闪退
153浏览 • 1回复 待解决
HarmonyOS 使用Webview会闪退
146浏览 • 1回复 待解决
HarmonyOS 闪退报错 Error code:2100001
130浏览 • 1回复 待解决
HarmonyOS 使用napi方法返回一个对象,多次调用会闪退
164浏览 • 1回复 待解决
HarmonyOS Native C函数中有多线程交互,用napi调用会闪退
185浏览 • 1回复 待解决
HarmonyOS Promise调用promptAction.showToast会闪退,请问要如何解决
107浏览 • 1回复 待解决
HarmonyOS 分享组件无法正常使用,闪退
157浏览 • 1回复 待解决
HarmonyOS react-native-webview闪退问题
125浏览 • 1回复 待解决
HarmonyOS PixelMap.rotate接口导致闪退
142浏览 • 1回复 待解决
HarmonyOS 连接蓝牙耳机通话,应用闪退
204浏览 • 1回复 待解决
HarmonyOS 申请短时后台任务闪退
153浏览 • 1回复 待解决
HarmonyOS 页面返回时应用闪退报错
793浏览 • 1回复 待解决
HarmonyOS升级后,react-native-svg闪退
136浏览 • 1回复 待解决
HarmonyOS 使用AudioCapturer录音过程中闪退
380浏览 • 1回复 待解决
打开图库应用时偶尔会闪退
2576浏览 • 0回复 待解决
加载FFMpeg后APP出现闪退
345浏览 • 1回复 待解决
HarmonyOS 目前H5代码,调用uniapp.postMessage方法,app闪退
138浏览 • 1回复 待解决
HarmonyOS 主线程耗时任务,app闪退
169浏览 • 1回复 待解决
HarmonyOS 关于CustomDialog使用@Link监听数据闪退问题
160浏览 • 1回复 待解决
鸿蒙js开发 文件交互Api 闪退
6800浏览 • 2回复 待解决
HarmonyOS 跳转应用商店到指定应用方法闪退
171浏览 • 1回复 待解决
HarmonyOS webview加载html string一直闪退
179浏览 • 1回复 待解决
可以参考以下代码:
同时需要开启权限
参考文档:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/js-apis-bluetooth-ble-V5#offblecharacteristicchange