New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 779632 link

Starred by 2 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug



Sign in to add a comment

USB Bluetooth adapters causing disconnect

Reported by nallre...@gmail.com, Oct 30 2017

Issue description

Chrome Version       : 62.0.3202.75
Mac OS 10.12.6 (16G29)

What steps will reproduce the problem?
(1) Connect a device using window.navigator.requestDevice
(2) Set listener on 'ongattserverdisconnected'
(3) Plug in a USB Bluetooth adapter
(4) Wait a few seconds
(5) Unplug USB Bluetooth adapter
(6) Notice that your 'ongattserverdisconnected' has been called.

What is the expected result?
I would expect my device to remain connected.

What happens instead?
My device is disconnected

Please provide any additional information below. Attach a screenshot if
possible.

In my setup, I set the color of my device when it connects.  In this case, when the 'ongattserverdisconnected' is called and I can clearly see that device.gatt.connected is false, my device remains the color that I set it to.  The device only goes back to its original state when I refresh the window.  This seems to indicate that a connection is still open with the device, even though in the javascript it appears to be disconnected.

I've also noticed this similar behavior:
(1) Load web page
(2) Insert USB Bluetooth adapter
(3) Call window.navigator.requestDevice, then call device.connect()
(4) Notice that device.connect() never resolves.

Seems like plugging in/unplugging a USB Bluetooth adapter causes all sorts of issues.  Let me know if you need any logs.

 
Cc: shrike@chromium.org
Labels: Needs-Triage-M62 OS-Mac
Status: Available (was: Unconfirmed)
fwiw: This is because we assume all events are from the same adapter[1]. We should either ignore events from other adapters or refactor our code to handle multiple adapters.

[1] https://cs.chromium.org/chromium/src/device/bluetooth/bluetooth_low_energy_central_manager_delegate.mm?type=cs&q=DidDisconnectPeripheral&sq=package:chromium&l=100
Project Member

Comment 4 by sheriffbot@chromium.org, Nov 2

Labels: Hotlist-Recharge-Cold
Status: Untriaged (was: Available)
This issue has been Available for over a year. If it's no longer important or seems unlikely to be fixed, please consider closing it out. If it is important, please re-triage the issue.

Sorry for the inconvenience if the bug really should have been left as Available.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
Status: Available (was: Untriaged)

Sign in to add a comment