Recently encountered a bug when looking at some posts, the post that triggered this to happen to me is this meme post. It made my entire phone freeze, disabling the ability to change apps, open the power menu, go to the home screen, or basically anything. Apple changed the method to hard reset phones some time ago, if you don’t know how to reset your iPhone without a functioning UI then read this apple page.

  • evgiz@lemm.eeM
    link
    fedilink
    arrow-up
    9
    arrow-down
    1
    ·
    1 year ago

    Hi, thanks for reporting this bug. My phone doesn’t freeze, but the post caused the app to crash yeah. Uploading a build that fixes the problem now.

    For anyone interested in dev stuff, this issue was caused by an infinite loop in the regex replace function in swift. A part of my comment processing code fixes a few markdown issues where people often place an image inline that should actually be a big regular image. I forgot a single character in the regex that in some very rare circumstances (like the post you mentioned) caused the matcher to create another string that also matched, which is then replaced again, and again and again and again. Regex is great.

    • evgiz@lemm.eeM
      link
      fedilink
      arrow-up
      8
      ·
      1 year ago

      Works now!

      bug

      Kinda ironic that this little bug guy caused the biggest bug in Avelon so far.

    • StackedTurtles@programming.dev
      link
      fedilink
      arrow-up
      4
      ·
      1 year ago

      You realize you have a problem that you can solve with regex. Now you have two problems 😂

      Great work on the app. It’s gotten to a point where I’m considering switching to it as my main (from Memmy/Voyager). I’m really enjoying the UI.