jasonmc/forked-daapd — Issue #83: Filescanner gets hung up on certain non-audio filetypes
Author: natlownes
Created: 2012-01-29 21:43:16+00:00
State: open

I can watch the filescanner threads each scan audio files perfectly, but it looks like when one encounters certain types of files, it looks like they all die after scanning what they were doing, leaving the one that discovered the offending file to pin the CPU.

```bash
sudo lsof -u daapd |grep storage
```

Output:

```bash
forked-da 30724 daapd 67r REG 0,17 35349 13238644 /mnt/storage/nat/music/mp3/Juston Stens and the Get Real Gang/Mac - Add to iTunes.app/Contents/Resources/English.lproj
/MainMenu.nib (sv0.int.looting.biz:/mnt/storage/nat/)
forked-da 30724 daapd 82r DIR 0,17 4096 13238400 /mnt/storage/nat/music/mp3/Juston Stens and the Get Real Gang/Mac - Add to iTunes.app/Contents/Resources/English.lproj
(sv0.int.looting.biz:/mnt/storage/nat/)
```

This is has been running for about a week. I noticed it at first doing this with Thumbs.db files, so I deleted all those, now it's choking on these.

Maybe a solution might be to allow a configuration option to only scan for files with particular extensions? If you think that's something, I wouldn't mind diving in and trying to put together a patch.