sentry-javascript: Out of memory on exception serialization that contains a jQuery element

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node (raven for node)
  • other:

Version:

4.2.3

Description

Using angular@1.7.5

  1. do console.warn(angular.element($0)) ($0 represents the selected element in the elements tab of Chrome dev tools)
  2. 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)

Most upvoted comments

@kamilogorek We upgraded to 4.6.1 but the issue still exists. Please see https://cl.ly/57191404a1af

We’ve upgraded to 4.6.4 recently to fix other issues. Can confirm this happens in the latest version, in a node environment - triggering an out of memory error:

screenshot 2019-03-05 at 13 09 13

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.