Jan 4, 2009

Posted by SuperMario290 in Gadgets | 3 comments

Zune Suicide? Programmer reveals the problem

zune 30 fail Zune Suicide? Programmer reveals the problem

Okay, so the massive Z2K has come and gone, we have to figure out why such a widespread problem had such a simple fix – wait till it dies, then turn it back on. Wait….what?! Out of nowhere, the Zune’s started working again, so yeah, problem solved. Here is the explanation from itsnotabigtruck of Zune Boards:

The Zune’s real-time clock stores the time in terms of days and seconds since January 1st, 1980. When the Zune’s clock is accessed, the driver turns the number of days into years/months/days and the number of seconds into hours/minutes/seconds. Likewise, when the clock is set, the driver does the opposite.

The Zune frontend first accesses the clock toward the end of the boot sequence. Doing this triggers the code that reads the clock and converts it to a date and time. Below is the part of this code that determines the year component of the date:

Under normal circumstances, this works just fine. The function keeps subtracting either 365 or 366 until it gets down to less than a year’s worth of days, which it then turns into the month and day of month. Thing is, in the case of the last day of a leap year, it keeps going until it hits 366. Thanks to the if (days > 366), it stops subtracting anything if the loop happens to be on a leap year. But 366 is too large to break out of the main loop, meaning that the Zune keeps looping forever and doesn’t do anything else.

So, the massive Zune suicide was just a problem of the leap year, and can also be found in a few other portables such as Toshiba’s S series.HA!!! We can just hope that Microsoft has a fix for this before 2012, the next leap year.

Link

Clap

468 ad
  1. But why buy a product that has issues? Do the iPod has this problem too? That massive suicide thingy will just make it harder for M$ to compete with similar gadgets.

    (Report comment)

    Like or Dislike: Thumb up 0 Thumb down 0

  2. No, not that I know of. My iPod and other products have been working perfectly fine.

    (Report comment)

    ?

    Like or Dislike: Thumb up 0 Thumb down 0

  3. Yeah, no problems here with my gadgets, although I don't feel sorry for the whole 5 people that bought a zune…

    (Report comment)

    Like or Dislike: Thumb up 0 Thumb down 0

Leave a Reply

CommentLuv Enabled