Exhausted memory error
As per @Demerit's comment, and somewhat counter-intuitively, make sure you've got your debugging settings to "off" - it's running out of memory when reporting the error. If you turn the various debugging settings off, it'll still report quite a lot of detail of the error.