real-zony / ZonyLrcToolsX

ZonyLrcToolsX 是一个能够方便地下载歌词的小软件。
MIT License
1.35k stars 112 forks source link

扫描完歌曲就崩溃了 #59

Closed happyfence closed 3 years ago

happyfence commented 4 years ago

exception.log

happyfence commented 4 years ago

2019年12月29日 16:17:19 - 产生了异常。 异常提示信息:指定的参数已超出有效值的范围。 参数名: length 异常堆栈信息: 在 TagLib.ByteVector.Mid(Int32 startIndex, Int32 length) 位置 C:\code\taglib-sharp\src\TaglibSharp\ByteVector.cs:行号 439 在 TagLib.Flac.Picture..ctor(ByteVector data) 位置 C:\code\taglib-sharp\src\TaglibSharp\Flac\Picture.cs:行号 94 在 TagLib.Flac.Metadata..ctor(IEnumerable`1 blocks) 位置 C:\code\taglib-sharp\src\TaglibSharp\Flac\File.cs:行号 574 在 TagLib.Flac.File.ReadStart(Int64 start, ReadStyle propertiesStyle) 位置 C:\code\taglib-sharp\src\TaglibSharp\Flac\File.cs:行号 358 在 TagLib.NonContainer.File.Read(ReadStyle propertiesStyle) 位置 C:\code\taglib-sharp\src\TaglibSharp\NonContainer\File.cs:行号 374 在 TagLib.Flac.File..ctor(IFileAbstraction abstraction, ReadStyle propertiesStyle) 位置 C:\code\taglib-sharp\src\TaglibSharp\Flac\File.cs:行号 138 在 TagLib.File.Create(IFileAbstraction abstraction, String mimetype, ReadStyle propertiesStyle) 位置 C:\code\taglib-sharp\src\TaglibSharp\File.cs:行号 1302 在 ZonyLrcToolsX.Infrastructure.MusicTag.TagLib.MusicInfoLoaderByTagLib.Load(String musicFilePath) 在 ZonyLrcToolsX.Infrastructure.MusicTag.TagLib.MusicInfoLoaderByTagLib.LoadAsync(String musicFilePath) 在 ZonyLrcToolsX.Forms.MainForm.<>c__DisplayClass8_0.<b0>d.MoveNext() --- 引发异常的上一位置中堆栈跟踪的末尾 --- 在 System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b6_0(Object state)

real-zony commented 3 years ago

@happyfence 该问题是由于 Taglib 标签加载器引起的,在 4.0.0 preview 中,你可以尝试禁用该标签加载器,使用 FileName TagLoader 加载歌曲标签信息。