New issue
Advanced search Search tips

Issue 654687 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner: ----
Closed: Oct 2016
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 3
Type: Bug

Blocking:
issue 520774



Sign in to add a comment

bluetooth: "GATT Service no longer exists." error after disconnect/connect

Project Member Reported by fbeaufort@chromium.org, Oct 11 2016

Issue description

Google Chrome	56.0.2886.0 (Official Build) canary (64-bit)
Revision	aa3f2f3a48ffd2ac9ea7585f6a2ae1399f360532-refs/heads/master@{#424099}
OS	Mac OS X 


What steps will reproduce the problem?
(1) Go to https://elements.polymer-project.org/elements/platinum-bluetooth?view=demo:demo/index.html&active=platinum-bluetooth-device
(2) Click "Reset Energy Expended" button and pick Device that advertises Heart Rate service
(3) Click "Disconnect" button
(4) Click "Reset Energy Expended" button again

What is the expected output?

"Energy expended has been reset" message should appear.

What do you see instead?

"Argh! InvalidStateError: GATT Service no longer exists." shows up.


Note that it works fine on Chrome OS but not on MacOS.
 
Status: WontFix (was: Available)
Per my offline chat with ortuno@, it looks like we are just missing code to invalidate services in blink. That is why it "fails" on macOS and not Chrome OS.

I'll update platinum-bluetooth Polymer elements to always use getPrimaryService and not cache service.

I'll also update our implementation notes.
For the record, here's platinum-bluetooth Polymer Elements release: https://github.com/PolymerElements/platinum-bluetooth/releases/tag/v2.1.2

And the PR for the Implementation Notes: https://github.com/WebBluetoothCG/web-bluetooth/pull/310

Sign in to add a comment