Indicator can fail to display panel icon

Bug #1426467 reported by Tony Espy
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Incomplete
High
Unassigned
indicator-network (Ubuntu)
Incomplete
High
Omer Akram

Bug Description

current build number: 122
device name: krillin
channel: ubuntu-touch/devel-proposed

It's possible for the device to boot in such a manner that the network-indicator doesn't display an icon on the top panel ( see attached screenshot ).

This bug was discovered while testing an ofono vivid silo. The associated ofono merge request is:

https://code.launchpad.net/~phablet-team/ofono/ww10-update/+merge/250665

The version of ofono in the silo (ubuntu-013) is:

1.12.bzr6888+15.04.20150224-0ubuntu1

This version of ofono fixes a couple of bugs, the most important being a regression on krillin where the 2nd SIM isn't always recognized on boot.

My testing was performed using two SIMs, with the 2nd SIM being PIN-locked.

In the case of the missing icon, no PIN unlock screen was displayed after booting.

I checked using 'ps' and an indicator-network process is running, however when I checked /home/phablet/.cache/upstart, there only indicator-network log files I see are the saved .gz files. There's no unzipped/current indicator-network.log. The .gz log file with the most recent timestamp shows a single log message:

phablet@ubuntu-phablet:~/.cache/upstart$ less indicator-network.log.1.gz
void core::dbus::Property<T>::handle_changed(const core::dbus::types::Variant&) [with PropertyType = org::freedesktop::URfkill::Interface::Killswitch::Property::State]: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

I checked and urfkilld is running on the system.

I also verified that there were no crash files present on the system.

I also checked and there was nothing relevant in syslog.

This bug is hard to reproduce as well. I've hit it 4 or 5 times out of a total of maybe 45-50 reboots.

Tags: connectivity
Revision history for this message
Tony Espy (awe) wrote :
summary: - Indicator fails to start
+ Indicator can fail to display panel icon
description: updated
Revision history for this message
Tony Espy (awe) wrote :

Forgot to add, when I run ofono's list-modems script, things look normal, the first SIM is powered, and registered to the network, the second SIM ( ril_1 ) is PIN locked.

I just hit this a second time, and again no indicator-network.log file is present.

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

Note, I just hit another related problem where the phone booted and the automatic PIN-unlock dialog wasn't displayed. This is the first time I've hit this in maybe 75 boots.

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

Also, during the same round of testing I reported bug #1426876, which describes how the user can enter a PIN on the SIM unlock screen and have it not take effect. This occurs more frequently than the problem described by this bug.

I just lowered the Importance to High, as it's extremely hard to reproduce this bug. I've hit it 3 or 4 times out of 100 reboots.

That said, if it's possible to identify the conditions in which the indicator can start, but not display any panel icons, the indicator should be re-factored to never do this. The cellular modem is a dynamic complex pieces of hardware and the indicator needs to be tolerant of what may seem to be invalid states which may exist temporarily.

Revision history for this message
Launchpad Janitor (janitor) wrote :

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

Changed in indicator-network (Ubuntu):
status: New → Confirmed
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

I've started my mako and found this problem: no network indicator is shown.

syslog attached. No indicator-network.log in ~/.cache/upstart (just gzipped files from previous runs).

indicator-network-service was running and there was no crash file for it. Restarting indicator-network made the indicator appear.

$ system-image-cli -i
current build number: 127
device name: mako
channel: ubuntu-touch/devel-proposed
alias: ubuntu-touch/vivid-proposed
last update: 2015-03-10 09:45:13
version version: 127
version ubuntu: 20150309
version device: 20150210
version custom: 20150309

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

Just reproduced this on my phone while testing an ofono fix for krillin:

https://code.launchpad.net/~phablet-team/ofono/lp1430700/+merge/253136

krillin with two SIMs, the first PIN-locked. Testing consisted of just hammering on the FlightMode switch. To be fully usable, this requires unlocking SIM1 every time FM is disabled. That said, sometimes I just hammered on the FM switch without unlocking the SIM.

At some point, the same thing that happened to Alfonso happened to me, the indicator quite displaying an icon for either SIM. The process is still running and as is his case, there's no crash file. I'll attach the upstart indicator-network.log file.

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

Also as with Alfonso, a 'restart indicator-network' restores the icons.

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

Log file from when cell icons disappeared from the panel.

Tony Espy (awe)
Changed in indicator-network (Ubuntu):
assignee: nobody → Pete Woods (pete-woods)
Revision history for this message
Omer Akram (om26er) wrote :

out of every few 'adb reboot' I am able to see this issue as well. Here are the logs in indicator-network.log

void core::dbus::Property<T>::handle_changed(const core::dbus::types::Variant&) [with PropertyType = org::freedesktop::URfkill::Interface::Killswitch::Property::State]: org.freedesktop.DBus.Error.UnknownMethod: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist

*** Received Terminated. ***

Changed in canonical-devices-system-image:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Thomas Strehl (strehl-t)
milestone: none → ww13-2015
Revision history for this message
Jonathan Cave (jocave) wrote :

ubuntu-touch/vivid-proposed arale r148

Inserted a SIM and rebooted after flash of the above. After boot network indicator showed a wifi connection, but no cellular connection. On the menu the cellular showed "Offline". Examing ofono list-modems showed ril_0 as online.

Issued a "restart network-indicator" and the state then showed the cellular connection correctly.

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

@Jonathan

Your description doesn't match this bug. It has to do with an absence of *any* network icons on the panel, not an incorrect icon. I would suggest opening a new bug.

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

the new i-n implementation landed April 2 so good chance this was addressed

Changed in canonical-devices-system-image:
status: Confirmed → Incomplete
Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

@omer can you try to reproduce now

Changed in indicator-network (Ubuntu):
assignee: Pete Woods (pete-woods) → Omer Akram (om26er)
status: Confirmed → Incomplete
Revision history for this message
Pete Woods (pete-woods) wrote :

@Tony, have you seen this one crop up post-April?

dobey (dobey)
Changed in canonical-devices-system-image:
assignee: Thomas Strehl (strehl-t) → nobody
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.