I'm building a simple admin dashboard with Laravel 8, running it in a docker container. Whenever there's an exception of any kind, the page locks up for ~10 seconds, then dumps a massive stack trace that seems to indicate that PHP has run out of memory (while attempting to report the error?).
I've tried disabling my custom exception handler and saw no change. I've tried stepping through via XDebug, but it simply disconnects without anything helpful once the memory overflow happens.
I've tried upgrading all packages to make sure that it isn't a previously fixed bug... no dice.
I've also generated an XDebug Trace which ended up taking ~20GB uncompressed and showed nothing that made sense to me. In KCachegrind, the largest amount of memory displayed doesn't even come close to the limit that PHP reports crashing at.
At this point I'm stumped. If you have an idea on how to diagnose this further, please let me know.
Here's the full stack trace of an error resulting from me forgetting an href attribute on a button component:
https://gist.github.com/ProudOne/b7ed01fa87ee45660de8ba2a1f45c7a0
Edit: Just to clarify; I know that in the stack trace above, I've got a missing HREF in a button component. It's the fact that php runs out of memory (1GB!!) afterward, presumably while processing that error, that has me stumped.
Memory runs out here:
https://gist.github.com/ProudOne/b7ed01fa87ee45660de8ba2a1f45c7a0#file-gistfile1-txt-L73