astral icon indicating copy to clipboard operation
astral copied to clipboard

Infinitely duplicating stars under the untagged category

Open caccavale opened this issue 5 years ago • 10 comments

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 avatar Apr 09 '19 13:04 caccavale

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 avatar Apr 09 '19 13:04 caccavale

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 avatar Apr 09 '19 13:04 syropian

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

refresh

syropian avatar Apr 09 '19 14:04 syropian

Hey thanks for the quick response. An aside: I really like the project so I'm hopeful I can use it :upside_down_face:, 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 avatar Apr 10 '19 08:04 caccavale

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 avatar Apr 10 '19 08:04 caccavale

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 avatar Apr 10 '19 08:04 caccavale

:upside_down_face: 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.

caccavale avatar Apr 10 '19 08:04 caccavale

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 😞

syropian avatar Apr 10 '19 13:04 syropian

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.

caccavale avatar Apr 12 '19 17:04 caccavale

Same problem with 6.6k stars

soredake avatar Dec 07 '19 13:12 soredake