indicator-network crash on org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.ofono.SimManager" doesn't exist

Bug #1352744 reported by Jean-Baptiste Lallement
26
This bug affects 3 people
Affects Status Importance Assigned to Milestone
indicator-network (Ubuntu)
Fix Released
Critical
Antti Kaijanmäki

Bug Description

Last known good image: #169

On mako build #17O the list of wifi access point in system-settings is empty and there is no network-indicator. Although already configured network is working correctly.

Problem on errors.u.c
https://errors.ubuntu.com/bucket/?id=/usr/lib/arm-linux-gnueabihf/indicator-network/indicator-network-service%3A11%3Achanged%3AModemManager%3A%3APrivate%3A%3Aofono_appeared%3AModemManager%3A%3APrivate%3A%3APrivate%3AModemManager%3A%3AModemManager%3Aconstruct

ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: ofono 1.12.bzr6872+14.10.20140804-0ubuntu1
Uname: Linux 3.4.0-5-mako armv7l
ApportVersion: 2.14.5-0ubuntu3
Architecture: armhf
Date: Tue Aug 5 09:23:38 2014
InstallationDate: Installed on 2014-08-05 (0 days ago)
InstallationMedia: Ubuntu Utopic Unicorn (development branch) - armhf (20140805-020204)
SourcePackage: ofono
UpgradeStatus: No upgrade log present (probably fresh install)

Related branches

Revision history for this message
Jean-Baptiste Lallement (jibel) wrote :
Changed in ofono (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
tags: added: lt-blocker lt-category-visible lt-prio-high
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

For me, this happens only when you have no SIM inserted. indicator-network crashes in that case when it tries to access the non-existing ofono SIM interface. Executing indicator-network from the command line I see:

phablet@ubuntu-phablet:~$ /usr/lib/arm-linux-gnueabihf/indicator-network/indicator-network-service
ModemManager::ModemManager()
void SimUnlockDialog::Private::reset()
org.freedesktop.DBus.Error.UnknownMethod: Method "GetProperties" with signature "" on interface "org.ofono.SimManager" doesn't exist

Segmentation fault (core dumped)

description: updated
Revision history for this message
Alfonso Sanchez-Beato (alfonsosanchezbeato) wrote :

list-modems script with no SIM inserted shows that org.ofono.SimManager does not appear in the "Interfaces" property of the modem, so it should not be used:

root@ubuntu-phablet:/usr/share/ofono/scripts# ./list-modems
[ /ril_0 ]
    Revision = M9615A-CEFWMAZM-2.0.1700.98
    Emergency = 0
    Powered = 1
    Lockdown = 0
    Type = hardware
    Online = 1
    Model = Fake Modem Model
    Features = rat
    Manufacturer = Fake Manufacturer
    Interfaces = org.ofono.RadioSettings org.ofono.CallVolume org.ofono.VoiceCallManager
    Serial = 355136050779043
    [ org.ofono.RadioSettings ]
        FastDormancy = 0
        TechnologyPreference = umts
        ModemTechnologies = gsm umts
    [ org.ofono.CallVolume ]
        SpeakerVolume = 0
        MicrophoneVolume = 0
        Muted = 1
    [ org.ofono.VoiceCallManager ]
        EmergencyNumbers = 08 000 999 110 112 911 118 119

Revision history for this message
Brendan Donegan (brendan-donegan) wrote :

This happens for me when I have a SIM inserted too

description: updated
Changed in indicator-network (Ubuntu):
status: New → Confirmed
importance: Undecided → Critical
assignee: nobody → Antti Kaijanmäki (kaijanmaki)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

This happens for me even before the latest ofono landing and when roaming

Changed in indicator-network (Ubuntu):
status: Confirmed → In Progress
Revision history for this message
Brendan Donegan (brendan-donegan) wrote :
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

The crash is caused by indicator-network missing a break in a switch-case. Silo 6 is being prepared for testing,

summary: - List of WiFi access point is empty
+ indicator-network crash on org.freedesktop.DBus.Error.UnknownMethod:
+ Method "GetProperties" with signature "" on interface
+ "org.ofono.SimManager" doesn't exist
Changed in ofono (Ubuntu):
status: Confirmed → Invalid
no longer affects: ofono (Ubuntu)
Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

armhf packages ready in silo 6.

Revision history for this message
Antti Kaijanmäki (kaijanmaki) wrote :

see the MP for testing instructions.

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

So the problem occurs because prior to the 20140804 version of ofono, when a SIM was absent, the only interface active was the VoicecallManager, whereas the 0804 version now also includes an active RadioSettings interface ( which was done so the settings UI could query the supported radio technologies ). This in turn trigged a day 1 bug in indicator-network.

I've tested the fix from silo #6 on mako, and can no longer reproduce the crash.

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

This bug was fixed in the package indicator-network - 0.5.1+14.10.20140805-0ubuntu1

---------------
indicator-network (0.5.1+14.10.20140805-0ubuntu1) utopic; urgency=low

  [ Antti Kaijanmäki ]
  * Add missing break to switch-case. When ofono tells modem supports
    RadioSettings interface there is an unintentional falltrough which
    causes ofono code to try to create an SimManager instead. (LP:
    #1352744)
 -- Ubuntu daily release <email address hidden> Tue, 05 Aug 2014 17:22:18 +0000

Changed in indicator-network (Ubuntu):
status: In Progress → Fix Released
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.