Panel network icon - too much latency when network type changes

Bug #1339792 reported by Tony Espy
46
This bug affects 8 people
Affects Status Importance Assigned to Milestone
indicator-network (Ubuntu)
Won't Fix
High
Unassigned
Utopic
Won't Fix
High
Unassigned
Vivid
Won't Fix
High
Unassigned
indicator-network (Ubuntu RTM)
Won't Fix
High
Pete Woods
ofono (Ubuntu)
Won't Fix
Undecided
Unassigned
Utopic
Won't Fix
Undecided
Unassigned
Vivid
Won't Fix
Undecided
Unassigned

Bug Description

Testing image #u122 this morning, I ran into two separate scenarios where the panel network icon didn't always accurately reflect the current network technology due to some kind of latency detecting network changes ( ie. WiFi -> 3G -> WiFi ).

Both scenarios were reproduced on mako.

Scenario 1:

3G: online
WiFi: enabled; connected to AP 1

- display network menu
- tap another secure network
- tap cancel when Password dialog is displayed

At this point the indicator shows '3G' whereas the network menu still shows the original AP 1 as connected. After some period of time ( 10s - 1m ), the icon will change back to show that WiFi is connected.

Scenario 2:

3G: online
WiFi: connected to AP 1

- go to System Settings::WiFi
- click "Previous Networks"
- select the currently connected AP/network
- click Forget Network
- go back to WiFi settings

The WiFi settings correctly shows the AP is no longer connected, however again the network icon takes some time ( 10s - 1m ) to reflect the change back to "3G".

Tony Espy (awe)
Changed in indicator-network (Ubuntu):
importance: Undecided → High
Revision history for this message
Tony Espy (awe) wrote :

Note, this also occurs when toggling the device in and out of FlightMode. There are certain cases where the icon gets stuck displaying the Wi-Fi disconnected icon, and then never updates to 3G when FlightMode is disabled.

tags: added: rtm14
Changed in indicator-network (Ubuntu):
assignee: nobody → Antti Kaijanmäki (kaijanmaki)
Thomas Strehl (strehl-t)
tags: added: touch-2014-09-25
Changed in indicator-network (Ubuntu):
importance: High → Critical
Revision history for this message
Tony Espy (awe) wrote :

This bug was reported in July and never confirmed ( hence the New ), so someone should've tried to reproduce with a current image before marking it Critical for RTM.

I just re-ran the original scenarios on RTM image #44.

I can still reproduce the original problem, however the overall latency has come way down ( 10-15s max for state transition vs. almost a minute maximum before ).

In scenario one, we should check the indicator's logic and see when the connect attempt is made to the newly selected network. It seems that a disconnect always happens when a network is selected, even when the user the clicks cancel. My guess is that this may have something to do with the NM agent prompting mechanism used to tell the indicator to collect a password.

Anyways, again in scenario 1, I get a ~10s overlap of the icon showing 2G, and the network-menu showing the connected AP. After the 10s, the icon updates to the appropriate WiFi icon. My guess about the latency is that even though we may be connected, it takes awhile for NM to prepare the connection and maybe it notified the indicator that it's connected prior to the connection being fully setup???

I'm less concerned about scenario 2 as there's no conflicting icons / menu states, it just takes awhile to switch back to 2G.

Maybe this could be marked High instead of Critical?

Revision history for this message
Tony Espy (awe) wrote :

Here's a screen shot of the menu contradicting the icon.

tags: added: touch-2014-10-09
removed: touch-2014-09-25
Thomas Strehl (strehl-t)
tags: added: touch-2014-10-16
removed: touch-2014-10-09
Changed in indicator-network (Ubuntu):
importance: Critical → High
Changed in indicator-network (Ubuntu):
importance: High → Critical
Revision history for this message
Victor Tuson Palau (vtuson) wrote :

This now seems to be taken 10-15sec, on those basis I am down grading it to high

Changed in indicator-network (Ubuntu):
importance: Critical → High
Changed in indicator-network:
status: New → Confirmed
Changed in indicator-network (Ubuntu RTM):
status: New → Confirmed
Changed in indicator-network (Ubuntu Vivid):
status: New → Confirmed
Changed in indicator-network (Ubuntu Utopic):
status: New → Incomplete
status: Incomplete → Confirmed
Changed in indicator-network:
importance: Undecided → High
Changed in indicator-network (Ubuntu RTM):
importance: Undecided → High
Changed in indicator-network (Ubuntu Utopic):
importance: Undecided → High
Changed in indicator-network (Ubuntu Vivid):
assignee: Antti Kaijanmäki (kaijanmaki) → Jussi Pakkanen (jpakkane)
Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

Using i-n-sniffer it can be seen that the icon updates when ofono sends a dbus signal telling that modem connection quality has changed. This probably means that some event has been missed, so either:

1) i-n does not respond properly to some event it is getting
2) either ofono or NetworkManager is not sending a proper change event signal

Looking further...

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

As requested by Antti, here's the i-n-sniffer log. This starts with wifi killswitch enabled and the indicator showing the 3G icon.

Wlan killswitch changed to: 0
NetworkManager properties changed:
  WirelessEnabled false
NetworkManager properties changed:
  WirelessEnabled true
NetworkManager properties changed:
  ActiveConnections (now have 1)
NetworkManager properties changed:
  ActiveConnections (now have 1)
NetworkManager properties changed:
  ActivatingConnection
  ActiveConnections (now have 2)
NetworkManager properties changed:
  ActiveConnections (now have 2)
NetworkManager properties changed:
  ActivatingConnection
  PrimaryConnection
NetworkManager primary connection type changed to 802-11-wireless.
Ofono network registration 1 property Strength changed to 48.
Ofono network registration 1 property LocationAreaCode changed to 1018.
Ofono network registration 1 property CellId changed to 32087.

The icon changes at the exact moment the third lowest line (Strength changed to 48.) gets printed to the console.

Tony Espy (awe)
Changed in indicator-network (Ubuntu Vivid):
assignee: Jussi Pakkanen (jpakkane) → nobody
Pete Woods (pete-woods)
no longer affects: indicator-network
Revision history for this message
Pete Woods (pete-woods) wrote :

From Jussi's investigation, this sounds like it might be an issue in ofono

tags: added: connectivity
Revision history for this message
Tony Espy (awe) wrote :

I just hit this again on krillin. Both modems lost signal, and thus were no longer registered to a carrier, yet the data icon still showed 'edge'. That said, I wasn't fast enough to grab a screenshot, nor list-modems output.

Regarding comment #7 and this being an ofono issue, we need some kind of proof. I usually see this when switching enabling WiFi, as I've pointed out, there seems to be different logic that's used for the panel icon vs. the menu item representing the connected AP.

phablet@ubuntu-phablet:~$ system-image-cli -i
current build number: 20
device name: krillin
channel: ubuntu-touch/ubuntu-rtm/14.09
last update: 2015-03-26 15:44:56
version version: 20
version ubuntu: 20150312
version device: 20150310-3201c0a
version custom: 20150216-561-29-186

Changed in indicator-network (Ubuntu RTM):
assignee: nobody → Pete Woods (pete-woods)
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in ofono (Ubuntu Utopic):
status: New → Confirmed
Changed in ofono (Ubuntu):
status: New → Confirmed
Revision history for this message
Marco Graziotti (graziottimarco) wrote :

I have the same problem on Meizu MX4 - Arale r.4 -.

When I'm connected to wi-fi, then I'm going out of the wi-fi range, the system don't switch to carrier connection.
Tell me if you need more details.

Thank you.

Revision history for this message
Rolf Leggewie (r0lf) wrote :

utopic has seen the end of its life and is no longer receiving any updates. Marking the utopic task for this ticket as "Won't Fix".

Changed in indicator-network (Ubuntu Utopic):
status: Confirmed → Won't Fix
Pete Woods (pete-woods)
Changed in indicator-network (Ubuntu):
status: Confirmed → Won't Fix
Changed in indicator-network (Ubuntu Vivid):
status: Confirmed → Won't Fix
Changed in indicator-network (Ubuntu RTM):
status: Confirmed → Won't Fix
Changed in ofono (Ubuntu):
status: Confirmed → Won't Fix
Changed in ofono (Ubuntu Utopic):
status: Confirmed → Won't Fix
Changed in ofono (Ubuntu Vivid):
status: Confirmed → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

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