Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Infinitely duplicating stars under the untagged category #256

Open
caccavale opened this issue Apr 9, 2019 · 10 comments
Open

Infinitely duplicating stars under the untagged category #256

caccavale opened this issue Apr 9, 2019 · 10 comments

Comments

@caccavale
Copy link

Astral is loading forever by repeatedly adding all my stars to the untagged stars category resulting in duplicates and making the app useless. As an example:
image

@caccavale
Copy link
Author

Occurs in Chrome Version 73.0.3683.103 (Official Build) (64-bit) and Firefox 66.0.2 (64-bit) on Ubuntu 18.04.2 LTS.

Reproducible by loading the page.

@caccavale caccavale changed the title Duplicate stars under the untagged category Infinitely duplicating stars under the untagged category Apr 9, 2019
@syropian
Copy link
Member

syropian commented Apr 9, 2019

Hm, I can't seem to reproduce on my own account. I don't know if it's because you have a lot of stars, but I'm not seeing this issue on my end. Is there any JS errors in the console? I'll check the server logs in case there's something there.

@syropian
Copy link
Member

syropian commented Apr 9, 2019

@caccavale Can you try hitting the "refresh" button? That will bust your cache entry and refetch your stars

refresh

@caccavale
Copy link
Author

caccavale commented Apr 10, 2019

Hey thanks for the quick response. An aside: I really like the project so I'm hopeful I can use it 🙃, its funny that the same reason I want to use it might be the problem.

Did a refresh of my stars and watched some console errors:
image

It seemed to stop refreshing the stars so I refreshed the page and it reproduced the original error. I'm not a huge JS dev but I'm vaguely competent. I'll see if I trace that error.

@caccavale
Copy link
Author

caccavale commented Apr 10, 2019

Just attempted another refresh after I let the page load for a bit. A similar two console errors came up when my Untagged Stars reached about 3000 or 1/2 my total stars. No idea if that is relevant but the page had been refreshing for a decent while.

image
image

And:
image

@caccavale
Copy link
Author

caccavale commented Apr 10, 2019

After the errors the page ends up stuck with ~1/2 of my stars being Untagged when in reality all by 5 are untagged. I'm assuming this puts it into a state when refreshing the page triggers the original bug.
image

@caccavale
Copy link
Author

caccavale commented Apr 10, 2019

🙃 Another refresh of the page and then clicking to reload the stars moves progress to
image

Though sometimes doing the same thing results in the error occurring at a much lower star count. I'll try and reproduce this tonight locally so I get better debug.

@syropian
Copy link
Member

So I have a couple guesses what the issue could be:

  1. All stars get cached with memcached as they get pulled in, so that subsequent reloads are fast. Each memcached entry has a 1mb limit, so there is a chance you're stars actually don't all fit in in the cache object
  2. Something with GitHub's API. I checked the server logs and noticed some errors coming back right from the GitHub API, but there wasn't any proper detail. I added an extra log check for those failures, so if you could hit try another fetch again, I can hopefully(?) get more detail as to what the problem is.

Sorry for the inconvenience 😞

@caccavale
Copy link
Author

Don't worry about it! Astral is really cool and your work is greatly appreciated. I'm not surprised my dumb amount of stars is presenting itself as an interesting test case. I'll try and get it working locally and maybe ask some more questions in the process.

@soredake
Copy link

soredake commented Dec 7, 2019

Same problem with 6.6k stars

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants