Mediascanner leaks fds and eventually crashes

Bug #1221321 reported by Paweł Stołowski
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
mediascanner
Confirmed
Critical
Unassigned

Bug Description

I'm experiencing frequent crashes of mediascanner-service when scanning a large mp3 collection (27GB). Note the 'Too many open files' error in the attached log file.

Apparently there is a file descriptor around grillo's lastfm cache files. The problem can also happen on small music collections over longer period of time when new files get added.

As a result of the crash, mediascanner will most likely never flush lucene index and thus never write actual index data. It'll get restared by upstart, but will most likely crash again and never actually finish the task of scanning.

Revision history for this message
Paweł Stołowski (stolowski) wrote :
Revision history for this message
Paweł Stołowski (stolowski) wrote : Re: Mediascanner leaks fds and crashes with large music collection

The leak seems to be related to cache files of grilo's lastfm plugin (see attached log of open fds at the moment it crashes in gdb), but it's unclear yet whether it's a problem in plugin itself, grilo's plugin framework or in mediascanner using the plugin incorrectly.

summary: - Mediascanner crashes with large music collection
+ Mediascanner leaks fds and crashes with large music collection
summary: - Mediascanner leaks fds and crashes with large music collection
+ Mediascanner leaks fds and eventually crashes
description: updated
Changed in mediascanner:
status: New → Confirmed
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.