Scrolling a profile page crashes Chrome


(Héctor Fernández) #1

If I keep pressed PgDown on a profile page of a user with lots of posts, Chrome rapidly consumes a lot of memory and the page crashes with a He’s dead, Jim! message. (Windows 7, Chrome 36.0.1985.143 m) Firefox and IE 11 also consume a lot of memory but they don’t crash so easily.


J/k keyboard navigation doesn't function on Profile or Messages pages
(lid) #2

I can confirm this.

This is a heap snapshot. each snapshot is after pressing the “End” to scroll to bottom and load more items.


(lid) #3

This issue can be replicated with multiple profiles, That mean that user activity beside hogging memory.
The memory usage will not clear(memory leak) when user navigate out of the user activity view, which will eventually crash the process too.

replication:

  1. go to user profile
  2. scroll all the way down, initiate “load more”
  3. go to another user profile and repeat step 2-3 til crash.

(Jeff Atwood) #4

@eviltrout we should mitigate this problem in the next week if we can.


(Robin Ward) #5

We were definitely doing a lot more DOM traversal than we needed on those views. I watched the heap allocations and this patch improves things. There is still some memory bloat but it seems better:

https://github.com/discourse/discourse/commit/f05d2ed7cffa086aa674a51d52ed5f344142a372


(Jeff Atwood) #6