Upgrading Lubuntu and/or Kubuntu Jammy to Kinetic fails when using GUI

Bug #1991096 reported by Leó Kolbeinsson
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-release-upgrader (Ubuntu)
Fix Released
High
Nick Rosbrook

Bug Description

Upgrading Lubuntu Jammy to Lubuntu Kinetic fails when using GUI

The upgrade starts normally and crashes with X11 error -

The X11 connection broke (error 7). Did the X11 server die?

After the above message the user has no option to reply.

qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 859, resource id: 33554462, major code: 72 (PutImage), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 861, resource id: 33554462, major code: 62 (CopyArea), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 864, resource id: 33554462, major code: 72 (PutImage), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 866, resource id: 33554462, major code: 62 (CopyArea), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 869, resource id: 33554462, major code: 72 (PutImage), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 871, resource id: 33554462, major code: 62 (CopyArea), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 878, resource id: 33554462, major code: 72 (PutImage), minor code: 0
qt.qpa.xcb: QXcbConnection: XCB error: 9 (BadDrawable), sequence: 880, resource id: 33554462, major code: 62 (CopyArea), minor code: 0
qt.qpa.xcb: xcb_shm_create_segment() failed for size 661808
The X11 connection broke (error 7). Did the X11 server die?
lj@lj-latitude7280:~$

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: ubuntu-release-upgrader-core 1:22.04.14
ProcVersionSignature: Ubuntu 5.15.0-50.56-generic 5.15.60
Uname: Linux 5.15.0-50-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.1
Architecture: amd64
CasperMD5CheckResult: unknown
CrashDB: ubuntu
CurrentDesktop: LXQt
Date: Wed Sep 28 11:06:17 2022
InstallationDate: Installed on 2022-09-28 (0 days ago)
InstallationMedia: Lubuntu 22.04.1 LTS "Jammy Jellyfish" - Release amd64 (20220919)
PackageArchitecture: all
SourcePackage: ubuntu-release-upgrader
Symptom: ubuntu-release-upgrader
UpgradeStatus: Upgraded to jammy on 2022-09-28 (0 days ago)
VarLogDistupgradeApttermlog: Log started: 2022-09-28 10:58:28
VarLogDistupgradeTermlog:

mtime.conffile..etc.update-manager.release-upgrades: 2022-09-28T10:54:33.361941

Related branches

Revision history for this message
Leó Kolbeinsson (leok) wrote :
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Please note : When upgrading using TUI with and without Lubuntu Backports enabled the upgrade completes with no errors.

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
https://iso.qa.ubuntu.com/qatracker/reports/bugs/1991096

tags: added: iso-testing
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote (last edit ):

Might be worth testing Kubuntu here to see if the problem is Lubuntu-specific or Qt-specific. (I guess it could be not specific at all, but the Qt error in the report looks interesting.)

Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :

So far in my testing, the upgrade seems to be hung and I'm getting tons of graphical errors and redraw problems on the upgrader GUI. I'm going to test Kubuntu next to see if it behaves similarly.

Revision history for this message
Leó Kolbeinsson (leok) wrote (last edit ):

Tested upgrade from Kubuntu Jammy to Kubuntu Kinectic using GUI and this failed.

Machine tested = Dell [ Optiplex] MT 7040, i7-6700,32 GB, Intel HD Graphics 530,Intel i219-LM GB Ethernet, M.2 NVMe 256GB SSD
running in UEFI mode.

Attached is screenshot.

Revision history for this message
Leó Kolbeinsson (leok) wrote :

And another screenshot showing failure reported in above comment #6.

I will now test this with TUI and post results.

Leó Kolbeinsson (leok)
tags: added: kubuntu
summary: - Upgrading Lubuntu Jammy to Kinetic fails when using GUI
+ Upgrading Lubuntu and/or Kubuntu Jammy to Kinetic fails when using GUI
Revision history for this message
Leó Kolbeinsson (leok) wrote :

Tested upgrade from Kubuntu Jammy to Kubuntu Kinectic using TUI
Upgrade completed with no errors .

This confirms that only upgrading with the Graphical User Interface fails.

Changed in ubuntu-release-upgrader (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Revision history for this message
Brian Murray (brian-murray) wrote :

I was unable to reproduce this when upgrading an Ubuntu Desktop install of Ubuntu 22.04 LTS so suspect the initial error is due to an issue with the DistUpgradeViewKDE frontend.

Revision history for this message
Nick Rosbrook (enr0n) wrote :

When I ran an upgrade on Kubuntu, I was flooded with exceptions that look like this:

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-u0e14fet/DistUpgrade/DistUpgradeViewKDE.py", line 280, in update
    self.progressbar.setValue(self.percent)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Error in function update
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-u0e14fet/DistUpgrade/DistUpgradeViewKDE.py", line 280, in update
    self.progressbar.setValue(self.percent)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/problem_report.py", line 477, in add_to_existing
    self.write(f)
  File "/usr/lib/python3/dist-packages/problem_report.py", line 430, in write
    block = f.read(1048576)
  File "/usr/lib/python3.10/codecs.py", line 322, in decode
    (result, consumed) = self._buffer_decode(data, self.errors, final)
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8b in position 1: invalid start byte

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-u0e14fet/DistUpgrade/DistUpgradeViewKDE.py", line 280, in update
    self.progressbar.setValue(self.percent)
TypeError: setValue(self, int): argument 1 has unexpected type 'float'

We think this leads to "too many open files" errors, and ultimately causes the crash. I will write a patch for that exception and test this hypothesis.

Changed in ubuntu-release-upgrader (Ubuntu):
status: Confirmed → Triaged
assignee: nobody → Nick Rosbrook (enr0n)
importance: High → Critical
tags: added: foundations-todo
Nick Rosbrook (enr0n)
Changed in ubuntu-release-upgrader (Ubuntu):
importance: Critical → High
Revision history for this message
Aaron Rainbolt (arraybolt3) wrote :
Download full text (9.2 KiB)

wrt "too many open files", that seems very likely. My own testing with the upgrade ended up with it getting stuck for an extended period of time (30 minutes to an hour, maybe longer), and I just interrupted it with Ctrl+C, whereupon this lovely mess was printed on my terminal:

Error in function update
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1953, in fullUpgrade
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1280, in doDistUpgradeSimulation
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1306, in doDistUpgrade
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeCache.py", line 309, in commit
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 664, in commit
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 610, in install_archives
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeView.py", line 229, in run
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeViewKDE.py", line 532, in wait_child
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeViewKDE.py", line 528, in update_interface
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeViewKDE.py", line 280, in update
TypeError: setValue(self, int): argument 1 has unexpected type 'float'
Error in sys.excepthook:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1953, in fullUpgrade
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1280, in doDistUpgradeSimulation
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1306, in doDistUpgrade
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeCache.py", line 309, in commit
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 664, in commit
  File "/usr/lib/python3/dist-packages/apt/cache.py", line 610, in install_archives
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeView.py", line 229, in run
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeViewKDE.py", line 532, in wait_child
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeViewKDE.py", line 528, in update_interface
KeyboardInterrupt

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 118, in apport_excepthook
  File "/usr/lib/python3/dist-packages/apport/report.py", line 672, in add_proc_info
  File "/usr/lib/python3/dist-packages/apport/report.py", line 1800, in get_logind_session
OSError: [Errno 24] Too many open files: 'cgroup'

Original exception was:
Traceback (most recent call last):
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpgrade/DistUpgradeController.py", line 1953, in fullUpgrade
  File "/tmp/ubuntu-release-upgrader-_7m7nofo/DistUpg...

Read more...

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

This bug was fixed in the package ubuntu-release-upgrader - 1:22.10.8

---------------
ubuntu-release-upgrader (1:22.10.8) kinetic; urgency=medium

  * DistUpgrade: Cast to int when calling QProgressBar.setValue() (LP: #1991096)
  * DistUpgrade: Just pass filename to apport report (LP: #1985964)
  * DistUpgrade: Remove firefox from deb2snap.json (LP: #1964036)
  * Run pre-build.sh: updating mirrors, demotions, and translations.

 -- Nick Rosbrook <email address hidden> Thu, 29 Sep 2022 15:13:49 -0400

Changed in ubuntu-release-upgrader (Ubuntu):
status: Triaged → Fix Released
Revision history for this message
Leó Kolbeinsson (leok) wrote :

I can confirm the bug is fixed.

Upgraded Lenovo V14ILL fron Lubuntu Jammy to Lubuntu Kinetic using GUI and no errors - all good

tags: removed: foundations-todo
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.