Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using both Web Bluetooth API and noble occurs crash in Electron #337

Open
kimurzzoo opened this issue Jul 10, 2024 · 0 comments
Open

Using both Web Bluetooth API and noble occurs crash in Electron #337

kimurzzoo opened this issue Jul 10, 2024 · 0 comments

Comments

@kimurzzoo
Copy link

I'm using noble in main process of Electron, and Web Bluetooth API in renderer process of Electron.
While requesting Web Bluetooth API such as requestDevice with 'select-bluetooth-device', I popped out the dongle and refreshed the window(ex) ctrl + R, window.reload).
And I inserted the dongle again to reconnect the device. But the application crashed.
It can be easily reproduced by doing same sequences.
It doesn't occur when using either Web Bluetooth API or noble.

The crash report says RtlpWaitOnCriticalSection : EXCEPTION_ACCESS_VIOLATION_WRITE / 0x24

electron.exe(electron.exe.pdb)
0x7ff757bb0000 – 0x7ff761dc6000

directmanipulation.dll(directmanipulation.pdb)
0x7ffbdbc50000 – 0x7ffbdbcee000

BthRadioMedia.dll(BthRadioMedia.pdb)
0x7ffbea2d0000 – 0x7ffbea2ef000

KERNELBASE.dll(kernelbase.pdb)
0x7ffbf2630000 – 0x7ffbf2926000

cfgmgr32.dll(cfgmgr32.pdb)
0x7ffbf29e0000 – 0x7ffbf2a2e000

win32u.dll(win32u.pdb)
0x7ffbf2b30000 – 0x7ffbf2b52000

combase.dll(combase.pdb)
0x7ffbf2e50000 – 0x7ffbf31a3000

shcore.dll(shcore.pdb)
0x7ffbf3850000 – 0x7ffbf38fd000

KERNEL32.DLL(kernel32.pdb)
0x7ffbf3d10000 – 0x7ffbf3dcd000

USER32.dll(user32.pdb)
0x7ffbf4590000 – 0x7ffbf472f000

ntdll.dll(ntdll.pdb)
0x7ffbf4db0000 – 0x7ffbf4fa8000

Besides, I don't know why the application cannot communicate with the device by using noble after requesting Web Bluetooth API without refreshing the window even if the device is disconnected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant