We're updating the issue view to help you get more done. 

Better handle Flac Bad Metadata issue error

Description

11/10/2018 01.31.52:BST:SongCache:addSongFileToDatabase:SEVERE: Failed AddSongToDatabase for file:\\N1-1BF0\share\import\all\The Beach Boys\All Summer Long\01-02-The_Beach_Boys-All_Summer_Long-SMRP.flac:null
java.nio.BufferUnderflowException
at java.base/java.nio.Buffer.nextGetIndex(Unknown Source)
at java.base/java.nio.HeapByteBuffer.getShort(Unknown Source)
at org.jaudiotagger.audio.flac.metadatablock.MetadataBlockDataStreamInfo.<init>(MetadataBlockDataStreamInfo.java:79)
at org.jaudiotagger.audio.flac.FlacInfoReader.read(FlacInfoReader.java:64)
at org.jaudiotagger.audio.flac.FlacFileReader.getEncodingInfo(FlacFileReader.java:42)
at org.jaudiotagger.audio.generic.AudioFileReader2.read(AudioFileReader2.java:63)
at org.jaudiotagger.audio.AudioFileIO.readFile(AudioFileIO.java:361)
at org.jaudiotagger.audio.AudioFileIO.read(AudioFileIO.java:197)
at com.jthink.songkong.db.SongCache.addSongFileToDatabase(SongCache.java:484)
at com.jthink.songkong.db.SongCache.addSongFileToDatabase(SongCache.java:453)
at com.jthink.songkong.fileloader.LoadFolderWorker.addSongsToDatabase(LoadFolderWorker.java:509)
at com.jthink.songkong.fileloader.LoadFolderWorker.call(LoadFolderWorker.java:121)
at com.jthink.songkong.fileloader.LoadFolderWorker.call(LoadFolderWorker.java:36)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)

Environment

None

Status

Assignee

Unassigned

Reporter

IJabz

Labels

None

Forum Username

craigcook

os

None

Fix versions

Affects versions

5.11

Priority

Minor