/usr/share/apport/apport-gtk:TypeError:/usr/share/apport/apport-gtk@596:__init__

Bug #1997759 reported by errors.ubuntu.com bug bridge
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
apport (Ubuntu)
Fix Released
Medium
Unassigned
Kinetic
Fix Released
Undecided
Unassigned

Bug Description

Impact
======

The Apport GUI will not start if the apport/apport-gtk/apport-kde package is older than 2.23.1 but python3-apport was upgraded to >= 2.23.1. ubuntu-bug will crash:

Traceback (most recent call last):
  File "/usr/share/apport/apport-gtk", line 596, in <module>
    app = GTKUserInterface()
  File "/usr/share/apport/apport-gtk", line 56, in __init__
    apport.ui.UserInterface.__init__(self)
TypeError: UserInterface.__init__() missing 1 required positional argument: 'argv'

The Ubuntu Error Tracker has been receiving reports about a problem regarding apport. This problem was most recently seen with package version 2.23.1-0ubuntu3, the problem page at https://errors.ubuntu.com/problem/feb7fb0f8e0c34715dc6cf742f9d16824c977662 contains more details, including versions of packages affected, stacktrace or traceback, and individual crash reports.
If you do not have access to the Ubuntu Error Tracker and are a software developer, you can request it at http://forms.canonical.com/reports/.

Test Plan
=========

1. Install apport from jammy:
```
sudo apt install apport/jammy apport-gtk/jammy python3-apport/jammy python3-problem-report/jammy
```
2. Upgrade python3-apport:
```
sudo apt install python3-apport/kinetic-proposed
```
3. Launch apport-bug:
```
apport-bug
```

All four apport package should be upgraded and apport-bug should launch without problems.

Where problems could occur
==========================

The added Breaks will affect how APT handles the packages and could trigger/reveal bug there or could put pressure on APT finding a solution.

Benjamin Drung (bdrung)
description: updated
Revision history for this message
Benjamin Drung (bdrung) wrote :

Commit a9f95932a94d40443f43166c20e382d4059eaa7d ("Pass around command line arguments to ease testing", Apport release 2.23.1) introduced the argv parameter. The code is spread over multiple packages:

* apport/ui.py: python3-apport
* bin/apport-cli: apport
* gtk/apport-gtk: apport-gtk
* kde/apport-kde: apport-kde

So the dependencies need to be made more tight.

Revision history for this message
Benjamin Drung (bdrung) wrote :
Changed in apport (Ubuntu):
status: New → Fix Committed
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package apport - 2.23.1-0ubuntu5

---------------
apport (2.23.1-0ubuntu5) lunar; urgency=medium

  * Declare python3-apport breaking older apport/apport-gtk/apport-kde
    (LP: #1997759)
  * build: Bump source/target Java version to 7

 -- Benjamin Drung <email address hidden> Mon, 05 Dec 2022 13:22:03 +0100

Changed in apport (Ubuntu):
status: Fix Committed → Fix Released
Benjamin Drung (bdrung)
description: updated
Revision history for this message
Steve Langasek (vorlon) wrote : Please test proposed package

Hello errors.ubuntu.com, or anyone else affected,

Accepted apport into kinetic-proposed. The package will build now and be available at https://launchpad.net/ubuntu/+source/apport/2.23.1-0ubuntu3.1 in a few hours, and then in the -proposed repository.

Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users.

If this package fixes the bug for you, please add a comment to this bug, mentioning the version of the package you tested, what testing has been performed on the package and change the tag from verification-needed-kinetic to verification-done-kinetic. If it does not fix the bug for you, please add a comment stating that, and change the tag to verification-failed-kinetic. In either case, without details of your testing we will not be able to proceed.

Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance for helping!

N.B. The updated package will be released to -updates after the bug(s) fixed by this package have been verified and the package has been in -proposed for a minimum of 7 days.

Changed in apport (Ubuntu Kinetic):
status: New → Fix Committed
tags: added: verification-needed verification-needed-kinetic
Revision history for this message
Benjamin Drung (bdrung) wrote :

Verified:

```
$ apt install python3-apport/kinetic-proposed
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Selected version '2.23.1-0ubuntu3.1' (Ubuntu:22.10/kinetic-proposed [all]) for 'python3-apport'
The following additional packages will be installed:
  apport apport-gtk python3-problem-report
The following packages will be upgraded:
  apport apport-gtk python3-apport python3-problem-report
4 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
Need to get 193 kB of archives.
After this operation, 7168 B disk space will be freed.
[...]
```

tags: added: verification-done verification-done-kinetic
removed: verification-needed verification-needed-kinetic
Revision history for this message
Andreas Hasenack (ahasenack) wrote :

I verified the test results and am satisfied that they show the executed planned test case, and that the results are correct.

The package built correctly in all architectures and Ubuntu releases it was meant for.

There are no DEP8 regressions.

There is no SRU freeze ongoing at the moment.

There is no halted phasing on the previous update.

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

This bug was fixed in the package apport - 2.23.1-0ubuntu3.1

---------------
apport (2.23.1-0ubuntu3.1) kinetic; urgency=medium

  * Declare python3-apport breaking older apport/apport-gtk/apport-kde
    (LP: #1997759)
  * Catch malformed problem report (LP: #1996040)
  * Catch ValueError: not enough values to unpack (LP: #1995100)

 -- Benjamin Drung <email address hidden> Thu, 08 Dec 2022 02:38:15 +0100

Changed in apport (Ubuntu Kinetic):
status: Fix Committed → Fix Released
Revision history for this message
Andreas Hasenack (ahasenack) wrote : Update Released

The verification of the Stable Release Update for apport has completed successfully and the package is now being released to -updates. Subsequently, the Ubuntu Stable Release Updates Team is being unsubscribed and will not receive messages about this bug report. In the event that you encounter a regression using the package from -updates please report a new bug using ubuntu-bug and tag the bug report regression-update so we can easily find any regressions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.