usb-creator-gtk crashed with UnboundLocalError in _udisks_partition_added(): local variable 'mount' referenced before assignment

Bug #1263195 reported by Tobiasz Jarczyk
68
This bug affects 15 people
Affects Status Importance Assigned to Milestone
usb-creator (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Got apport window after running usb-creator-gtk and choosing cleaning (formatting) the usb-drive.

$ usb-creator-gtk
isoinfo: Short read on old image
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 70, in <lambda>
    self.handles += [self.manager.connect('interface-removed', lambda man, obj, iface: self._device_changed(obj))]
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 231, in _device_changed
    self._udisks_obj_added(obj)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 98, in _udisks_obj_added
    self._udisks_partition_added(obj, block, drive, path)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 154, in _udisks_partition_added
    if mount:
UnboundLocalError: local variable 'mount' referenced before assignment
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 71, in <lambda>
    self.handles += [self.manager.connect('interface-proxy-properties-changed', lambda man, obj, iface, props, invalid: self._device_changed(obj))]
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 231, in _device_changed
    self._udisks_obj_added(obj)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 98, in _udisks_obj_added
    self._udisks_partition_added(obj, block, drive, path)
  File "/usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py", line 154, in _udisks_partition_added
    if mount:
UnboundLocalError: local variable 'mount' referenced before assignment

ProblemType: Crash
DistroRelease: Ubuntu 14.04
Package: usb-creator-gtk 0.2.52
ProcVersionSignature: Ubuntu 3.12.0-7.15-generic 3.12.4
Uname: Linux 3.12.0-7-generic x86_64
ApportVersion: 2.12.7-0ubuntu3
Architecture: amd64
CurrentDesktop: GNOME
Date: Fri Dec 20 19:20:07 2013
ExecutablePath: /usr/bin/usb-creator-gtk
InstallationDate: Installed on 2013-10-15 (65 days ago)
InstallationMedia: Ubuntu-GNOME 13.10 "Saucy Salamander" - Release amd64 (20131015)
InterpreterPath: /usr/bin/python3.3
ProcCmdline: /usr/bin/python3 /usr/bin/usb-creator-gtk
ProcEnviron:
 TERM=xterm
 SHELL=/bin/bash
 PATH=(custom, no user)
 LANG=pl_PL.UTF-8
 XDG_RUNTIME_DIR=<set>
PythonArgs: ['/usr/bin/usb-creator-gtk']
SourcePackage: usb-creator
Title: usb-creator-gtk crashed with UnboundLocalError in _udisks_partition_added(): local variable 'mount' referenced before assignment
UpgradeStatus: Upgraded to trusty on 2013-11-05 (45 days ago)
UserGroups: adm cdrom dip libvirtd lpadmin plugdev sambashare sudo

Revision history for this message
Tobiasz Jarczyk (dotnokato-q) wrote :
tags: removed: need-duplicate-check
Changed in usb-creator (Ubuntu):
importance: Undecided → Medium
information type: Private → Public
Revision history for this message
penalvch (penalvch) wrote :

Tobiasz Jarczyk, thank you for reporting this bug and helping make Ubuntu better. This would be a duplicate of bug 1092195 and so I am marking it as such. If for whatever reason the fix for that bug doesn't fix this, we could alway unmark the duplication and take it from there.

Thank you for your understanding.

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

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in usb-creator (Ubuntu):
status: New → Confirmed
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.