sentry-javascript: Out of memory on exception serialization that contains a jQuery element
- Review the documentation: https://docs.sentry.io/
- Search for existing issues: https://github.com/getsentry/sentry-javascript/issues
- Use the latest release: https://github.com/getsentry/sentry-javascript/releases
Package + Version
-
@sentry/browser -
@sentry/node -
raven-js -
raven-node(raven for node) - other:
Version:
4.2.3
Description
Using angular@1.7.5
- do
console.warn(angular.element($0))($0 represents the selected element in the elements tab of Chrome dev tools) - then do
Sentry.captureException(new Error('test'))
It returns an id and then after a while crashed the tab due to out of memory exception.
I’m not sure why, probably due to the serializer going to deep (related to https://github.com/getsentry/sentry-javascript/issues/1395 ?)
I will look into using before-breadcrumb to mitigate this for me for now but would be nice if Sentry can handle this out of the box.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Reactions: 3
- Comments: 21 (7 by maintainers)
@kamilogorek We upgraded to 4.6.1 but the issue still exists. Please see https://cl.ly/57191404a1af
We’ve upgraded to
4.6.4recently to fix other issues. Can confirm this happens in the latest version, in a node environment - triggering an out of memory error:After hours of debugging, we finally found the root issue and had to remove Sentry from our product. We use Nuxt.js and the version of this library is 4.5.3.
Duplicate of https://github.com/getsentry/sentry-javascript/issues/1707 I’ll get this fixed soon.