← Back to team overview

touch-packages team mailing list archive

[Bug 1404188] Re: QNetworkSession::isOpen() always returns false

 

A couple of  comments.

I've actually been chasing down a DBus performance issue on touch since
mid-Summer, related to NetworkManager and WiFi scanning.

The high-level summary is that we have a number of system processes
listening for NM AccessPoint DBus signals on specific AccessPoint DBus
objects, and never cleaning up the associated DBus watch rules when the
access  points are removed.   This can lead to a single processing
adding 5k match rules to the system bus if WiFi is enabled long enough.
For details see bug #1480877, an in particular from the following
comment onwards:

https://bugs.launchpad.net/ubuntu-rtm/+source/sync-
monitor/+bug/1480877/comments/65

I've traced what I think is the cause to the bearer mgmt networkmanager
plugin and am attempting to patch it.

Note, this bug that I'm now adding this comment to, is  about a confined
app's usage of QNetworkSession.  I should remind folks that there are a
number of system processes ( eg. unity8 ) that either use
QNetworkSession directly, or via QNetworkAccessManager, so we'll need to
be careful we don't break anything if we decide to deprecate the
networkmanager backend in favor of a connectivity API based backend.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to apparmor-easyprof-ubuntu
in Ubuntu.
https://bugs.launchpad.net/bugs/1404188

Title:
  QNetworkSession::isOpen() always returns false

Status in Canonical System Image:
  Confirmed
Status in apparmor-easyprof-ubuntu package in Ubuntu:
  Confirmed
Status in qtbase-opensource-src package in Ubuntu:
  Confirmed

Bug description:
  Using QNetworkSession::isOpen() in confined apps on a phone running
  vivid always returns false. This might be an apparmor thing, however,
  I couldn't find any REJECTED entries in log files.

  The test app in lp:~mzanetti/+junk/nmsessiontest can reproduce the
  issue. Open this project in ubuntu-sdk's qtcreator and run it on a
  vivid device. Press the button and watch the debug prints.

  On a vivid-desktop or a RTM based phone it will print "all is well".
  On a vivid phone however, it'll print "network session not open..."

  This used to work fine at least back in utopic images.

To manage notifications about this bug go to:
https://bugs.launchpad.net/canonical-devices-system-image/+bug/1404188/+subscriptions


References