I thought of this after a recent bug I found. I use Vivaldi browser and recently it updated. After the update my mouse cursor was not visible when within the browser window. Other programs worked fine. I tried visual studio and steam and epic game store all had my mouse, Vivaldi didn’t.

I closed all instances of Vivaldi via task nanager(was unable to click the x) and restarted it. That fixed the bug and I haven’t been able to replicate so I don’t have anything to submit for a bug report. Just a really strange thing.

What have been your weirdest bugs?

  • azdle@news.idlestate.org
    link
    fedilink
    arrow-up
    22
    ·
    24 hours ago

    I worked at an IoT platform startup. All of our embedded device demos stopped working August 1st. I was told the same thing happened last year, but it was fine, things would start working in September. I decided to go fix it anyway. Eventually I figured out the culprit was a custom HTTP library. Instead of doing anything sensible, the way it found the Content-Length header was to loop over the bytes of the response until it found the first ‘g’ add 5 to that pointer and then assume that whatever was there was the number of bytes it should read. Unfortunately, HTTP responses have a Date header which includes the month and August has a ‘g’ in it.

    There were a bunch of these demo devices already flashed and shipped out. The ‘fix’ to get them to work, even in August, was to downgrade requests to HTTP 0.9 which didn’t require a Date header in the response.

    • A_norny_mousse@feddit.org
      link
      fedilink
      arrow-up
      7
      ·
      edit-2
      15 hours ago

      That’s “I wrote my first shell script” type of bad. I remember Ubuntu+GNOME used to be full of such crap in their early days. There are still some helper scripts around from those days (the naughts), you can still catch a whiff of it.

    • vrek@programming.devOP
      link
      fedilink
      English
      arrow-up
      3
      ·
      13 hours ago

      Is there any reason they couldn’t just look for the complete “Content-length” string?

      • azdle@news.idlestate.org
        link
        fedilink
        arrow-up
        4
        ·
        edit-2
        12 hours ago

        Yeah, to be fair, there was an issue getting string.h to work (so i could just use strstr) with the vendor’s shitty toolchain, that took me talking to an engineer at the vendor, and the dev who wrote that was out of our Taiwan office. But also, my first fix was just doing a sort of sliding-window check, manually checing for s[0] == '\n' && s[1] == 'C' && s[2] == 'o' &&..., which was gross, but much more correct.

        • vrek@programming.devOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          10 hours ago

          Wait…not being able to use a basic library like string.h opens up so many other questions