GNOME Bugzilla – Bug 614065
Banshee is only importing certain files
Last modified: 2010-04-01 04:57:54 UTC
Created attachment 157234 [details] Debug output of importing action Attached you will find the [$ banshee --debug] output of the error when I try to import music from my main folder, which is located in a ntfs partition I have symlinked to my home folder--ext3. Of the ~2,000 songs I have, I can only import and listen to 92 of them. The protocol banshee is following to import or discard a music file, is unknown by me.
From the log, looks like this might be the culprit: [Warn 17:27:00.587] Caught an exception - System.InvalidOperationException: Path doesn't exist! (in `Mono.Posix') at Mono.Unix.UnixFileSystemInfo.AssertValid () [0x00000] at Mono.Unix.UnixFileSystemInfo.get_IsSymbolicLink () [0x00000] at Banshee.IO.Unix.Directory.TraverseSymlink (Mono.Unix.UnixFileSystemInfo info) [0x00000] at Banshee.IO.Unix.Directory+<GetDirectories>c__Iterator1.MoveNext () [0x00000] at Banshee.IO.DirectoryScannerPipelineElement.ScanForFiles (System.String source, Boolean skip_hidden) [0x00000]
Wolter, is the top-level folder you're trying to import the symlink to your NFS share?
Oh, just realized. Is it importing some of your files under this symlink/on the NFS share, but just not most of them? That would be quite bizarre, and not what I was thinking.
If you could get Banshee building from source so you could test some patches, that would be very helpful! Here are some instructions: http://banshee-project.org/download/development/
Well, I'll try to find some time to do it. Just wanted to remind you that it is not an NFS share, its an NTFS (Windows' file system) partition. I hope I don't have to download many dependencies.
I'm ready for patches.
Created attachment 157421 [details] [review] debug patch Wolter, could you apply the attached patch, then compile, run, import the files and attach the log. Please ping me on IRC if you have problems applying or compiling, my nick is alexk.
It was a broken symlink. Committed a fix which checks for those. commit 6243e79385970abe6c3f04e9c826b5836b56e52c Author: Alexander Kojevnikov <alexander@kojevnikov.com> Date: Tue Mar 30 11:20:57 2010 +1100 [IO.Unix] Check for broken symlinks (bgo#614065)
Thanks for the fix Alex, wonderful find and work.
For others suffering from this bug, the following will help you find the broken link: for i in `find <DIRNAME> -type l`; do [ -e $i ] || echo $i is broken; done Just change DIRNAME to your music directory, and you should be all set.
Nice script Mike