I have verified that software-center version 5.2.2 in precise-proposed fixes this bug per the test case given in the description.
Thanks! ** Description changed: Ubuntu Software Center version 5.2, Ubuntu 12.04 + + Steps to reproduce (induces an error condition that causes the traceback for the crash in this bug): + 1. Shut down Software Center, if it is running: + 2. Open a terminal and type the following command: + $ cd ~/.config/software-center; touch softwarecenter.cfg.new; chmod 400 softwarecenter.cfg.new + 3. Launch Software Center from a terminal as shown: + $ software-center + 4. Once Software Center has started, shut it down again. + 5. Note that you'll get a traceback reporting: + IOError: [Errno 13] Permission denied: '/home/tremolux/.config/software-center/softwarecenter.cfg.new' + Followed by the error for this bug: + TypeError: object of type 'NoneType' has no len() + 6. Note also that Software Center does not fully quit. + 7. Type the following in a terminal to kill Software Center: + $ killall software-center + 8. And finally, type the following to remove the bad softwarecenter.cfg.new file: + $ rm softwarecenter.cfg.new (and verify that you want to remove this file) Software Center crashes and does not exit when an error is encountered when writing the configuration file at shutdown. Please see comment #16 of bug 885726 for more details, including the following stacktrace information, and for steps to reproduce a similar error. Traceback (most recent call last): - File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 857, in on_window_main_delete_event - self.close_app() - File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 533, in close_app - self.save_state() - File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1325, in save_state - self.config.write() - File "/usr/share/software-center/softwarecenter/config.py", line 48, in write - f = open(tmpname, "w") + File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 857, in on_window_main_delete_event + self.close_app() + File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 533, in close_app + self.save_state() + File "/usr/share/software-center/softwarecenter/ui/gtk3/app.py", line 1325, in save_state + self.config.write() + File "/usr/share/software-center/softwarecenter/config.py", line 48, in write + f = open(tmpname, "w") IOError: [Errno 5] Input/output error: '/home/sam/.config/software-center/softwarecenter.cfg.new' ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/996333 Title: IOError: [Errno 5] Input/output error: $HOME/.config/software- center/softwarecenter.cfg.new, Software Center does not exit To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/996333/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
