Comment 10 for bug 1991096

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.