Forgot your password?

typodupeerror
Bug Cellphones Programming

Bizarre Droid Auto-Focus Bug Revealed 275

Posted by timothy
from the each-droid-has-a-moth-enclosed dept.
itwbennett writes "Pity the poor engineer who had to find this one. One of the more interesting of the handful of bugs that have appeared since the launch of Verizon's Droid smartphone has to do with the on-board camera's auto-focus. Apparently it just didn't work. And then suddenly it did. Naturally, this off-again, on-again made the theories fly. But the real reason for the bug was revealed in a comment on an Engadget post by someone claiming to be Google engineer Dan Morrill: 'There's a rounding-error bug in the camera driver's autofocus routine (which uses a timestamp) that causes autofocus to behave poorly on a 24.5-day cycle,' said Morrill. 'That is, it'll work for 24.5 days, then have poor performance for 24.5 days, then work again. The 17th is the start of a new 'works correctly' cycle, so the devices will be fine for a while. A permanent fix is in the works.'"
This discussion has been archived. No new comments can be posted.

Bizarre Droid Auto-Focus Bug Revealed

Comments Filter:
  • by idontgno (624372) on Wednesday November 18 2009, @04:08PM (#30147926) Journal

    hoses up the camera autofocus?

    Is this Slashdot, or The Daily WTF [thedailywtf.com]?

  • by wiredog (43288) on Wednesday November 18 2009, @04:16PM (#30148060) Journal

    that caused Windows 95 to require a reboot in about the same timeframe.

  • by cryfreedomlove (929828) on Wednesday November 18 2009, @04:50PM (#30148430)
    It is gratifying for Google to be so open about the fact that it is a bug, the details of the bug, and a promise to fix it. Most consumer electronics companies are much more cagey about this sort of thing. I suspect Google will win some important trust because they are treating their customers like adults.
  • by Anonymous Coward on Wednesday November 18 2009, @04:58PM (#30148552)

    GPS works by trilaturation [wikipedia.org], not triangulation... just sayin'

  • by osu-neko (2604) on Wednesday November 18 2009, @05:12PM (#30148742)
    No, they would have discovered their are focus problems. They would not necessarily know the cause. They may even implement a fix or two, and at some point, the problem went away, so they marked the bug "fixed". They could easily have been testing for 90 days or more without discovering the exact nature of the bug, with multiple false positives indicating that it had been fixed.
  • by Mike Buddha (10734) on Wednesday November 18 2009, @05:27PM (#30148908)

    Whenever I write something I think it particularly clever, I comment it out and write something simpler. The clever stuff I find is nearly impossible to figure out next year when you have to go back and add a feature or change something. It doesn't help that I usually think, "Oh that's so clever, there's no way I would forget how that works. It's so elegant." and don't bother to comment the hell out of it.

    Simple == good

  • by Mike Buddha (10734) on Wednesday November 18 2009, @05:36PM (#30149034)

    • Can't sync with Outlook (the phone doesn't have on-device encryption that would satisfy Exchange policies).

    They should've just made it to lie about its policy enforcement to Exchange server like the iPhone did. That way it'd be banned from my corporate network like my iPhone was. Thanks Steve, you're such a smart guy.

  • by cream wobbly (1102689) on Wednesday November 18 2009, @05:47PM (#30149142)

    "causes autofocus to behave poorly on a 24.5-day cycle [...] That is, it'll work for 24.5 days, then have poor performance for 24.5 days, then work again"

    Except if it works for 24.5 days, then doesn't work for 24.5 days, then works again, it's a 49 day cycle. Sorry to be pedantic, but someone abbreviating that statement might mislead someone else to believe they have a different problem when they see they have a 49 day, and not a 24.5 day, cycle of inoperability.

  • by cream wobbly (1102689) on Wednesday November 18 2009, @05:58PM (#30149292)

    This is what I hate about "smart" programmers at Google. They come up with the cleverest algo's, and they demand from their tests the ability to develop these algo's. Then they release something and along comes this sort of bug that simply does not need to happen!

    It is a smart algorithm -- it's just a slightly poor implementation. As someone else mentions, it's probably a miscast to a signed 32-bit integer. The algorithm, on the other hand, is sound.

    Your rant says more about you than it does about Google. You're intimidated by their ability to think of something elegant, and then do it right (unfortunately in this case only half the time).

  • by Animats (122034) on Wednesday November 18 2009, @06:17PM (#30149512) Homepage

    The initial release of 4.3BSD had a bug like that. It wouldn't interoperate with implementations that chose TCP sequence numbers in the upper half of the 32-bit address space. BSD itself didn't do this until it had been up for 2^31 seconds, so it got through testing. Other implementations cycled faster. We were losing network connections for two hours out of every four.

    It took a 1-line fix, after three days of looking at the generated machine code to figure out exactly how the sequence number arithmetic worked. Too many casts in the source.

  • by shut_up_man (450725) on Wednesday November 18 2009, @06:50PM (#30150040) Homepage

    Obligatory quote:

    "Debugging is twice as hard as writing the program, so if you write the program as cleverly as you can, by definition, you won't be clever enough to debug it. "

  • Re:New Moon? (Score:3, Insightful)

    by QuoteMstr (55051) <dan.colascione@gmail.com> on Wednesday November 18 2009, @07:26PM (#30150534)

    Of course. That's when the world was created, fully-formed. How do you know the world existed before Jan 1 1970? :-)

  • by Anonymous Coward on Wednesday November 18 2009, @09:45PM (#30151910)

    The huge failure that both the interface designers of VI and of Clippy make, is that efficiency and easy usage would be mutually exclusive opposites.

    This is actually a very interesting point, on the other hand you do realize that no one here is talking about UI design right?

Use the Force, Luke.

Working...