vue-auto-virtual-scroll-list icon indicating copy to clipboard operation
vue-auto-virtual-scroll-list copied to clipboard

Some kind of memory leak causing entire Chrome tab to freeze

Open chadananda opened this issue 4 years ago • 6 comments

I've been fighting with freezing problems during scroll. Basically the scroller stops loading items and then the entire application (except for the scrolling) is totally frozen requiring ending the Process for the tab entirely in the Chrome task manager. I tried about everything to simplify my items, including making them entirely functional (stateless). I got lots more speed but no resolution on the occasional application crash.

I finally switched to another scroller (vue-virtual-scroll-list) and the crashing stopped. Now I'm seriously missing the silky scrolling and jump-free scrollbar from vue-auto-virtual-scroll-list.

Any idea what about the scrolling might be causing such a crash? I'm getting no console error and Devtools profiling always locks up at the same time so I can't even investigate.

chadananda avatar Apr 23 '20 23:04 chadananda

Hi, thank you for reporting this.

I have a few questions/suggestions:

  • What version are you using?
  • If using > 0.3.0, can you try version 0.2.1 to see if the problem persists?
  • Please try to log the event updated to check if there's a loop
  • If possible, can you disclose the code that is yielding the issue?

cristovao-trevisan avatar Apr 24 '20 14:04 cristovao-trevisan

The above referenced issue is probably the same, but I'll favor this one as the other has been reported in Portuguese

cristovao-trevisan avatar Apr 24 '20 14:04 cristovao-trevisan

Hmm, I'll try version 0.2.1 and see if the problem continues.

AldeirJampier avatar Apr 24 '20 14:04 AldeirJampier

I've switched back to 0.2.1 and it seems stable, no more crashing.

(Of course it does not support scrolling past large images nor setIndex) ;)

chadananda avatar Apr 25 '20 03:04 chadananda

Thanks, know I can check the diff to see the problem. I'll fix it I soon as I can (latter this week probably)

cristovao-trevisan avatar Apr 25 '20 15:04 cristovao-trevisan

It seems that I cannot reproduce the crash on either 0.2.1 or 0.3.0. It seems to be confined to 0.3.0-beta. It's highly intermittent so it took a while to verify but it seems to be the case.

You mentioned using the updated event to monitor. What is that? I tried adding @updated="handler" to the scroller component but handler does not get called.

chadananda avatar Apr 25 '20 17:04 chadananda