We've all had them, errors or bugs that have lost us lots of time. I've seen it time and time again, the first 90% of the coding work for a given project takes 10% of the total time. It's that last 90% of the time you spend looking for that rogue bug that's really only about 10% of the coding work. That one thing that just doesn't want to work. Sometimes it's something big and other it's just that one character that was off.
What is the bug or error that has cost you and/or your team the most amount of time?