linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* ConnectProfile continuously failing with InProgress error
@ 2015-11-06  5:40 Alan Au
  2015-11-06 10:22 ` Luiz Augusto von Dentz
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Au @ 2015-11-06  5:40 UTC (permalink / raw)
  To: linux-bluetooth

Hi,

I've been writing an application that invokes Device1.ConnectProfile to 
connect to a remote device. That works fine in the normal case. But 
during development sometimes the app crashes after invoking 
ConnectProfile but before the ConnectProfile async invocation returns. 
In this case bluetoothd seems to sometimes get stuck in a bad state in 
which all subsequent calls to ConnectProfile (or Connect) for the same 
device will continuously return a org.bluez.Error.InProgress failure. I 
need to reboot the box to recover.

This is reproducible with bluetoothctl. By running "connect" to a remote 
device that is not there and then exiting bluetoothctl before the 
connect result comes back. It may take a few tries but eventually 
bluetoothctl will show that any connects to that same device will always 
fail with org.bluez.Error.InProgress.

Example log:

% bluetoothctl
[NEW] Controller 18:F1:45:2F:44:EC [default]
[NEW] Device 00:07:80:31:CC:DD PT/INR Meter
[bluetooth]# connect 00:07:80:31:CC:DD
Attempting to connect to 00:07:80:31:CC:DD
[bluetooth]# exit
[DEL] Controller 18:F1:45:2F:44:EC [default]
% bluetoothctl
[NEW] Controller 18:F1:45:2F:44:EC [default]
[NEW] Device 00:07:80:31:CC:DD PT/INR Meter
[bluetooth]# connect 00:07:80:31:CC:DD
Attempting to connect to 00:07:80:31:CC:DD
Failed to connect: org.bluez.Error.InProgress
[bluetooth]# connect 00:07:80:31:CC:DD
Attempting to connect to 00:07:80:31:CC:DD
Failed to connect: org.bluez.Error.InProgress
[bluetooth]#

Note that this remains the same even after waiting for an hour or more.

I'm using 5.33. Any ideas?

Thanks.

Alan

______________________________________________________________________
This communication contains information which may be confidential or privileged. The information is intended solely for the use of the individual or entity named above.  If you are not the intended recipient, be aware that any disclosure, copying, distribution or use of the contents of this information is prohibited.  If you have received this communication in error, please notify me by telephone immediately.
______________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-09  1:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-06  5:40 ConnectProfile continuously failing with InProgress error Alan Au
2015-11-06 10:22 ` Luiz Augusto von Dentz
2015-11-09  1:38   ` Alan Au

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).