Comment 21 for bug 1193667

Revision history for this message
Chow Loong Jin (hyperair) wrote :

Okay, I figured out the issue. In PeakFinder::getPeakCenter, there are some floating point issues when peakLevel == groundLevel.

At line 199 of PeakFinder.cpp, cutLevel is calculated as 0.70f * peakLevel + 0.30f * groundLevel, which can sometimes end up with cutLevel > groundLevel due to floating point errors, and this triggers the assertion error.