Opened 10 years ago

Last modified 10 years ago

#4736 new defect

Can't find volume when external device remove

Reported by: tch Owned by:
Priority: Normal Milestone: Unspecified
Component: Sugar Version: Unspecified
Severity: Unspecified Keywords: volumes
Cc: 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/", 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.

Change History (2)

comment:1 Changed 10 years ago by tch

BTW, I am running Sugar (HEAD on fe0c592) with no-chroot options of sugar-build. My system is a fedora 19 x64.

comment:2 Changed 10 years ago by tch

I saw the same problem in OLPC-AU 33029xx4 image. Which means the bug is no dependent on my laptops environment.

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/jarabe/journal/", line 321, in __mount_removed_cb
    volume_menu = self._volumes[mount.get_root().get_path()]
KeyError: '/run/media/olpc/FAT'
Note: See TracTickets for help on using tickets.