← Back to team overview

ubuntu-sdk-bugs team mailing list archive

[Bug 1358004] Re: Need better information about apparmor problems

 

** No longer affects: qtcreator-plugin-ubuntu

-- 
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to qtcreator-plugin-ubuntu in
Ubuntu.
https://bugs.launchpad.net/bugs/1358004

Title:
  Need better information about apparmor problems

Status in “qtcreator-plugin-ubuntu” package in Ubuntu:
  New

Bug description:
  I just wasted many hours tracking down a problem that was caused, in
  part, by apparmor problems.  (See the gory details here:
  https://github.com/rschroll/beru/issues/56.)  Setting aside the issue
  of why we need a policy group to use a webview (?!), there were
  several problems that made this problem much harder to track down than
  it should have been.

  1) The plugin didn't alert me about the missing permissions.
  Obviously this can't work for every permission, but it would be easy
  to add a warning if a QML file imports Oxide and the apparmor profile
  doesn't request the webview policy group.

  2) Apparmor errors are not logged when a project is run from Qt
  Creator.  I'm sure that, somewhere on the device, there's an apparmor
  log that recorded that my app was blocked from doing something.  (I
  have no idea where that log is, though.)  The plugin should notice
  when an app exits abnormally and the apparmor log was modified, and it
  should display the relevant lines from the apparmor log.

  3) Not all output from the program appeared in the "Application
  Output" window in Qt Creator.  Instead, a random sampling of the
  output was displayed.  This meant that the relevant line only appeared
  occasionally in the output, giving the impression of a Heisenbug.
  Only when I looked in ~/.cache/upstart on the device did I notice that
  error messages were consistent.

  If it matters, I'm on 14.04 and using the SDK team PPA.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/qtcreator-plugin-ubuntu/+bug/1358004/+subscriptions