After screenshotting this and going back to Lemmy I had the correct image again.

    • phonics@lemmy.worldOP
      link
      fedilink
      arrow-up
      24
      ·
      9 days ago

      I do find it endlessly entertaining. Every time it happens. Trying to connect the title to the image.

      • Evil_Shrubbery@lemmy.zip
        link
        fedilink
        English
        arrow-up
        2
        ·
        8 days ago

        Yes, it is fun - even or especially when it takes me a few seconds to get what’s happening (sometimes, especially in a community, it might not be obvious).

  • idunnololz@lemmy.worldM
    link
    fedilink
    arrow-up
    27
    ·
    8 days ago

    lmao. that is funny but also really bad. I haven’t seen this bug myself but if anyone has any clues on how to reproduce this, please let me know.

    • pc486@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      12
      ·
      8 days ago

      I’ve run into this bug too. It happens when I expand an image (click it) but doesn’t load quickly and then I click another. If the second image loads before the first, when the first arrives it’ll replace the second one.

      Clearly a download event race condition.

      It’s been a small bug that I’ve been meaning to report and fix myself. I can grab the code, setup development, and get more details (or write a test) if you cannot reproduce.

      v1.68.0 (277)

      • idunnololz@lemmy.worldM
        link
        fedilink
        arrow-up
        9
        ·
        8 days ago

        Oh, I added some fixed in v1.69.0. The release should be out now. I would be curious if the issue still occurs after that update.

        • pc486@sh.itjust.works
          link
          fedilink
          English
          arrow-up
          3
          ·
          8 days ago

          I’ve updated to v1.68.2. I’ll follow up if I can reproduce the race condition again but I suspect you squashed obvious presentations of it. In commit 8a50165, the change to ImageViewerActivity.kt and LinkFetcher.kt makes reasonable sense to me for my bug. A singleton downloader in a threaded environment presents several kinds of foot-guns. Wrapping the return into a promise certainly sidesteps some data races.

        • tenchiken@lemmy.dbzer0.com
          link
          fedilink
          arrow-up
          2
          ·
          8 days ago

          I believe I got this on the 1.69.1 build just now. It corrected after just a moment, but it was while I was scrolling quickly, maybe 1 to 2 posts per second. Skimming headlines and all of a sudden a news post with a mildly nsfw image quickly changing to generic stock footage after 2 or 3 seconds. The reused image i recall seeing shortly before I think?

          I’ll try to see if I can force it by quick skimming again or if that is irrelevant to the issue.

          • tenchiken@lemmy.dbzer0.com
            link
            fedilink
            arrow-up
            3
            ·
            edit-2
            8 days ago

            Caught it while scrolling all! Not really scrolling fast but there’s another common variable… It was for a video clip.

            See the “before tapping” in attached.

            It changed to the correct thumbnail once tapped and backed from. See mildly edited next:

            Not sure it’ll help but that post seems to be here:

            (Obviously not safe for work)

            https://lemmynsfw.com/post/28850749

            Last I confirmed version:

            Edit: scrolling back just a few items yielded the original image too I think:

            That’s for https://lemmy.bestiver.se/post/535254

            Edit 2: holy cow… Ummm…

            So I had scrolled back up to find the image and after editing here, continued scrolling down (4 posts down by the way!) and this is what I see on that nsfw post preview now:

            Worth noting that that image now in that place is from not far back also. 5 posts previous (1 before the first source image).

            Also, once hitting save to this edit, the preview was back to the correct NSFW thumbnail.

            I hope this helps track down the glitch!

            Found another issue maybe… Attempting to post the comment after it has been saved as draft and there’s no way to post, only save? I had to come back to post directly after copy/paste.

            • idunnololz@lemmy.worldM
              link
              fedilink
              arrow-up
              2
              ·
              8 days ago

              Thank you for the detailed report. I made a release last night but it’s being reviewed by Google at the moment. I will comment again once its available so you can test it. However, that update was just me blindly fixing things so no guarantees it will fix the bug youve reported.

              I will look at the code again tonight since i have a better idea of where to look now.

              • pornalt@lemmynsfw.com
                link
                fedilink
                English
                arrow-up
                1
                ·
                7 days ago

                If this is the .2 on github, it appears to have worked for me.

                The loads of missing images on lemmynsfw at the moment really provoked it to happen.

                I also saw it happen on the little previews in compact mode, that has not yet happened either.

                Another thing I still see that may be related is an error loading screen transparently overlayed over an (I believe correctly loaded) image when I open it full screen, popping in after maybe a second. I can even move the image under the error screen, making for this technically sfw screenshot:

                • idunnololz@lemmy.worldM
                  link
                  fedilink
                  arrow-up
                  1
                  ·
                  7 days ago

                  This happens when a post has two URLs (1) a thumbnail URL and (2) a source URL. The app tries to be smart and check if the thumbnail is cached first. If the thumbnail is cached, the app shows the thumbnail and then tries to load the source image. If the source image fails to load then you get this state.

                  Although this state sucks, I think for the time being it’s ok. The only thing I can think of to make it look better is to maybe add a translucent background to the error. Also, there is still a way for users to “dismiss” the error. In this case, there should be a HD button at the bottom. Tapping it will tell the app you want to view the thumbnail and should dismiss the error.

  • Rayquetzalcoatl@lemmy.world
    link
    fedilink
    English
    arrow-up
    7
    ·
    8 days ago

    I’ve seen this bug occasionally on Eternity too, but honestly I love when it happens lol - especially in the case you screenshotted 😂

    • Evil_Shrubbery@lemmy.zip
      link
      fedilink
      English
      arrow-up
      4
      ·
      edit-2
      8 days ago

      Eternity gang!

      And yes, it usually brightens my browsing a bit, I give it a light chuckle sometimes.

        • Evil_Shrubbery@lemmy.zip
          link
          fedilink
          English
          arrow-up
          4
          ·
          edit-2
          8 days ago

          You can set it on your instance if you wish (it’s a profile setting).

          But afaik it works (if set only) in app too.
          (Def had problems tho, that’s why I know about the other fix.)

          There are a bunch of settings that stop working if you fiddle with something (eg default sort for me fucks up more than just sorting) but deleting specific or all data fixed things.

          You can export your settings (built-in functionally), delete all the data in settings, restart the app, import settings, restart the app … not sure if both restarts are needed.

          In Settings --> Advanced --> Backup/Delete/Restore.

  • southsamurai@sh.itjust.works
    link
    fedilink
    arrow-up
    3
    ·
    8 days ago

    No, no, that’s the right image for sure, and my penis says you are a bad person for thinking otherwise. Mind you, he’s a real dickhead

  • Jessica@discuss.tchncs.de
    link
    fedilink
    arrow-up
    1
    ·
    8 days ago

    I’ve seen a different issue a few times where I share a Lemmy link on Discord and the thumbnail and preview text are completely different