Closed KingPsychopath closed 1 year ago
Might be a memory leak. Worth checking out. Need to see how I can test this since I don't follow that many users on my private account.
In the meantime, if anyone else also faced this issue, please comment here and let us know so we can assess the severity of the situation.
This is happening probably because its rendering 1000 user entities. This should be paginated. This same thing happen on the first version in the early dev one year ago. in console mode it was not happening because it was plain text i guess.
1 option could be to paginate 100 users per page. And optionally a search bar.
Oh I didn't know you've had this issue in the past. But still, seems strange that a browser would struggle rendering a list of ~1k users. Then again I might be wrong. I'll try to reproduce somehow and see what I can find.
Was able to easily reproduce by looping through the results. @davidarroyo1234 You were right, I guess it is too much for the browser. Need to see how to manage this. Should be refactored with pagination/intersection-observer/tabs/etc..
In the mean time, the older version that outputs to console still works just fine for anyone who needs it. Here's the link to that version: https://github.com/davidarroyo1234/InstagramUnfollowers/tree/84a0488a33c01dbb7edff70437b63cdb4d161a3f
Note to self: Add a ref to this version in the readme as well.
@tomleb3 I'll start doing the pagination thing. Did you start something or can i start this whitout issue?
@davidarroyo1234 Nope, you can go ahead. I thought about starting to do it recently, but couldn't find the time.
o it recently, but could
NP, i was asking to not do the work twice.
Summary
At larger amounts of followings(500+) on Edge and Chrome the tool appears to halt and crash.
System Environment
AMD Ryzen 5950x RTX 3080 64GB Ram
Edge Version 107.0.1418.52 (Official build) (64-bit)
Screenshot
How to Reproduce
- Open Instagram and login to an account following more than 1000-2000 people
- Run code from dev terminal
- Wait until the amount searched approaches 1000
- An error should occur in terminal and the page should crash.
Suggested Fix
The ability to pause the search until root cause is found; so that unfollowers can be removed in chunks rather than in bulk.
Could you please check it again with the new update? Now should not crash due the new pagination integration.
Summary
At larger amounts of followings(500+) on Edge and Chrome the tool appears to halt and crash.
System Environment
AMD Ryzen 5950x RTX 3080 64GB Ram
Edge Version 107.0.1418.52 (Official build) (64-bit)
Screenshot
How to Reproduce
Suggested Fix
The ability to pause the search until root cause is found; so that unfollowers can be removed in chunks rather than in bulk.