question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Maximum call stack size exceeded` error when accessing relationship

See original GitHub issue

When I try to access a property of a belongs to relationship of a changeset object, I get a Maximum call stack size exceeded error. The error comes out wether you use the changeset-get helper or not.

Example:

{{this.changeset.belongsToRelationship.name}}

or

{{changeset-get this.changeset "belongsToRelationship.name"}}

The changeset object was created using

this.set('changeset', new Changeset(this.model));

Here’s what the error looks like: Screen Shot 2020-06-07 at 04 11 11

From what I was able to understand, I’m getting into an infinite loop around the safeGet here on the validated-changeset package: https://github.com/validated-changeset/validated-changeset/blob/e1dd9a65d19fd1e269b48049855421d32a041cfd/src/utils/object-tree-node.ts#L49

The key that it loops in is __CUSTOM_TAG_FOR__ember159149944767897589162650__.

I tried to PR a failing test, but it seemed like relationships are pretty will tested in ember-changeset, so I’m a bit lost now. 😦

I’m using version 3.5.5, but this also happened with every other 3.X version.

Using ember and ember data 3.18.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
miguelcobaincommented, Jun 12, 2020

@snewcomer I was able to reproduce this in a failing test this time: #504

0reactions
miguelcobaincommented, Jun 14, 2020

I can confirm that it is working now. Thanks a lot @snewcomer !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Maximum call stack size exceeded when filtering objects with ...
If I try to filter the object by its id everything works fine, but once I try to get a list of some...
Read more >
"RangeError: Maximum call stack size exceeded" when using ...
Hi Matthew! I'm getting the "RangeError: Maximum call stack size exceeded" error when trying to do: this.$store .dispatch('jv/get', ...
Read more >
Maximum call stack size exceeded when filtering ... - MongoDB
After adding some persons and several of them with a company, I try to filter by age and get the ones that are...
Read more >
Maximum call stack size exceeded error | Edureka Community
The problem is that you are calling a function which in turn calls another function. This happens because of a recursive function with...
Read more >
[Node] RangeError: Maximum call stack size exceeded - Agents
Hello,. I have an error with node.js new relic agent installed on a k8s pod along with my service. My error is listed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found