logdna-browser
logdna-browser copied to clipboard
Browser hang when logging console message
After putting my create-react-app into production using logdna-browser, I received two reports from end users of the browser hanging completely. My suspicion is that it is the same problem as this issue: https://github.com/pinojs/pino/issues/990
On reverting the update that added logdna-browser, the same users reported the hanging problem was gone. I asked one of the users to send their browser console output to see what was there that might have been triggering the problem. I think it's likely to be the non-fatal error shown below (from somewhere deep in threejs):
(FWIW, this looks like it contains an instance of https://github.com/mrdoob/three.js/blob/master/src/math/Box3.js)
Additionally, I confirmed that logdna-browser is the only package in my project that uses fast-safe-stringify:
npm ls fast-safe-stringify
[email protected]
└─┬ @logdna/[email protected]
└── [email protected]
I've not been able to reproduce the browser hang so far, but I suspect outputting an object that contains circular references may trigger it.