After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 678018 - timeout when trying to enable DUN
timeout when trying to enable DUN
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: nm-applet
git master
Other Linux
: Normal normal
: ---
Assigned To: Dan Williams
Dan Williams
: 679665 681402 683347 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2012-06-13 13:45 UTC by Michael Biebl
Modified: 2012-09-07 12:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch (2.26 KB, patch)
2012-07-06 11:08 UTC, Jürg Billeter
none Details | Review

Description Michael Biebl 2012-06-13 13:45:03 UTC
Version: 3.4.1

Coupling my Sony Ericsson W580i works flawlessly and I can transfer data (pictures etc) without problem.
When trying to enable DUN though, I get a failure though. gnome-control-center logs the following:


** Message: has_config_widget 00:1B:59:BC:CC:AE SyncMLClient
** Message: has_config_widget 00:1B:59:BC:CC:AE SerialPort
** Message: has_config_widget 00:1B:59:BC:CC:AE DialupNetworking
** Message: has_config_widget 00:1B:59:BC:CC:AE IrMCSync
** Message: has_config_widget 00:1B:59:BC:CC:AE OBEXObjectPush
** Message: has_config_widget 00:1B:59:BC:CC:AE OBEXFileTransfer
** Message: has_config_widget 00:1B:59:BC:CC:AE AudioSource
** Message: has_config_widget 00:1B:59:BC:CC:AE A/V_RemoteControlTarget
** Message: has_config_widget 00:1B:59:BC:CC:AE A/V_RemoteControl
** Message: has_config_widget 00:1B:59:BC:CC:AE Headset_-_AG
** Message: has_config_widget 00:1B:59:BC:CC:AE NAP
** Message: has_config_widget 00:1B:59:BC:CC:AE HandsfreeAudioGateway
** Message: has_config_widget 00:1B:59:BC:CC:AE HumanInterfaceDeviceService
** Message: has_config_widget 00:1B:59:BC:CC:AE Phonebook_Access_-_PSE
** Message: has_config_widget 00:1B:59:BC:CC:AE SyncMLClient
** Message: has_config_widget 00:1B:59:BC:CC:AE SerialPort
** Message: has_config_widget 00:1B:59:BC:CC:AE DialupNetworking
** Message: has_config_widget 00:1B:59:BC:CC:AE IrMCSync
** Message: has_config_widget 00:1B:59:BC:CC:AE OBEXObjectPush
** Message: has_config_widget 00:1B:59:BC:CC:AE OBEXFileTransfer
** Message: has_config_widget 00:1B:59:BC:CC:AE AudioSource
** Message: has_config_widget 00:1B:59:BC:CC:AE A/V_RemoteControlTarget
** Message: has_config_widget 00:1B:59:BC:CC:AE A/V_RemoteControl
** Message: has_config_widget 00:1B:59:BC:CC:AE Headset_-_AG
** Message: has_config_widget 00:1B:59:BC:CC:AE NAP
** Message: has_config_widget 00:1B:59:BC:CC:AE HandsfreeAudioGateway
** Message: has_config_widget 00:1B:59:BC:CC:AE HumanInterfaceDeviceService
** Message: has_config_widget 00:1B:59:BC:CC:AE Phonebook_Access_-_PSE
** Message: Default Bluetooth adapter is powered
** Message: dun_start: starting DUN device discovery...

(bluetooth-wizard:30594): GLib-GObject-WARNING **: attempt to retrieve private data for invalid type 'DBusGProxy'

** (bluetooth-wizard:30594): CRITICAL **: dbus_g_proxy_set_interface: assertion `DBUS_IS_G_PROXY (proxy)' failed
** Message: dun_start: calling Connect...

** (bluetooth-wizard:30594): CRITICAL **: dbus_g_proxy_add_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed

** (bluetooth-wizard:30594): CRITICAL **: dbus_g_proxy_connect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed

** (bluetooth-wizard:30594): CRITICAL **: dbus_g_proxy_begin_call_with_timeout: assertion `DBUS_IS_G_PROXY (proxy)' failed
** Message: dun_start: finished

** (bluetooth-wizard:30594): WARNING **: dun_timeout_cb: Fehler: Zeitüberschreitung beim Ermitteln der Details zum Telefon.

** (bluetooth-wizard:30594): CRITICAL **: dbus_g_proxy_disconnect_signal: assertion `DBUS_IS_G_PROXY (proxy)' failed
Comment 1 Michael Biebl 2012-06-13 13:48:41 UTC
the non-translated error message:

(In reply to comment #0)
> ** (bluetooth-wizard:30594): WARNING **: dun_timeout_cb: Fehler:
> Zeitüberschreitung beim Ermitteln der Details zum Telefon.

** (gnome-control-center:30745): WARNING **: dun_timeout_cb: Error: timed out detecting phone details.
Comment 2 Bastien Nocera 2012-06-13 13:51:22 UTC
Mismatching gnome-bluetooth plugin in NetworkManager.

NetworkManager expects gnome-bluetooth to provide it with a DBusGProxy, except that we don't use dbus-glib anymore, so that type is unknown. The NM plugin needs to be ported.
Comment 3 bastir 2012-07-01 12:49:35 UTC
So I guess I'm hitting the same problem here. I'm not this familiar with gnome. 

DUS used to work flawless and suddenly I cannot connect through my Nokia phone?
What is the proposed way to use a bluetooth internet connection with gnome shell version 3.4.1 ? 

Is it fixed in a newer version?

Thanks for your suggestions.
Comment 4 Jürg Billeter 2012-07-06 11:08:05 UTC
Created attachment 218170 [details] [review]
Proposed patch

The attached patch adds support for gnome-bluetooth 3.4 without porting the code to GDBus. This is a stopgap measure to again support tethering via bluetooth.
Comment 5 Bastien Nocera 2012-07-06 11:14:42 UTC
Neat hack.
Comment 6 Michael Biebl 2012-07-06 18:11:09 UTC
(In reply to comment #4)
> Created an attachment (id=218170) [details] [review]
> Proposed patch
> 
> The attached patch adds support for gnome-bluetooth 3.4 without porting the
> code to GDBus. This is a stopgap measure to again support tethering via
> bluetooth.

I've applied this patch on top of nm-applet 0.9.4.1 (using gnome-bluetooth 3.4.1).

gnome-control-center reproduciably segfaults when I try to enable DUN for a paired device.
Comment 7 Jürg Billeter 2012-07-06 22:09:32 UTC
(In reply to comment #6)
> I've applied this patch on top of nm-applet 0.9.4.1 (using gnome-bluetooth
> 3.4.1).
> 
> gnome-control-center reproduciably segfaults when I try to enable DUN for a
> paired device.

I was able to use DUN with this patch on top of nm-applet 0.9.4.1. There were still some warnings but at a first glance they didn't appear to be related to the modified code part. I'm using gnome-bluetooth 3.4.2, though, not sure whether this matters.
Comment 8 Michael Biebl 2012-07-08 20:12:29 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > gnome-control-center reproduciably segfaults when I try to enable DUN for a
> > paired device.
> 
> I was able to use DUN with this patch on top of nm-applet 0.9.4.1. There were
> still some warnings but at a first glance they didn't appear to be related to
> the modified code part.

Did you enable DUN during the initial pairing or as I did, try to switch on DUN for an existing bluetooth device.
Comment 9 Jürg Billeter 2012-07-08 20:14:31 UTC
(In reply to comment #8)
> Did you enable DUN during the initial pairing or as I did, try to switch on DUN
> for an existing bluetooth device.

Same here, the devices were already paired.
Comment 10 Michael Biebl 2012-07-08 20:15:32 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > Did you enable DUN during the initial pairing or as I did, try to switch on DUN
> > for an existing bluetooth device.
> 
> Same here, the devices were already paired.

Ok, will try it with gnome-bluetooth 3.4.2 then to see if it makes a difference
Comment 11 Michael Biebl 2012-07-10 19:53:18 UTC
Seems to work fine with 3.4.2, indeed.
Comment 12 Michael Biebl 2012-07-10 20:00:25 UTC
What I do notice though, is that the checkboxes for PAN/NAP and DUN do not "stick".

Once I close gnome-control-center and then re-open the Bluetooth panel, the checkboxes are gone.
Comment 13 Michael Biebl 2012-07-10 20:04:17 UTC
The DUN connection does also not show up in nm-connection-editor.
So there is no way to delete the connection aside from removing the Bluetooth device completely. Not sure if this problem is related. Just wanted to mention this observation.
Comment 14 Colin Walters 2012-08-07 20:03:10 UTC
*** Bug 681402 has been marked as a duplicate of this bug. ***
Comment 15 Dan Williams 2012-08-07 20:21:10 UTC
Thanks, pushed as 27b8a40d7ad412dc0db963a6b77a0177fc4e4402.

We still have the problem that gnome-control-center changed behavior and destroys the NM bluetooth plugin whenever the underlying Bluez device properties change, which happens when the NM plugin connects the DUN interface to inspect it.  That requires a fairly significant rework, which I'm working on now.
Comment 16 Dan Williams 2012-08-07 20:21:43 UTC
Pushed as dac307f98ff7c6ac9eb1f934b6b362066df9368d, that is.
Comment 17 Michael Biebl 2012-08-07 20:24:51 UTC
(In reply to comment #12)
> Once I close gnome-control-center and then re-open the Bluetooth panel, the
> checkboxes are gone.

Ahem, what I wanted to say is: the checkboxes are unchecked as soon as I re-open the Bluetooth panel.
Comment 18 Dan Williams 2012-08-08 02:55:49 UTC
Pushed a rework of the BT widget to the 'cc-bt' branch of network-manager-applet.  It should fix any of the outstanding issues we have; testing appreciated.  If it tests out OK, we can cherry-pick to a 0.9.6.2 release shortly.
Comment 19 Jiri Klimes 2012-09-07 11:30:50 UTC
*** Bug 683347 has been marked as a duplicate of this bug. ***
Comment 20 Jiri Klimes 2012-09-07 11:33:47 UTC
For the record, the fixes in master branch are:

commit dac307f98ff7c6ac9eb1f934b6b362066df9368d
Author: Jürg Billeter <j@bitron.ch>
Date:   Tue Aug 7 15:18:18 2012 -0500

    bluetooth: fix GNOME Bluetooth plugin for 3.3 and later (bgo #678018)

and

commit 56d0e9334990adb174c9b669f26676b99bdd682b
Author: Dan Williams <dcbw@redhat.com>
Date:   Tue Aug 7 21:32:28 2012 -0500

    bluetooth: fix GNOME Bluetooth plugin when used from the control center
Comment 21 Jiri Klimes 2012-09-07 12:30:33 UTC
*** Bug 679665 has been marked as a duplicate of this bug. ***