Really stupid coding error (my error); frameCount is not updated (from zero) if the for() loop hits maxBackTraceFrames.