Media removals aren't detected sometimes

Bug #1238017 reported by Michal Hruby
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
mediascanner
Won't Fix
High
Unassigned
mediascanner (Ubuntu)
Won't Fix
High
Unassigned

Bug Description

On a few occasions I had mediascanner not pick up removals from the ~/Videos directory (when either removing via mtp or directly on the device with rm), when that happened, the mediascanner scope still provided search results for the now-deleted items, and even a device reboot didn't remove them from the database.

Fix for this could be twofold:
1) figure out why mediascanner didn't pick up the deletions (it was running, so it should have picked them up)
2) if it really does miss a removal (because it crashed at the time of removal or wasn't running at all), rescan on reboot should remove the stale items

As a side note this happened to me when one of the media files I had in ~/Videos was a .wmv for which there were no codecs on the device and the log had some warnings/errors about that (incorrect error handling perhaps?)

Tags: scopes-s
Revision history for this message
Omer Akram (om26er) wrote :

I just flashed the phone, and put a few videos in ~/Videos. It took 30 seconds for all the thumbnails to appear in the scope. Then I deleted all the video files but I still see them in the Videos scope.

Changed in mediascanner:
importance: Undecided → High
status: New → Confirmed
Changed in mediascanner (Ubuntu):
importance: Undecided → High
status: New → Confirmed
Michal Hruby (mhr3)
tags: added: scopes-s
Revision history for this message
Dave Morley (davmor2) wrote :

Confirmed this is still the case on image trusty r57

Revision history for this message
Jussi Pakkanen (jpakkane) wrote :

This is a bug in version 1 of mediascanner. It has been fixed in version 2. Once we switch versions (hopefully soon, will definitely be in 14/04) then this issue will go away (assuming the Dash reacts correctly to invalidated result sets, which I think it already does).

We don't plan on fixing v1 as that would take quite a lot of effort and the real solution is moving to v2.

Revision history for this message
Michi Henning (michihenning) wrote :

mediascanner is no longer being maintained, marking as won't fix.

Changed in mediascanner (Ubuntu):
status: Confirmed → Won't Fix
Changed in mediascanner:
status: Confirmed → Won't Fix
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.