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.

Simple ember app freezes browser

See original GitHub issue

I’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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
makepaniccommented, Oct 17, 2017

@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

0reactions
michelboaventuracommented, Oct 24, 2017

Thank you @mani-mishra for test and @makepanic to show me the problem!

Read more comments on GitHub >

github_iconTop 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 >

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