From 4bca8835a784798e41f1845ec0a5b9b1eaaedce0 Mon Sep 17 00:00:00 2001 From: Maiko Date: Sun, 12 May 2024 18:33:01 +0900 Subject: [PATCH 1/2] Showing positions that failed to render --- OpenUtau.Core/Classic/ClassicRenderer.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OpenUtau.Core/Classic/ClassicRenderer.cs b/OpenUtau.Core/Classic/ClassicRenderer.cs index eaae51d89..0ddf581c9 100644 --- a/OpenUtau.Core/Classic/ClassicRenderer.cs +++ b/OpenUtau.Core/Classic/ClassicRenderer.cs @@ -72,7 +72,8 @@ public Task RenderInternal(RenderPhrase phrase, Progress progress, item.resampler.DoResamplerReturnsFile(item, Log.Logger); } if (!File.Exists(item.outputFile)) { - throw new InvalidDataException($"{item.resampler} failed to resample \"{item.phone.phoneme}\""); + DocManager.Inst.Project.timeAxis.TickPosToBarBeat(item.phone.position, out int bar, out int beat, out int tick); + throw new InvalidDataException($"{item.resampler} failed to resample \"{item.phone.phoneme}\" at {bar}:{beat}.{string.Format("{0:000}", tick)}"); } if (!(item.resampler is WorldlineResampler)) { VoicebankFiles.Inst.CopyBackMetaFiles(item.inputFile, item.inputTemp); From 45ad472110c69ad1921b35ecff4b512c409083af Mon Sep 17 00:00:00 2001 From: Maiko Date: Sun, 12 May 2024 21:43:24 +0900 Subject: [PATCH 2/2] minor fix --- OpenUtau.Core/Classic/ClassicRenderer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenUtau.Core/Classic/ClassicRenderer.cs b/OpenUtau.Core/Classic/ClassicRenderer.cs index 0ddf581c9..e9717f8fc 100644 --- a/OpenUtau.Core/Classic/ClassicRenderer.cs +++ b/OpenUtau.Core/Classic/ClassicRenderer.cs @@ -72,7 +72,7 @@ public Task RenderInternal(RenderPhrase phrase, Progress progress, item.resampler.DoResamplerReturnsFile(item, Log.Logger); } if (!File.Exists(item.outputFile)) { - DocManager.Inst.Project.timeAxis.TickPosToBarBeat(item.phone.position, out int bar, out int beat, out int tick); + DocManager.Inst.Project.timeAxis.TickPosToBarBeat(item.phrase.position + item.phone.position, out int bar, out int beat, out int tick); throw new InvalidDataException($"{item.resampler} failed to resample \"{item.phone.phoneme}\" at {bar}:{beat}.{string.Format("{0:000}", tick)}"); } if (!(item.resampler is WorldlineResampler)) {