Opened 9 years ago
Last modified 9 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 |
Description
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:
- start a new instance of sugar.
- connect the external device (ie., usb stick).
- go to Journal.
- click on the external device icon, to see its content.
- go to the details view of any of the contents.
- go back to the list view.
- 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 9 years ago by tch
comment:2 Changed 9 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/palettes.py", 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.
BTW, I am running Sugar (HEAD on fe0c592) with no-chroot options of sugar-build. My system is a fedora 19 x64.