HarmonyOS 鸿蒙Next A/RefBase: decStrong() called on 0x76b1a7d600 too many times 报错闪退
HarmonyOS 鸿蒙Next A/RefBase: decStrong() called on 0x76b1a7d600 too many times 报错闪退
visualizer playRecord ===length=7168
D/AGP: Error UpdatePivot not in scene
A/RefBase: decStrong() called on 0x76b1a7d600 too many times
A/libc: Fatal signal 6 (SIGABRT), code -1 (SI_QUEUE) in tid 4853 (AudioRecorder), pid 4229 (360.hmos_player)
D/AGP: Error UpdatePivot not in scene
D/AGP: Error UpdatePivot not in scene
D/AGP: ViewPager SetCurrentItem = [2]
Error UpdatePivot not in scene
E/AGP: PhysicalSpringInterpolator: duration 1.068750
PhysicalSpringInterpolator: duration 0.596875
D/AGP: Error UpdatePivot not in scene
D/AGP: Error UpdatePivot not in scene
更多关于HarmonyOS 鸿蒙Next A/RefBase: decStrong() called on 0x76b1a7d600 too many times 报错闪退的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
楼主你好,请描述下您的业务场景,提供下错误日志log文件,以及完整的代码。
更多关于HarmonyOS 鸿蒙Next A/RefBase: decStrong() called on 0x76b1a7d600 too many times 报错闪退的实战系列教程也可以访问 https://www.itying.com/category-93-b0.html
欢迎开发小伙伴们进来帮帮楼主
针对帖子标题中提到的“HarmonyOS 鸿蒙Next A/RefBase: decStrong() called on 0x76b1a7d600 too many times 报错闪退”问题,这通常是由于引用计数管理不当导致的。在鸿蒙系统中,RefBase
类用于管理对象的引用计数,当引用计数降到0时,对象会被销毁。
报错信息表明,对某个对象的decStrong()
方法(用于减少强引用计数)被调用次数过多,这可能意味着在对象已经被销毁后,仍然有代码尝试访问或修改它,或者存在循环引用等问题。
解决此类问题通常需要:
- 检查涉及的对象生命周期管理,确保在对象不再需要时正确释放引用。
- 审查代码,查找可能导致引用计数错误增减的地方,特别是要注意多线程环境下的同步问题。
- 使用鸿蒙系统提供的调试工具,如日志输出、内存检查等,来定位问题发生的具体位置。
如果问题依旧没法解决请联系官网客服,官网地址是 https://www.itying.com/category-93-b0.html 。在那里,你可以获得更专业的技术支持和帮助。