audio_settings crashed with IOError in restore_audio_settings(): [Errno 2] No such file or directory: '/usr/share/checkbox/pulseaudio_settings'

Bug #1041644 reported by Nivas
54
This bug affects 12 people
Affects Status Importance Assigned to Milestone
checkbox (Ubuntu)
Fix Released
High
Daniel Manrique

Bug Description

При проверке системы

ProblemType: Crash
DistroRelease: Ubuntu 12.10
Package: checkbox 0.14.4
ProcVersionSignature: Ubuntu 3.5.0-11.11-generic 3.5.2
Uname: Linux 3.5.0-11-generic i686
ApportVersion: 2.5.1-0ubuntu2
Architecture: i386
CheckboxSubmission: de75f1ed753d759bc8200c6b71b9ce44
CheckboxSystem: b8f3ec504801f13fc208edb5c785b099
CrashCounter: 1
Date: Sun Aug 26 00:50:16 2012
ExecutablePath: /usr/lib/checkbox/bin/audio_settings
InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
InterpreterPath: /usr/bin/python3.2mu
ProcCmdline: /usr/bin/python3 /usr/share/checkbox/scripts/audio_settings restore --file=/usr/share/checkbox/pulseaudio_settings
ProcEnviron:
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=ru_RU.UTF-8
PythonArgs: ['/usr/share/checkbox/scripts/audio_settings', 'restore', '--file=/usr/share/checkbox/pulseaudio_settings']
SourcePackage: checkbox
Title: audio_settings crashed with IOError in restore_audio_settings(): [Errno 2] No such file or directory: '/usr/share/checkbox/pulseaudio_settings'
UpgradeStatus: Upgraded to quantal on 2012-08-22 (3 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo

Related branches

Revision history for this message
Nivas (nivas) wrote :
tags: removed: need-duplicate-check
Changed in checkbox (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Daniel Manrique (roadmr) wrote :

Somewhat related to https://bugs.launchpad.net/ubuntu/+source/checkbox/+bug/1041340. If the script is called with a non-existent file and the restore argument, it throws an exception.

How to reproduce:

/usr/share/checkbox/scripts/audio_settings restore --file=/tmp/nonexistent_file

Expected result:
- Friendly output and restored audio settings

Actual results:
- Trace as shown in the original report.

What needs to be done: The call to open on line 95 needs to be wrapped in a try block that catches IOError and takes appropriate action (outputting a warning should be fine). A failing exit code may be desirable.

Changed in checkbox (Ubuntu):
status: New → Triaged
importance: Medium → High
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
assignee: nobody → Daniel Manrique (roadmr)
visibility: private → public
Daniel Manrique (roadmr)
Changed in checkbox (Ubuntu):
status: Triaged → Fix Committed
Jeff Lane  (bladernr)
Changed in checkbox (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Douwe Bootsma (d-bootsma) wrote :

This was during a system testing (tool from the dash) on a brand new 12.10 installation, updated to the latest fixes. So problem still exists in my opninion.

Revision history for this message
Tobiasz Jarczyk (dotnokato-q) wrote :

Also reproduced on fully updated system.

Revision history for this message
Dariusz Panasiuk (dariusz.panasiuk) wrote :

just came across this problem when tried to test ubuntu 12.10 beta 2 from USB disk.

Revision history for this message
sem (semitones) wrote :

Ran Checkbox today, 10/15, still had this error.

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.