Skip to content

setExtra on objects with circular references causes out of memory exception #2178

Closed
@jameshulse

Description

@jameshulse

Package + Version

  • @sentry/browser

Version:

5.2.0 but can't see a fix to affected line in master

Description

An error is being thrown and using the Vue integration I believe it is automatically collecting prop data. Inside the scope.ts setExtra call we are hitting an infinite loop / out of memory exception because the object passed is very large or has circular references.

It appears that the solution would be to pass a 'depth' parameter to the normalize function. It appears that a similar issue has been raised and fixed before for bread crumbs and it was decided to hard code the depth to 2. I assume the fix will be similar.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions