Error: [JS Framework] Failed to receiveTasks, instance (5) is not available.
10:18:27.684 Error: [JS Framework] Failed to receiveTasks, instance (13) is not available.
10:18:27.716 Error: [JS Framework] Failed to receiveTasks, instance (1) is not available.
10:18:27.746 Error: [JS Framework] Failed to receiveTasks, instance (2) is not available.
10:18:27.777 Error: [JS Framework] Failed to receiveTasks, instance (2) is not available.
10:18:27.809 Error: [JS Framework] Failed to receiveTasks, instance (14) is not available.
10:18:27.840 Error: [JS Framework] Failed to receiveTasks, instance (17) is not available.
10:18:27.871 Error: [JS Framework] Failed to receiveTasks, instance (3) is not available.
10:18:27.904 Error: [JS Framework] Failed to receiveTasks, instance (4) is not available.
这什么情况呀
3 个回复
i***@hotmail.com
据说是刚写完代码就跑会这样,关了hbuilder重新跑就好了。
实测可行
zhiye1994
我代码热更新,就会出现这个,后面用仿照串口插件用UTS插件写了这个,也会出现这个报错,解决思路:热更新后会进入页面生命周期onLaunch,在这里面进行对串口关闭,就不出现了,可能是因为Fvv-UniSerialPort 中SerialPortHelper是个单例对象,热更新后没有销毁,
1***@qq.com
这个问题后来有处理吗?觉得是在打开串口时,之前打开的串口没有正常关闭,又重新打开就会出现这个问题