By default, Bugzilla does not search the list of RESOLVED bugs.
You can force it to do so by putting the upper-case word ALL in front of your search query, e.g.: ALL tdelibs
We recommend searching for bugs this way, as you may discover that your bug has already been resolved and fixed in a later release.

Bug 1496

Summary: tdenetworkmanager cannot display wireless networks
Product: TDE Reporter: Julius Schwartzenberg <julius.schwartzenberg>
Component: tdenetworkAssignee: Timothy Pearson <kb9vqf>
Status: RESOLVED FIXED    
Severity: normal CC: bugwatch, julius.schwartzenberg, kb9vqf, martinhodges479
Priority: P5    
Version: R14.0.0 [Trinity]   
Hardware: All   
OS: Kubuntu Quantal   
Compiler Version: TDE Version String:
Application Version: Application Name:
Attachments: screenshot showing the problem
with the plastik theme
output of 'sudo iwlist wlan0 scan'
screenshot with the connections dialog
output from 'sudo iwlist wlan1 scan > scanresults.txt'
output from 'sudo iwlist wlan1 scan > iwlistoutput.txt'
output from 'nmcli dev wifi list > nmclioutput.txt'
collection of text ouput files

Description Julius Schwartzenberg 2013-05-06 13:17:57 CDT
When opening the wireless network menu, the menu entries with the different networks are not displayed correctly. I have attached a screenshot which shows the problem.
Comment 1 Julius Schwartzenberg 2013-05-06 13:20:49 CDT
Created attachment 1215 [details]
screenshot showing the problem
Comment 2 Timothy Pearson 2013-05-29 20:17:43 CDT
I cannot replicate this issue in my initial testing.  Does tdenetworkmanager work properly if you use the Plastik widget style?
Comment 3 Julius Schwartzenberg 2013-06-08 10:06:46 CDT
Created attachment 1304 [details]
with the plastik theme

I just tested with the latest nightlies and plastik. It doesn't work then either. I've attached another screenshot.

Still using Ubuntu 12.10.
Comment 4 Timothy Pearson 2013-06-08 14:13:50 CDT
OK, thanks!  That test helped to rule out any potential widget-related problems.

If you don't mind (i.e. there is no sensitive information displayed), can you post the output of "sudo iwlist wlan0 scan" when the TDE network manager is malfunctioning?  I am specifically looking for ESSID strings that might cause display problems, but the complete command output would be helpful.

Thanks!
Comment 5 Julius Schwartzenberg 2013-06-08 14:27:40 CDT
Created attachment 1305 [details]
output of 'sudo iwlist wlan0 scan'

The list tends to vary a bit from time to time and I didn't really see anything suspicious, but here it is.
Comment 6 Timothy Pearson 2013-06-08 14:44:31 CDT
Thanks for the additional information.  I don't see anything immediately suspicious either.

If you run tdenetworkmanager from the command line, do you see any warning message printed to the console when accessing the wireless network list?

Also, what happens if you try to add a new wireless connection via the "New connection" menu option?  Do the wireless networks show up in the new connection dialog?   A screenshot of the first page of the new wireless connection dialog might be helpful as well.

Hopefully I can gather enough information to properly reproduce the problem and get this fixed for you soon...

Thanks!
Comment 7 Julius Schwartzenberg 2013-06-08 18:16:35 CDT
Created attachment 1306 [details]
screenshot with the connections dialog

It seems it's indeed not something with the text labels. In the connection dialog also the signal strength cannot be displayed. Clicking on any of the items doesn't fill the text box below with anything either.
Comment 8 Julius Schwartzenberg 2013-06-08 18:19:10 CDT
I forgot to add: Nothing relevant is printed when I start tdenetworkmanager through a Konsole and try to access the list.
Comment 9 Timothy Pearson 2013-06-08 20:09:57 CDT
(In reply to comment #8)
> I forgot to add: Nothing relevant is printed when I start tdenetworkmanager
> through a Konsole and try to access the list.

Interesting.  It almost looks like tdenetworkmanager cannot obtain the required information from network-manager over DBUS.  Let me look into this on a 12.10 VM and try to reproduce it there.

Out of curiosity (and so I can more precisely match your system), are you using 32 or 64 bit Ubuntu?
Comment 10 Julius Schwartzenberg 2013-06-09 04:33:20 CDT
I'm using the AMD64 version.
Yes, it seems the only thing that comes across is the number of APs in the area. 

Btw. Gnome's Network Manager sees them all without problems (at the same time).
Comment 11 Timothy Pearson 2013-06-09 16:41:44 CDT
(In reply to comment #10)
> I'm using the AMD64 version.
> Yes, it seems the only thing that comes across is the number of APs in the
> area. 
> 
> Btw. Gnome's Network Manager sees them all without problems (at the same time).

Interesting.  I installed Ubuntu Quantal 64-bit and can see my wireless network just fine.  I will try setting up a test network with some of the SSIDs you posted earlier to rule out an SSID problem.

network-manager-gnome is developed by the same people as network-manager, so I would expect it to work properly with any particular version of network-manager.  Thus, it is useful for testing whether or not network-manager is broken, but not useful for verifying that network-manager is actually following its API documentation. ;-)
Comment 12 Timothy Pearson 2013-06-09 22:58:29 CDT
This should be at least partially resolved in GIT hash b6a20f0 (knetworkmanager9).  I am also in the process of fixing a few other network-manager related problems, including a failure to properly connect to an unsecured wireless network.
Comment 13 Timothy Pearson 2013-06-10 00:38:40 CDT
A second batch of fixes went into tdelibs in GIT hash b4eb5d6.

Can you please re-test with the latest nightly builds once both tdelibs and network-manager-tde have been rebuilt?

Thanks!
Comment 14 Julius Schwartzenberg 2013-06-14 12:44:09 CDT
It seems that an update just came through. Unfortunately, with the current packages, the problem is still there. Everything still looks exactly like it does in the screenshots.
Comment 15 Timothy Pearson 2013-06-21 11:41:15 CDT
Sorry to hear that.  Changing status back to NEW for more analysis.
Comment 16 Martin Hodges 2013-07-02 16:23:18 CDT
I have the same problem on Debian Wheezy 32 bit.
New previously unknown networks are not correctly displayed or communicated to the 'add new network' dialogues.
Adding a connection manually with the 'add connection' dialogues works correctly.

Unsure if this is relevant, probably not.
The behaviour of NetworkManager has changed in Wheezy in that known networks are recorded in the system file under /etc/NetworkManager/system-connections.
Known networks are automatically connected system wide when the 'profile' is tagged to autoconnect. A previous version (lenny) would only use user defined connections and were dependant on a user logging in to obtain credentials.
Comment 17 Timothy Pearson 2013-07-03 22:57:57 CDT
(In reply to comment #16)
> I have the same problem on Debian Wheezy 32 bit.
> New previously unknown networks are not correctly displayed or communicated to
> the 'add new network' dialogues.
> Adding a connection manually with the 'add connection' dialogues works
> correctly.
> 
> Unsure if this is relevant, probably not.
> The behaviour of NetworkManager has changed in Wheezy in that known networks
> are recorded in the system file under /etc/NetworkManager/system-connections.
> Known networks are automatically connected system wide when the 'profile' is
> tagged to autoconnect. A previous version (lenny) would only use user defined
> connections and were dependant on a user logging in to obtain credentials.

I still cannot replicate this, though I do not doubt it is occurring in (as of yet undetermined) certain circumstances.

Can you please attach the output of 'sudo iwlist wlan0 scan' to this bug report?  Hopefully there will be some point of commonality with the other output above that will help to narrow down what is triggering this problem.

Thanks!
Comment 18 Martin Hodges 2013-07-05 09:10:46 CDT
Created attachment 1334 [details]
output from 'sudo iwlist wlan1 scan > scanresults.txt'
Comment 19 Martin Hodges 2013-07-05 09:12:18 CDT
[FIXME] UNCLASSIFIED DEVICE name: tifm0 type: (null) subsystem: tifm_adapter driver: tifm_7xx1 [Node Path: (null)] [Syspath: /sys/devices/pci0000:00/0000:00:1e.0/0000:0a:09.2/tifm_adapter/tifm0] [104c:803b]
[TDE NM Backend ERROR] [/build/buildd/tdelibs-trinity-14.0.0-r854/tdecore/networkbackends/network-manager/network-manager.cpp:1868] org.freedesktop.DBus.Error.AccessDenied: Property "Autoconnect" of interface "org.freedesktop.NetworkManager.Device" isn't exported (or may not exist)
[TDE NM Backend ERROR] [/build/buildd/tdelibs-trinity-14.0.0-r854/tdecore/networkbackends/network-manager/network-manager.cpp:1819] Attempting to access the network-manager VPN service returned: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.NetworkManager.VPN.Plugin was not provided by any .service files

Is the output in konsole when run manually.
Comment 20 Martin Hodges 2013-07-05 09:18:20 CDT
Unsure of relevance but the system is not a 'full' Trinity installation but packages have been cherry picked. The session is started by tdm and the desktop environment is purely trinity i.e. kdesktop, kwin, kicker, ksmserver, konqueror. No gnome or xfce programs are present. Iceweasel and LibreOffice are on the machine.
Comment 21 Timothy Pearson 2013-07-07 03:01:45 CDT
(In reply to comment #20)
> Unsure of relevance but the system is not a 'full' Trinity installation but
> packages have been cherry picked. The session is started by tdm and the desktop
> environment is purely trinity i.e. kdesktop, kwin, kicker, ksmserver,
> konqueror. No gnome or xfce programs are present. Iceweasel and LibreOffice are
> on the machine.

This should not matter at all.  I also don't see anything unusual in the iwlist scan results.

The reported failures are puzzling to me as I am typing this from an R14 test machine with at least 11 networks visible (many with strange names) and tdenetworkmanager is working perfectly.

If you don't mind, can you please try two things that might help track this down:
1.) Post the output of 'nmcli dev wifi list' (to see if NetworkManager is reporting different networks than the more standard iwlist command)
2.) Try quitting tdenetworkmanager and relaunching it as root via 'tdesudo tdenetworkmanager'.  This is to check for any strange permissions issues that might be preventing tdenetworkmanager from obtaining wireless network information.

Thanks!
Comment 22 Martin Hodges 2013-07-07 03:43:45 CDT
Created attachment 1335 [details]
output from 'sudo iwlist wlan1 scan > iwlistoutput.txt'

I have moved location so new set of networks.
Comment 23 Martin Hodges 2013-07-07 03:46:53 CDT
Created attachment 1336 [details]
output from 'nmcli dev wifi list > nmclioutput.txt'
Comment 24 Martin Hodges 2013-07-07 03:54:09 CDT
tdesudo /opt/trinity/bin/tdenetworkmanager
DCOPClient::attachInternal. Attach failed Could not open network socket

DCOPClient::attachInternal. Attach failed Could not open network socket

[tdebuildsycoca] tdebuildsycoca running...

[tdebuildsycoca] Reusing existing tdesycoca.

[FIXME] UNCLASSIFIED DEVICE name: tifm0 type: (null) subsystem: tifm_adapter driver: tifm_7xx1 [Node Path: (null)] [Syspath: /sys/devices/pci0000:00/0000:00:1e.0/0000:0a:09.2/tifm_adapter/tifm0] [104c:803b]

The list of 'new' networks is still blank.
Comment 25 Martin Hodges 2013-07-07 13:52:12 CDT
The plot thickens.
I moved the harddisk from the laptop which does not work (ACER Travelmate 3010)  to another laptop (Lenovo T60) and the results from the unknown networks are displayed correctly!

Both machines have the same type of wireless chipset.

Here are lsmod, lspci, dmesg and the output from nmcli for both machines.

I thought that the fault may have been connected to the udev name assignment, but no. The fault followed the ACER even with network port name conditions reversed.
Comment 26 Martin Hodges 2013-07-07 13:55:09 CDT
Created attachment 1340 [details]
collection of text ouput files
Comment 27 Timothy Pearson 2013-07-08 17:17:54 CDT
(In reply to comment #26)
> Created attachment 1340 [details]
> collection of text ouput files

This is very, very strange!  I don't see any difference *whatsoever* between the wireless hardware of the two machines, yet one works while the other does not!

As most of my test hardware is IBM/Lenovo, I am going to load TDE onto an old HP laptop to see if I can trigger this bug.  Julius, what type of laptop did your fault occur on?

Thanks!
Comment 28 Julius Schwartzenberg 2013-07-09 05:44:41 CDT
My notebook is an Ahtec, Compal notebook with an Intel chipset. Compal makes notebooks for a variety of brands, so maybe you have one by them as well.
Comment 29 Timothy Pearson 2013-07-10 01:00:30 CDT
I was finally able to reproduce this bug by adding a second wireless network card to my laptop.  It should be fixed in GIT hash efda5c3, please let me know if this is truly the case!
Comment 30 Martin Hodges 2013-07-10 01:43:12 CDT
How do we (users) know when that GIT commit is built? How can we see that?
Comment 31 Timothy Pearson 2013-07-10 12:28:10 CDT
(In reply to comment #30)
> How do we (users) know when that GIT commit is built? How can we see that?

The only user-visible change will be (in this case) an updated tdelibs package.  The GIT hashes are mentioned in each bug report primarily so that other developers know what was changed and why.

If anyone is curious, the hashes given can be used to look up a particular patch here: http://trinitydesktop.org/patches/
Comment 32 Martin Hodges 2013-07-10 14:13:10 CDT
My point being that I would some point of reference when to report back. i.e. which package to look out for. Thanks.
Comment 33 Julius Schwartzenberg 2013-07-11 13:11:25 CDT
It's working here now! I think this bug can be closed now! Thanks a lot!!

Martin, at least the tdelibs packages for Ubuntu Quantal with version number 4:14.0.0-r856-0ubuntu12.10.0+pr49 on 64-bit are working. I suspect a working version for your system should appear similarly.
Comment 34 Timothy Pearson 2013-07-11 20:30:35 CDT
(In reply to comment #33)
> It's working here now! I think this bug can be closed now! Thanks a lot!!

Glad to hear it!  This was one of the more unusual bugs I have had to track down. :-)
Comment 35 Timothy Pearson 2013-08-20 21:34:42 CDT
Closing as requested by original reporter.