NOTE: This fix was actually released in software-center 5.2.2.1, but due to a copy error the changelog entry appears for this release too.
Note also that since this fix has appeared in precise-updates, the number of occurances of this bug on errors.ubuntu.com has dropped dramatically and should go to zero as more people update to the fixed version. Based on this I'll mark this as verification-done, for the purposes of the current SRU. Thanks! ** Description changed: + SRU TEST CASE: + 1. Update to the version of software-center in precise-proposed. + 2. Launch Ubuntu Software Center from a terminal window as shown: - From errors.ubuntu.com , this looks like a regression in the new capitalize code: + $ software-center + + 3. Navigate and view the details page for a few different packages. Choose packages from different categories, etc. + 4. Verify that crash stacktrace shown below never appears in the terminal window. + + SRU REGRESSION POTENTIAL: + Regression risk is negligible. This is a single line fix that checks for a zero-length string before calling capitalize() on it, and this prevents the crash reported in this bug. + + --- + + From errors.ubuntu.com , this looks like a regression in the new + capitalize code: Traceback (most recent call last): - File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 390, in do_render - is_rtl) - File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 165, in _render_summary - layout.set_markup(self.model.get_markup(app), -1) - File "/usr/share/software-center/softwarecenter/ui/gtk3/models/appstore2.py", line 192, in get_markup - summary = capitalize_first_word(self.db.get_summary(doc)) - File "/usr/share/software-center/softwarecenter/utils.py", line 128, in capitalize_first_word - if string[0].isalpha() and not string[0].isupper(): + File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 390, in do_render + is_rtl) + File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 165, in _render_summary + layout.set_markup(self.model.get_markup(app), -1) + File "/usr/share/software-center/softwarecenter/ui/gtk3/models/appstore2.py", line 192, in get_markup + summary = capitalize_first_word(self.db.get_summary(doc)) + File "/usr/share/software-center/softwarecenter/utils.py", line 128, in capitalize_first_word + if string[0].isalpha() and not string[0].isupper(): IndexError: string index out of range ** Description changed: + + NOTE: This fix was actually released in software-center 5.2.2.1, but due to a copy error the changelog entry appears for this release too. + SRU TEST CASE: 1. Update to the version of software-center in precise-proposed. 2. Launch Ubuntu Software Center from a terminal window as shown: - $ software-center + $ software-center 3. Navigate and view the details page for a few different packages. Choose packages from different categories, etc. 4. Verify that crash stacktrace shown below never appears in the terminal window. SRU REGRESSION POTENTIAL: Regression risk is negligible. This is a single line fix that checks for a zero-length string before calling capitalize() on it, and this prevents the crash reported in this bug. + + NOTE also that since this fix has been released in Precise, the number + of occurrances has dropped dramatically on errors.ubuntu.com. --- From errors.ubuntu.com , this looks like a regression in the new capitalize code: Traceback (most recent call last): File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 390, in do_render is_rtl) File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 165, in _render_summary layout.set_markup(self.model.get_markup(app), -1) File "/usr/share/software-center/softwarecenter/ui/gtk3/models/appstore2.py", line 192, in get_markup summary = capitalize_first_word(self.db.get_summary(doc)) File "/usr/share/software-center/softwarecenter/utils.py", line 128, in capitalize_first_word if string[0].isalpha() and not string[0].isupper(): IndexError: string index out of range ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to software-center in Ubuntu. https://bugs.launchpad.net/bugs/1002271 Title: REGRESSION: crash in cell renderer Status in “software-center” package in Ubuntu: Fix Released Status in “software-center” source package in Precise: Fix Committed Bug description: NOTE: This fix was actually released in software-center 5.2.2.1, but due to a copy error the changelog entry appears for this release too. SRU TEST CASE: 1. Update to the version of software-center in precise-proposed. 2. Launch Ubuntu Software Center from a terminal window as shown: $ software-center 3. Navigate and view the details page for a few different packages. Choose packages from different categories, etc. 4. Verify that crash stacktrace shown below never appears in the terminal window. SRU REGRESSION POTENTIAL: Regression risk is negligible. This is a single line fix that checks for a zero-length string before calling capitalize() on it, and this prevents the crash reported in this bug. NOTE also that since this fix has been released in Precise, the number of occurrances has dropped dramatically on errors.ubuntu.com. --- From errors.ubuntu.com , this looks like a regression in the new capitalize code: Traceback (most recent call last): File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 390, in do_render is_rtl) File "/usr/share/software-center/softwarecenter/ui/gtk3/widgets/cellrenderers.py", line 165, in _render_summary layout.set_markup(self.model.get_markup(app), -1) File "/usr/share/software-center/softwarecenter/ui/gtk3/models/appstore2.py", line 192, in get_markup summary = capitalize_first_word(self.db.get_summary(doc)) File "/usr/share/software-center/softwarecenter/utils.py", line 128, in capitalize_first_word if string[0].isalpha() and not string[0].isupper(): IndexError: string index out of range To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/1002271/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

