[Bug 1302295] Re: usb-creator-gtk errors during app startup

Michisteiner 1302295 at bugs.launchpad.net
Sat Aug 9 08:41:41 UTC 2014


The problem seems triggered by the fake cdroms on SanDisk Cruzers

Following the stack trace ...

 /usr/lib/python3.4/bdb.py(431)run()
-> exec(cmd, globals, locals)
  <string>(1)<module>()
  /usr/bin/usb-creator-gtk(74)<module>()
-> allow_system_internal=options.allow_system_internal)
  /usr/lib/python3/dist-packages/usbcreator/frontends/gtk/frontend.py(185)__init__()
-> self.backend.detect_devices()
  /usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(73)detect_devices()
-> self._udisks_obj_added(obj)
  /usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(92)_udisks_obj_added()
-> self._udisks_cdrom_added(obj, block, drive, path)
  /usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py(111)_udisks_cdrom_added()
-> mount = fs.mount_sync(no_options, None)
> /usr/lib/python3/dist-packages/gi/overrides/Gio.py(152)__call__()
-> raise TypeError('first argument must be the method signature string: %r' % signature)

.. of the exception which is trigered by

      if not isinstance(signature, str):

on line 151 on /usr/lib/python3/dist-packages/gi/overrides/Gio.py

prints in pdb3 give following values for the arguments:

  p signature
  GLib.Variant('a{sv}', {})

  p str
  <class 'str'>

Unfortunately, my knowledge of glib/dbus is zilch and python minimal
so i gave up and simply commented out lines 91-92 of

   /usr/lib/python3/dist-packages/usbcreator/backends/udisks/backend.py

the lines

       if drive and drive.get_cached_property('Optical').get_boolean():
            self._udisks_cdrom_added(obj, block, drive, path)


Obviously that hack wouldn't work if you want to clone an actual cd in
the cdrom drive but works perfectly for .iso images

btw: Bug #1279987 seems a duplicate of this

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to usb-creator in Ubuntu.
https://bugs.launchpad.net/bugs/1302295

Title:
  usb-creator-gtk errors during app startup

Status in “usb-creator” package in Ubuntu:
  Confirmed

Bug description:
  I upgraded my Ubuntu 14.04 installation today with the latest patches.
  I consistently receive the following error when I attempt to startup
  the "Startup Disk Creator" utility.  This issue is not related to
  similar issues I read related to a particular mounted USB device... I
  did not have any USB devices mounted when I receive this error.

  Error message:

  An unhandled exception occured:
  first argument must be the method signature string: GLib.Variant('a{sv}', {})
  --- 
  ApportVersion: 2.14-0ubuntu1
  Architecture: amd64
  DistroRelease: Ubuntu 14.04
  InstallationDate: Installed on 2014-04-04 (0 days ago)
  InstallationMedia:
   
  Package: usb-creator (not installed)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.13.0-20.42-generic 3.13.7
  Tags:  trusty
  UDisksDump: Error: [Errno 2] No such file or directory
  Uname: Linux 3.13.0-20-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: True
  --- 
  ApportVersion: 2.14-0ubuntu1
  Architecture: amd64
  DistroRelease: Ubuntu 14.04
  InstallationDate: Installed on 2014-04-04 (0 days ago)
  InstallationMedia:
   
  Package: usb-creator (not installed)
  ProcEnviron:
   LANGUAGE=en_US
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.13.0-20.42-generic 3.13.7
  Tags:  trusty
  UDisksDump: Error: [Errno 2] No such file or directory
  Uname: Linux 3.13.0-20-generic x86_64
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups:
   
  _MarkForUpload: True

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/1302295/+subscriptions



More information about the foundations-bugs mailing list