CaramelFur / Picsur

An easy to use, selfhostable image sharing service like Imgur with built in converting
https://picsur.org/
GNU Affero General Public License v3.0
774 stars 41 forks source link

Bug: My Images view renders the wrong image preview #40

Open kaiiiz opened 1 year ago

kaiiiz commented 1 year ago

For testing, I uploaded 24 images to the server, and My Images should render the preview in the following order:

However, after reloading the page: (animation)

Some images are not rendered correctly. For instance, the "1" image should render the preview of "1" instead of "13".

iShot_2023-03-22_01 02 54

The testing images: test images.zip

CaramelFur commented 1 year ago

Hmm, yep that shouldn't happen. I'll take a look.

CaramelFur commented 1 year ago

Ok I managed to reproduce the bug once, but now can't get it to happen at all. It's a really weird bug, mainly because the image somehow appears twice, instead of being shuffled wrong. I will try and look into this later, but considering it's hard to reproduce the bug it will be difficult. If you have any suggestions as to make the bug happen consistently, that would help. And thanks for reporting either way 😄

krhnoo commented 1 year ago

I can get this to replicate easily. On a GIF heavy gallery slowest loading ones generate as duplicates of previous JPG photo. I can provide gallery you can test this around.

CaramelFur commented 1 year ago

@krhnoo Yes that would be great, thanks

krhnoo commented 1 year ago

@krhnoo Yes that would be great, thanks

I've created a sandbox. How should I contact you?

CaramelFur commented 1 year ago

@krhnoo sorry for the awfully late reply, haven't had much time recently. But you can contact me via email at contact(at)caramelfur(dot)dev.

eshira commented 9 months ago

I have the same issue. A number of photos show the preview for a different photo. Changes on reload but consistently have a number of such mismatches on every load.

NerdAler1 commented 8 months ago

I had the same issue. I noticed that the bug only appeared on my primary desktop, and that any other clients did not have this issue. On the desktop I attempted to use different browsers, disable caching, removing all extensions, and reinstalling browsers. None of this fixed it. I had to re image that desktop for other reasons and have not encountered that bug since. I know its not much help, but I figured it might help someone.