# HG changeset patch # User Chris Cannam # Date 1564663703 -3600 # Node ID 3e34eeb926472ac682092d38ecf088cbbd973f5e # Parent a27a6113fdd78ac1bdbb869b7966b72f05740e13 Debug tidy diff -r a27a6113fdd7 -r 3e34eeb92647 framework/Align.cpp --- a/framework/Align.cpp Thu Jul 18 14:12:00 2019 +0100 +++ b/framework/Align.cpp Thu Aug 01 13:48:23 2019 +0100 @@ -229,6 +229,8 @@ alignmentModel->setPathFrom(rec.preparatory); m_pendingTuningDiffs[tuningDiffOutputModelId] = rec; + + SVDEBUG << "Align::alignModelViaTransform: Made a note of pending tuning diff output model id " << tuningDiffOutputModelId << " with input " << rec.input << ", alignment model " << rec.alignment << ", preparatory model " << rec.preparatory << endl; } return true; @@ -241,9 +243,10 @@ if (m_pendingTuningDiffs.find(tuningDiffOutputModelId) == m_pendingTuningDiffs.end()) { - SVCERR << "ERROR: Align::tuningDifferenceCompletionChanged: Model " - << tuningDiffOutputModelId - << " not found in pending tuning diff map!" << endl; + SVDEBUG << "NOTE: Align::tuningDifferenceCompletionChanged: Model " + << tuningDiffOutputModelId + << " not found in pending tuning diff map, probably " + << "completed already" << endl; return; } @@ -290,7 +293,7 @@ } else { SVCERR << "Align::tuningDifferenceCompletionChanged: No tuning frequency reported" << endl; } - + ModelById::release(tuningDiffOutputModel); alignmentModel->setPathFrom({}); // replace preparatoryModel @@ -298,6 +301,12 @@ rec.preparatory = {}; m_pendingTuningDiffs.erase(tuningDiffOutputModelId); + + SVDEBUG << "Align::tuningDifferenceCompletionChanged: Erasing model " + << tuningDiffOutputModelId << " from pending tuning diffs and " + << "launching the alignment phase for alignment model " + << rec.alignment << " with tuning frequency " + << tuningFrequency << endl; beginTransformDrivenAlignment (rec.input, rec.alignment, tuningFrequency);