-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Ember Data error after upgrading Ember to 3.21.1 #19131
Comments
I realise this is pretty niche, but it'd be great if somebody could run the demo repo. Hoping to get clarification if this is a bug or not. Thanks! |
I've had a go at simplifying the reproduction a little and have added some console logs to hopefully aid my explanation below (diff here). What appears to be happening is:
I've run the reproduction repo code with various different versions of If I downgrade @pzuraq sorry for the random ping, but is there any chance you could give us a steer as to whether this looks like an Ember bug, an Ember Data bug, or simply something wrong with our code? EDIT: in case it matters, I am running the tests with |
Hey, I'm sorry this is on the backburner for me at the moment. I may have time in the next few weeks, but I'm not sure exactly when. I would say that it's very strange that the getter is being computed during teardown. Did that happen before? If that's what changed, then I think this is definitely an Ember bug. It's good to know though, since that narrows down where the bug is happening - it could either be something to do with the test harness/rerendering/tearing down and nothing to do with Ember Data at all, or it could be something deeper affecting Ember Data. |
Thanks for the quick reply :) It didn't happen before, no - if you downgrade the ember version in that repo to |
The thing that's confusing me is this causes a LOT of test failures in our real app, but |
@pzuraq I don't suppose you've had a chance to take a look at this? I'm completely stumped and it's currently blocking us from upgrading from |
The fix for this (and description of the issue) is located here: glimmerjs/glimmer-vm#1276 The issue is triggered by modifiers created using less than the latest capabilities which currently eagerly consume things during teardown resulting in backtracking re-renders. In the case of this issue, this pulled on a getter that was using a record that EmberData had already torn down. |
Sorry, I still haven't had time to look into this recently. The plan to address it currently is:
We're also planning on releasing new versions of I don't believe that the change will be breaking in |
Thank you both for the explanations and help, much appreciated 🙌 |
Thank you @runspired for putting two and two together here. |
Upgrades the VM to include the fix for eager argument consumption on modifier destruction. Fixes #19131
Upgrades the VM to include the fix for eager argument consumption on modifier destruction. Fixes emberjs#19131
Upgrades the VM to include the fix for eager argument consumption on modifier destruction. Fixes emberjs#19131
🐞 Describe the Bug
This is an odd one - I wasn't sure if to raise here or in ED. (I tried discord too)
After upgrading Ember from 3.19 to 3.21.1, the demo app test suite fails with an Ember Data error.
🔬 Minimal Reproduction
I have whittled down the cause to the following reproduction app
https://github.com/amk221/-ember-inverse-rel-error
😕 Actual Behavior
The app bombs out with the above error
🤔 Expected Behavior
The error should not happen, because all the required data is present. And the error does not happen < 3.21.1.
🌍 Environment
➕ Additional Context
It's something to do with the
inverse
relationship.The text was updated successfully, but these errors were encountered: