These are chat archives for canjs/canjs

20th
Mar 2017
Szabolcs Schmidt
@sszabolcs
Mar 20 2017 11:08

Hi!

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 http://www.place-my-order.com/
  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.
    screenshot
Gira Minus
@gKreator
Mar 20 2017 12:29
I ran into something like this, i dont remember much but has to do with the dev tools themselves