Uploaded image for project: 'SongKong'
  1. SongKong
  2. SONGKONG-901

Incorrect use of getAbsolutePath() on moved files during Delete Duplicates.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.17
    • Fix Version/s: 3.18
    • Component/s: Matching
    • Labels:
      None
    • Forum Username:
      rogertueting

      Description

      Comparator failing if songs are moved (by iTunes) during Delete Duplicates analysis, with further error when try to delete songs, but the second error occurs because trying to use getAbsolutePath() on a non-existent file.

      java.io.FileNotFoundException: Unable to find:/Volumes/LaCie_LaSaw/AAA LaSaw iTunes/iTunes Media/Music/Lily Allen/Alright, Still/04 Everything's Just Wonderful 1.mp3
      at org.jaudiotagger.audio.AudioFileIO.checkFileExists(AudioFileIO.java:303)
      at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:279)
      at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:150)
      at com.jthink.songkong.analyse.filename.AudioQualityComparator.compare(AudioQualityComparator.java:34)
      at com.jthink.songkong.analyse.filename.AudioQualityComparator.compare(AudioQualityComparator.java:21)
      at java.util.TimSort.countRunAndMakeAscending(TimSort.java:351)
      at java.util.TimSort.sort(TimSort.java:216)
      at java.util.Arrays.sort(Arrays.java:1512)
      at java.util.ArrayList.sort(ArrayList.java:1454)
      at java.util.Collections.sort(Collections.java:175)
      at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.deleteDuplicates(DeleteDuplicatesController.java:152)
      at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.start(DeleteDuplicatesController.java:385)
      at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:54)
      at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:22)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at javax.swing.SwingWorker.run(SwingWorker.java:334)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

      java.lang.Exception
      at com.jthink.songkong.analyse.general.Errors.addError(Errors.java:27)
      at com.jthink.songkong.analyse.analyser.FileChecker.isFileWritable(FileChecker.java:28)
      at com.jthink.songkong.db.SongCache.deleteDuplicateSong(SongCache.java:777)
      at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.deleteDuplicates(DeleteDuplicatesController.java:186)
      at com.jthink.songkong.analyse.toplevelanalyzer.DeleteDuplicatesController.start(DeleteDuplicatesController.java:385)
      at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:54)
      at com.jthink.songkong.ui.swingworker.DeleteDuplicates.doInBackground(DeleteDuplicates.java:22)
      at javax.swing.SwingWorker$1.call(SwingWorker.java:295)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at javax.swing.SwingWorker.run(SwingWorker.java:334)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      at java.lang.Thread.run(Thread.java:745)

        Attachments

          Activity

            People

            • Reporter:
              ijabz Paul Taylor [Administrator]
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: