Bluetooth plugin tries to register BlueZ agent twice

Bug #1480276 reported by Simon Fels
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-system-settings (Ubuntu)
Confirmed
High
Unassigned

Bug Description

Every time the bluetooth page is opened the UbuntuBluetoothPanel component is instantiated which in turn creates a new AgentAdaptor instance which tries to register the agent with BlueZ. However when the Bluetooth page is reopened we get

2015-07-31 11:46:16,074 - WARNING - Error registering agent for the default adapter: QDBusError("org.bluez.Error.AlreadyExists", "Already Exists")

This doesn't matter at the moment because the disconnection detection in BlueZ seems to be also broken so as long as we register the agent object again on next object creation under the same path everything is fine.

However we should cleanly unregister our agent once we drop out of the Bluetooth page or register the agent globally so it keeps alive also when the Bluetooth page is closed if that is intended.

Tags: bluetooth
Revision history for this message
Sebastien Bacher (seb128) wrote :

Thanks, it would be nice to fix it, it's probably easy to unregister it first, having a standalone service is discussed (see phone list discussion on https://lists.launchpad.net/ubuntu-phone/msg14484.html)

Changed in ubuntu-system-settings (Ubuntu):
importance: Undecided → High
status: New → Confirmed
tags: added: bluetooth
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.