apport NUMBER view-report option causes ProblemType python crash

Bug #1325729 reported by Frank Ch. Eigler
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

While instructed to send some apport data for another bug, apport crashed when I tried to view the report.

% dpkg -l apport

apport 2.14.1-0ubuntu3.2

% apport-collect 1325713

*** Collecting problem information

The collected information can be sent to the developers to improve the
application. This might take a few minutes.
dpkg-query: no packages found matching linux
.....

*** Send problem report to the developers?

After the problem report has been sent, please fill out the form in the
automatically opened web browser.

What would you like to do? Your options are:
  S: Send report (408.2 KB)
  V: View report
  K: Keep report file for sending later or copying to somewhere else
  I: Cancel and ignore future crashes of this program version
  C: Cancel
Please choose (S/V/K/I/C): V
Traceback (most recent call last):
  File "/usr/bin/apport-cli", line 370, in <module>
    if not app.run_argv():
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 652, in run_argv
    return self.run_update_report()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 568, in run_update_report
    response = self.ui_present_report_details(allowed_to_report)
  File "/usr/bin/apport-cli", line 209, in ui_present_report_details
    self.collect_info()
  File "/usr/lib/python2.7/dist-packages/apport/ui.py", line 966, in collect_info
    if self.report['ProblemType'] == 'Crash':
  File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__
    raise KeyError(key)
KeyError: 'ProblemType'

Revision history for this message
Martin Pitt (pitti) wrote :

Fixed in trunk r2831.

affects: apport → apport (Ubuntu)
Changed in apport (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.14.6-0ubuntu1

---------------
apport (2.14.6-0ubuntu1) utopic; urgency=medium

  * New upstream bug fix release:
    - general-hooks/generic.py: Fix hook crash if there are non-distro
      libraries and no user interface.
    - collect_info(): Don't assume that reports have a ProblemType. Fixes
      crashes with apport-collect. (LP: #1325729)
    - apport-retrace: Declare -s/-g/-o as mutually exclusive, to get proper
      error messages instead of silent misbehaviour. (LP: #1352450)
    - apport-gtk: Drop usage of deprecated GTK stock items. (LP: #1348116)
 -- Martin Pitt <email address hidden> Mon, 18 Aug 2014 07:57:16 +0200

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
jdfalk (johnathan-falk) wrote :

This doesn't seem to be fixed in the latest versions. I opened bug #1406149 and marked it as a duplicate of this just in case I am missing something but using the latest version it still fails.

root@build:/var/log# dpkg -l apport
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name Version Architecture Description
+++-=====================-===============-===============-===============================================
ii apport 2.15.1-0ubuntu1 all automatically generate crash reports for debugg

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.