-
-
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
Router Not Cleaned Up After Acceptance Tests #12780
Comments
can you provide an isolated reproduction please |
A bare Ember 1.13.11 app does not have this problem. I don't have any idea how to identify what part of our app (or what addon) is holding on to router references. |
No, that's not right. These routers have the page URLs, not API URLs in them. |
@jamesarosen if you can't narrow it down, we could find some time to screen share? |
Yes please! I'll coordinate on Slack 😀 |
i believe the issue was in an addon, such as ember-cli-mirage |
@jamesarosen do you remember what the issue was for this and how you solved it? |
I had two cases:
|
I've been doing some memory profiling on my Ember app's tests suite. Our tests suites were failing in CI without providing any error message. After eliminating many other possible causes, I started to focus on out-of-memory errors.
Here are two heap snapshots from the same test run, about 20 seconds (or about 20 tests) apart: one, two
The top entry,
Class
is dominated by instances ofrouter
. The second,Array
, is dominated bynextStates
.It seems that
Ember.run(application, 'destroy');
does not properly clean up theRouter
and its internals.The text was updated successfully, but these errors were encountered: