← Back to team overview

touch-packages team mailing list archive

[Bug 1084979] Re: Submitting error report asks confounding questions

 

Some apport package hooks, like totem's, will need to be modified so
that they still collect data even if ui is None.

def add_info(report, ui):

    response = ui.choice("How would you describe the issue?", ["The
totem interface is not working correctly", "No sound is being played",
"Some audio files or videos are not being played correctly"], False)

    if response == None: # user cancelled
        raise StopIteration
    .....
    report["LogAlsaMixer"] = apport.hookutils.command_output(["/usr/bin/amixer"])

Because ui is None, then response crashes and the addition of AlsaMixer
never happens.  However, this can be fixed by either checking for ui or
reorganizing the order of operations.

** Changed in: apport (Ubuntu)
     Assignee: (unassigned) => Brian Murray (brian-murray)

** Changed in: apport (Ubuntu)
       Status: Triaged => In Progress

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

Title:
  Submitting error report asks confounding questions

Status in Apport crash detection/reporting:
  Confirmed
Status in apport package in Ubuntu:
  In Progress

Bug description:
  Ubuntu 12.04
  apport 2.6.1-0ubuntu10, Ubuntu 12.10
  apport 2.12.5-0ubuntu2.2, Ubuntu 13.10

  1. In a release version of Ubuntu, trigger an error in something that
  has Apport hooks.

  What happens: You are asked questions which are often false and
  usually not understandable. For example:

  "It seems you have modified the contents of '/etc/cups/cupsd.conf'.
  Would you like to add the contents of it to your bug report?"
  https://launchpadlibrarian.net/124496439/apport-question.png -- You
  haven't, and there is no bug report.

  "Thanks for reporting this bug on unity. Is the issue you are reporting purely graphical (will report more information about your graphic configuration and will report the bug against compiz)?"
  https://launchpadlibrarian.net/117922627/apport%20%28ubuntu-bug%20unity%20%231%29.png -- "Purely grapical" is unexplained, and there is no bug report.

  "Did your system recently lock up or require a hard reboot?" -- What's
  a "hard reboot"?

  What should happen: You are not asked any questions.

  If all reporters of actual bugs are expected to use English, hiding
  these questions from non-reporters might also resolve bug 855337.

  [Originally reported by Katie Taylor.]

To manage notifications about this bug go to:
https://bugs.launchpad.net/apport/+bug/1084979/+subscriptions