Simple ember app freezes browser
See original GitHub issueI’m having a strange bug on which opening an ember app freezes my browser tab. Using chrome task manager I can see the tab is using more and more ram (it goes up to 1.8GB before chrome decides to kill it) with 100% of a cpu (the same happens on firefox). I was able to extract the behavior on a minimum app: https://github.com/michelboaventura/ember_bug
To see the problem you just need to run a ember s and open the app. Just bear in mind it may crash chrome.
Sadly I can’t debug the issue, since the tab is unresponsive and I can’t use dev tools.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
How to avoid Ember from freezing when the DOM is being ...
Javascript can freeze when Ember is rendering complex templates or when Ember Data receives massive data dumps. This freezing inherent to JS being ......
Read more >Test passes in --server mode but fails without - Ember.JS
Basically running Chrome in headless mode (what ember t does) crashes and the test complain about a browser timeout/GPU crash.
Read more >Step 2: Create a new Ember app using Ember CLI
(Permalink) Generate a new Ember application from the command line. We're going to generate a new Ember application from scratch using the Ember...
Read more >Addon Author Guide - Ember FastBoot
If that process results in an error and the server crashing, you know that your addon is trying to do something that may...
Read more >My Battle with Data Persistence in Ember Apps
I have seen a few big Ember apps frozen (I know what you're thinking, "Let it go"). The freeze was due to loads...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@mani-mishra I think your issue is that you’re trying to transition in the application routes activate hook. It means that it aborts the transition and tries to transition to foo which causes the application route to try to activate later on. This means it’ll get stuck in an infinite loop trying to activate -> transition.
You could rewrite it to use the application index route and redirect inside it to the foo route. See also Transitioning Before the Model is Known
Thank you @mani-mishra for test and @makepanic to show me the problem!