vue-auto-virtual-scroll-list
vue-auto-virtual-scroll-list copied to clipboard
Some kind of memory leak causing entire Chrome tab to freeze
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.
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?
The above referenced issue is probably the same, but I'll favor this one as the other has been reported in Portuguese
Hmm, I'll try version 0.2.1 and see if the problem continues.
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) ;)
Thanks, know I can check the diff to see the problem. I'll fix it I soon as I can (latter this week probably)
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.