davidarroyo1234 / InstagramUnfollowers

Check if people follows you back on Instagram.
MIT License
2.78k stars 260 forks source link

Debugging connection was closed. Reason: Render process gone. #39

Closed KingPsychopath closed 1 year ago

KingPsychopath commented 1 year ago

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

image

How to Reproduce

  1. Open Instagram and login to an account following more than 1000-2000 people
  2. Run code from dev terminal
  3. Wait until the amount searched approaches 1000
  4. 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.

tomleb3 commented 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.

davidarroyo1234 commented 1 year ago

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.

tomleb3 commented 1 year ago

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.

tomleb3 commented 1 year ago

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.

davidarroyo1234 commented 1 year ago

@tomleb3 I'll start doing the pagination thing. Did you start something or can i start this whitout issue?

tomleb3 commented 1 year ago

@davidarroyo1234 Nope, you can go ahead. I thought about starting to do it recently, but couldn't find the time.

davidarroyo1234 commented 1 year ago

o it recently, but could

NP, i was asking to not do the work twice.

davidarroyo1234 commented 1 year ago

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

image

How to Reproduce

  1. Open Instagram and login to an account following more than 1000-2000 people
  2. Run code from dev terminal
  3. Wait until the amount searched approaches 1000
  4. 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.