[Bugs] #4736 Sugar NORM: Can't find volume when external device remove

Sugar Labs Bugs bugtracker-noreply at sugarlabs.org
Wed Mar 5 13:22:15 EST 2014


#4736: Can't find volume when external device remove
-------------------------------+--------------------------
       Reporter:  tch          |       Owner:
           Type:  defect       |      Status:  new
       Priority:  Normal       |   Milestone:  Unspecified
      Component:  Sugar        |     Version:  Unspecified
       Severity:  Unspecified  |    Keywords:  volumes
Distribution/OS:  Unspecified  |  Bug Status:  Unconfirmed
-------------------------------+--------------------------
\
\
 The error in the log is:

 {{{
 Traceback (most recent call last):
   File "/home/tch/Devel/sugar-build-no-
 broot/build/out/install/lib/python2.7/site-
 packages/jarabe/journal/palettes.py", line 326, in __mount_removed_cb
     volume_menu = self._volumes[mount.get_root().get_path()]
 KeyError: '/run/media/tch/FAT'
 }}}

 Steps to reproduce:

 1. start a new instance of sugar.
 2. connect the external device (ie., usb stick).
 3. go to Journal.
 4. click on the external device icon, to see its content.
 5. go to the details view of any of the contents.
 6. go back to the list view.
 7. unplug the device.

 You should see one or more entries with the error I showed.

 Some thoughts:

 * I wonder if we are not disconnecting from volumes events, so we receive
 more than one call to the __mount_removed_cb callback, after the first
 call has successfully removed it.
\
\
\

--
Ticket URL: <http://bugs.sugarlabs.org/ticket/4736>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system


More information about the Bugs mailing list