Version: (using KDE KDE 3.5.7) OS: Linux There's currently no check that the FFT averaging length is smaller than the data length. Particularly with Spectrograms, this leads to wasted memory if the FFT length isn't set to something reasonable.
SVN commit 678549 by dhanson: CCBUG:147050 if averageLen is too large, ignore it. M +1 -1 psdcalculator.cpp --- branches/work/kst/1.5/kst/src/libkstmath/psdcalculator.cpp #678548:678549 @@ -314,7 +314,7 @@ int PSDCalculator::calculateOutputVectorLength(int inputLen, bool average, int averageLen) { int psdloglen; - if (average) { + if (average && pow(2.0, averageLen) < inputLen) { psdloglen = averageLen; } else { psdloglen = int(ceil(log(double(inputLen)) / log(2.0)));
*** Bug has been marked as fixed ***.