Bugs are inevitable; Debugging is painful, but the experiences make us better developers.
So let's hear it! Tell us about some of the bugs you've encountered, and how you dealt with it.
Bugs are inevitable; Debugging is painful, but the experiences make us better developers.
So let's hear it! Tell us about some of the bugs you've encountered, and how you dealt with it.
For further actions, you may consider blocking this person and/or reporting abuse
Oldest comments (53)
I had a bug and tried to fix it using threads. Nnoww II hhaavvee ttwwoo bbuugss.
Haha yup, just like what they said when solving a problem with Regex, now you have two problems...
Regex are great! ☺ Seriously, I think I am one of the few that really like them.
I agree that as they get a bit complex, some regex look like line noise (I always try to find a less obscure syntax), but for searching and extracting text are really powerful.
I was using one of MaterializeCSS's date pickers. This one has a prop called
minDate
which allows you to set what's the minimal date for this selection. This worked wonderfully.I was passing the variable to Materialize's date picker, which was a date object. This date object had the date and time selected by the user, so Materialize was working properly.
The problem was sending the data to the server. The date variable was somehow changing. It was losing the time. Time was 00:00:00.
I checked my code, from the very beginning, down to my Redux store. Everywhere. My date variable was OK and it HAD the proper time.
I spent hours checking why it was changing. Is Javascript suddenly crazy? Why is this happening to me? Could it be a bug IN javascript?
Turns out Materialize was mutating the date object. The solution was just cloning it
minDate = new Date(selectedDate)
That fixed the issue. Lesson learned: be careful with mutation.
We had a bug in the DEV signin process forever which would randomly show an error message as
invalid credentials
or something like that as the error message being passed back to the oauth response. It was very uncommon, but never went away.It turned out it wasn't
invalid credentials
, but the error message was actually just more of a catch all for "something went wrong". It turned out to be a timeout error. It sometimes took more than ~9 seconds to create an account and the request timed out.That was a doozy. @andy mostly figured it out.
I still experience the same thing when Sign in to GitHub account. I do want to submit an issue, but... It's a feature
We have some recently reported bugs about sign in issues, but each case has been a little bit different so far.
If you're having issues with your account, feel free to submit an issue for any bugs or feature requests to the repo: github.com/thepracticaldev/dev.to
We also provide support via our email: yo@dev.to
Oh yeah!! That bug was a trip. 😥
Oh it is, when my connection slow I always get that Invalid Cred message 😂
I used to work on a site that you could log into with your Instagram account, pick a bunch of pictures and buy them as fridge magnets.
This worked mostly well, but for the occasional pack where some or all of the images would fail to download. We spent ages working with the code that downloaded the image, trying to find where the bug was. (I feel more confident with downloading images in Ruby now!)
Ultimately, we decided the code that was downloading the images wasn't the issue, so perhaps it was the Instagram API? Or a flaky connection from our server?
More investigation lead to the discovery that on occasion a user would just delete their picture from Instagram, leading to our failed download.
So, we moved the downloading from on demand when the print job was run to a background worker once the user made their purchase. Jobs would still occasionally fail.
We moved the job to before the user even completed their purchase. This helped, but jobs would still occasionally fail.
I'm not even sure you could call it a bug in the end. Some users were uploading pictures to Instagram just to get them printed and then deleting them immediately. It didn't matter how many workers we ran against the job queue, there was always a user that was faster at deleting their images. The eventual fix was the loosening of the Instagram restriction, instead allowing users to use Facebook photos or upload photos from their computer/phone. When users no longer had to use only Instagram to get their images on to our site things became better. This was more work for us (Instagram photos were just square at the time, which fit the magnets, opening up to non-square photos meant we needed an image cropper and just a lot more UI) but was better for the user.
Am I calling users bugs here? Of course not! But understanding the ways that user actions can affect the way your site works is just as important as an esoteric language exception. And if something is failing, there are more ways to fix it than just inspecting the code.
We are a lab in a school that does science for other labs. We had a page that had been working fine for most people for a while, but we got a report that a person trying to use this page and the links wouldn't work, which means that user couldn't do her work.
I take a look, click links, and everything looks fine. And then I look at the logs, and by process of elimination, I figure out that this user is a Mac user using Safari.
I take a look at the source, and ...
We all know that URIs are (protocol)(server)(path), and this page would be (https://)(dev.to)(/ben/tell-me-a-bug-story-59e2), and you can do "absolute" links with just the (path), but did you know that you can include URLs that are protocol and path without server?
No, you didn't. Because that in an abomination before Tim.
But someone did. Someone, or a significant number of someones, did this, enough to make it so IE accepted it. And FireFox. And Chrome. But Safari didn't.
This was hard for me to test, because I have almost no Apple in my life.
So, to clarify: The bug isn't that we use this abomination (although that's what I fixed) but that it is industry standard for browsers to accept this, and Safari didn't. Be liberal in what you accept, I guess.
So, we:
:shrug:
That's the best part of this one 😂
I definitely feel your pain on debugging Apple issues. I have access to an iPod Touch at work, but that's about it. Debugging on that without a Mac to connect it to is basically just trial and error.
I’ve never been heavily involved in the Apple ecosystem but I’ve been around enough to feel this pain 😭
I wish this article was called, “tell me a ghost story... ghost in the machine story.”
dadJoke
My favorite story is one time we where preparing for a big presentation on a new feature, which involved rendering lots of things with handlebars on the browser, everything was working perfect. We showed to the manager, he liked it, and ask us for a rehearsal on the presentation later this day.
During the rehearsal, the page stop working. The browser didn't render a thing. After some debugging, it turn out that the machine where the presentation was happening did an auto Chrome update that bloated the GPU usage, but only with OSX Yosemite. Took us many hours to find this out. But the fix was easy. Use Another machine for presentation, and wait a couple of weeks for another chrome update.
I've tried a bug fix for a day only to know it was a feature. I am still confused whether it was a bug or a feature. They didn't understand me.
The recent one was about Highcharts. You were supposed to have an animation when hovering the mouse on the legend.
jsfiddle.net/y92haq35 (somehow the fiddle can't be embedded)
It was fine on an isolated environment, but somehow the animation didn't appear on our page. I thought it was a configuration issue, so I copied and pasted the exact same config on our page. It didn't appear too. I was having trouble inspecting the styles because it isn't triggered semantically by CSS, rather by JS.
I inspected the source code, but every hover class was firing up properly. I tried it on a different page in the app, the animation is there. So something was causing it in the original page.
After painstakingly removing the components/modules in that page one by one, seeing which one causing the problem, I found out that there is a line of CSS that goes like this:
Basically this line says all Highchart series would have an opacity of 1, so even if the animation kicks in, this line overrides it (with the
!important
) so that it looks like there is no animation. Should've fixed the actual bug from the issue tracker...And that concludes 3 hours of debugging. I think I didn't do a good job debugging it, any suggestions? 😂
On another note, how do you all prevent these kind of CSS bugs? Visual regression test? Eye test?
Some comments may only be visible to logged-in visitors. Sign in to view all comments.