These are chat archives for canjs/canjs

Mar 2017
Szabolcs Schmidt
Mar 20 2017 11:08 UTC


I don't know if I'm missing something or there is a memory leak in CanJs 3.
Following these steps anyone can reproduce the problem (I'm using Google Chrome):

  1. Open a new tab.
  2. Press F12 to show developer tools.
  3. Open
  4. Switch to Profiles tab on developer tools and take a heap snapshot.
  5. Click on the Restaurants link on the place-my-order page, then click on the Home link.
  6. Take another heap snapshot.
  7. Repeat step 5. and 6.
  8. On the Profiles tab select Snapshot 3 and list 'Objects allocated between Snapshot 1 and Snapshot 2'.
  9. Select for example the HTMLAnchorElement and view the details.
    There are three detached HTMLAnchorElement DOM elements that are not garbage collected.
Gira Minus
Mar 20 2017 12:29 UTC
I ran into something like this, i dont remember much but has to do with the dev tools themselves