universal_ble icon indicating copy to clipboard operation
universal_ble copied to clipboard

部分windows上 在调用 await UniversalBle.startScan(); 后发生崩溃

Open jiangchengze opened this issue 7 months ago • 8 comments

错误模块名称: 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:

jiangchengze avatar May 21 '25 10:05 jiangchengze

最早启动程序运行的时候就会报这个错 然后在window上安装了VC++运行时的最新库 后面运行正常了 但是调用startScan又崩溃了

jiangchengze avatar May 21 '25 10:05 jiangchengze

@jiangchengze can you provide some info or share your code to start scanning is example app working fine for you ?

rohitsangwan01 avatar May 26 '25 03:05 rohitsangwan01

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.

jiangchengze avatar May 26 '25 06:05 jiangchengze

Are you trying to compile app and run it on another computer ? if thats the case, is it working fine in your development computer ?

rohitsangwan01 avatar May 26 '25 09:05 rohitsangwan01

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.

jiangchengze avatar Sep 02 '25 03:09 jiangchengze

Similar crash was reported for my app: https://github.com/jonasbark/swiftcontrol/issues/70

jonasbark avatar Sep 16 '25 11:09 jonasbark

@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.

fotiDim avatar Oct 03 '25 18:10 fotiDim

doesn't crash on my virtual machine, so I can't confirm it.

jonasbark avatar Nov 15 '25 10:11 jonasbark