部分windows上 在调用 await UniversalBle.startScan(); 后发生崩溃
错误模块名称: universal_ble_plugin.dll,版本: 0.0.0.0,时间戳: 0x682d92da 异常代码: 0xc0000005 错误偏移量: 0x000000000000e002 错误进程 ID: 0x2c54 错误应用程序启动时间: 0x01dbca391e7b4f45 错误应用程序路径: C:\Program Files\LabelExpert\labelexpert.exe 错误模块路径: C:\Program Files\LabelExpert\universal_ble_plugin.dll 报告 ID: 1e1052c2-5807-4fa3-b7b1-5ad1e7f7731b 错误程序包全名: 错误程序包相对应用程序 ID:
最早启动程序运行的时候就会报这个错 然后在window上安装了VC++运行时的最新库 后面运行正常了 但是调用startScan又崩溃了
@jiangchengze can you provide some info or share your code to start scanning is example app working fine for you ?
The example app has the same issue. The problematic Windows computer does not have a development environment installed, so no error logs were captured. I can try installing the environment to verify this.
Are you trying to compile app and run it on another computer ? if thats the case, is it working fine in your development computer ?
I have tested this: the compilation and operation work normally on my own computer. However, when other users use it with a Bluetooth adapter plugged in, calling await UniversalBle.startScan(); causes a crash. When the Bluetooth adapter is not plugged in, calling await UniversalBle.startScan(); does not result in a crash. Currently, the version of universal_ble being used is ^0.21.0.
Similar crash was reported for my app: https://github.com/jonasbark/swiftcontrol/issues/70
@jonasbark have you confirmed that your issue happens on startScan()?
@jiangchengze do you have details of the problematic computer? Bluetooth dongle? OS version? We will need that to be able reproduce it. None of our machines has caused a similar issue.
doesn't crash on my virtual machine, so I can't confirm it.