Can't safely remove SD card when a background app has it open

Bug #1414731 reported by Bill Filler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical System Image
Fix Released
High
Unassigned
ciborium (Ubuntu)
Fix Released
High
Manuel de la Peña
ciborium (Ubuntu RTM)
Fix Released
High
Manuel de la Peña

Bug Description

krillin rtm build 211

- insert SD card
- start gallery app which reads from SD card
- move gallery app to background and launch External Drives app
- click on Safely Remove button

Expected results:
- the SD card should be unmounted and safely removed. If it can't be safely removed that should be reported to the user.

Actual results:
- the app reports its' safely removed but actually it is not

Here is the error in application-legacy-ciborium-.log:

2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
2015/01/26 12:44:21 Error while processing events: drive holding block device is not mapped
UbuntuWindow - regular geometry
2015/01/26 12:44:21 main.qml:87: file:////usr/share/ciborium/qml/main.qml:87:29: QML SafeRemoval: Binding loop detected for property "height"
2015/01/26 12:44:21 main.qml:87: file:////usr/share/ciborium/qml/main.qml:87:29: QML SafeRemoval: Binding loop detected for property "height"
2015/01/26 12:44:21 main.qml:87: file:////usr/share/ciborium/qml/main.qml:87:29: QML SafeRemoval: Binding loop detected for property "width"
2015/01/26 12:44:22 main.qml:84: file:////usr/share/ciborium/qml/main.qml:84:29: QML FormatDialog: Binding loop detected for property "height"
2015/01/26 12:44:22 main.qml:84: file:////usr/share/ciborium/qml/main.qml:84:29: QML FormatDialog: Binding loop detected for property "height"
2015/01/26 12:44:22 main.qml:84: file:////usr/share/ciborium/qml/main.qml:84:29: QML FormatDialog: Binding loop detected for property "width"
2015/01/26 12:44:22 window.cpp:268: UbuntuWindow::handleSurfaceFocusChange(focused=true)
2015/01/26 12:44:22 window.cpp:242: UbuntuWindow::handleSurfaceResize(width=540, height=919)
2015/01/26 12:44:22 clipboard.cpp:116: UbuntuClipboard - Got invalid serialized mime data. Ignoring it.
2015/01/26 12:44:36 Unhandled object path /org/freedesktop/UDisks2/jobs/10
2015/01/26 12:44:36 Remove event for /org/freedesktop/UDisks2/jobs/10
2015/01/26 12:44:36 Removing device /org/freedesktop/UDisks2/jobs/10
2015/01/26 12:44:36 Issues while unmounting /org/freedesktop/UDisks2/block_devices/mmcblk1p1 : org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/mmcblk1p1: Command-line `umount "/media/phablet/6551-D523"' exited with non-zero exit status 32: umount: /media/phablet/6551-D523: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

2015/01/26 12:44:36 Error while trying to unmount SA32G : org.freedesktop.UDisks2.Error.DeviceBusy: Error unmounting /dev/mmcblk1p1: Command-line `umount "/media/phablet/6551-D523"' exited with non-zero exit status 32: umount: /media/phablet/6551-D523: target is busy
        (In some cases useful info about processes that
         use the device is found by lsof(8) or fuser(1).)

2015/01/26 12:44:36 Block device removed

Related branches

Bill Filler (bfiller)
summary: - Can safely remove SD card when a background app has it open
+ Can't safely remove SD card when a background app has it open
Changed in ciborium (Ubuntu):
importance: Undecided → High
Revision history for this message
Manuel de la Peña (mandel) wrote :

We are working on displaying an error letting the user know that the device is in use. I don't think we can force the other processes to stop.

Changed in ciborium (Ubuntu):
assignee: nobody → Manuel de la Peña (mandel)
Changed in ciborium (Ubuntu RTM):
assignee: nobody → Manuel de la Peña (mandel)
importance: Undecided → High
Changed in ciborium (Ubuntu):
status: New → In Progress
Changed in ciborium (Ubuntu RTM):
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ciborium - 0.2.12+15.04.20150316.7-0ubuntu1

---------------
ciborium (0.2.12+15.04.20150316.7-0ubuntu1) vivid; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk
  * Resync trunk
  * Resync trunk
  * Resync trunk added: po/cs.po

  [ Manuel de la Pena ]
  * Add dialogs for the format an unmount errors.
  * Ensure that more than one format operation can be performed in the
    ciborium ui.
  * Ensure that the default dirs are created after the sd card has been
    formatted. (LP: #1421898)
  * Ensure that we can format and safetly remove 10 times wihtout issues
    by querying the drives after each action and updating the internal
    cache. Improve UI to make sure that a format cannot be done when a
    device is no mounted. (LP: #1414731)
  * Improve the ui overall.
  * Increase the test coverage.
  * Track mount and unmount events. Allow to unmount and format a
    unlimited number of times without living the application.
 -- CI Train Bot <email address hidden> Mon, 16 Mar 2015 21:36:32 +0000

Changed in ciborium (Ubuntu):
status: In Progress → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ciborium - 0.2.12+15.04.20150316.7~rtm-0ubuntu2

---------------
ciborium (0.2.12+15.04.20150316.7~rtm-0ubuntu2) 14.09; urgency=medium

  [ CI Train Bot ]
  * New rebuild forced.
  * Resync trunk
  * Resync trunk
  * Resync trunk
  * Resync trunk added: po/cs.po

  [ Manuel de la Pena ]
  * Add dialogs for the format an unmount errors.
  * Ensure that more than one format operation can be performed in the
    ciborium ui.
  * Ensure that the default dirs are created after the sd card has been
    formatted. (LP: #1421898)
  * Ensure that we can format and safetly remove 10 times wihtout issues
    by querying the drives after each action and updating the internal
    cache. Improve UI to make sure that a format cannot be done when a
    device is no mounted. (LP: #1414731)
  * Improve the ui overall.
  * Increase the test coverage.
  * Track mount and unmount events. Allow to unmount and format a
    unlimited number of times without living the application.

ciborium (0.2.12+15.04.20150213-0ubuntu1) vivid; urgency=medium

  *

ciborium (0.2.12+15.04.20150212-0ubuntu1) vivid; urgency=medium

  [ Ubuntu daily release ]
  * New rebuild forced

  [ Albert Astals Cid ]
  * Fix crash if context.file is null (LP: #1418544)

  [ Manuel de la Pena ]
  * Ensure that we remount the drives after we format them. Remove
    deadlocks.

ciborium (0.2.12+15.04.20141201-0ubuntu1) vivid; urgency=low

  [ Sergio Schvezov ]
  * Create standard home dirs (Documents, Downloads, Music, Pictures and
    Videos) after mounting, if they don't exist
 -- CI Train Bot <email address hidden> Mon, 16 Mar 2015 21:36:32 +0000

Changed in ciborium (Ubuntu RTM):
status: In Progress → Fix Released
Changed in canonical-devices-system-image:
status: New → Fix Released
milestone: none → ww13-ota
importance: Undecided → High
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.