real-zony / ZonyLrcToolsX

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

1.0.0.2扫描完报错 #67

Closed 2023685454 closed 3 years ago

2023685454 commented 4 years ago

2020年07月04日 11:03:49 - 产生了异常。 异常提示信息:指定的参数已超出有效值的范围。 参数名: 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)

咋办 exception.log

2023685454 commented 4 years ago

怎么解决啊

smile-xuc commented 3 years ago

遇到类似问题,期待修复

real-zony commented 3 years ago

@smile-xuc 该问题是由于 taglib 引起的,会在 12 日 8 号(0.1.9.6)的版本暂时屏蔽异常解决。 根本原因暂时无法在我这边复现,会在 2.0.0 版本中使用新的 Tag 标签库进行实现尝试解决该问题。

real-zony commented 3 years ago

@smile-xuc @2023685454 v4.0.0 preview 采用文件名作为降级策略,可以尝试 4.0.0 版本。