A stack trace would have shown that it was failing while trying to stringify memory rather than a console.log a circular reference though (which I've done before and had a similarly difficult time tracking down).
Errors like this should always provide a stack trace to help point to where the error is (whether it's bad stored data, or a bad log).