Home > Zune Error > Zune Error Leap Year

Zune Error Leap Year

Pyho View Public Profile Send a private message to Pyho Find More Posts by Pyho 12-31-2008, 03:27 PM #4 Tobososlow Super Zuner Join Date: Nov 2007 Location: In And the while loop could not be broken out of. Your cache administrator is webmaster. Browse more... useful reference

For the foreseeable future, software errors will be a fact of life. [Hat tip: "itsnotabigtruck" at ZuneBoards.] Filed Under: Uncategorized Tagged With: reliabilityComments Michael Donnelly says: January 12, 2009 at 10:21 As early as yesterday evening, reports of 30GB Zunes crashing began to surface on Microsoft support forums and gadget blogs. A copy of the C source module (which bears copyright notices from both Microsoft and Freescale Semiconductor) was posted here. The other is the MC13783, a lower-power device that stays on and provides power management and some user-interface functionality.

And both of these routines can leave the variable days with a negative value, which is also nonsensical. A task this simple shouldn't need so many ifs and elses. Doing this triggers the code that reads the clock and converts it to a date and time. The ZuneInsider post didn't seem to imply it was something they were planning on correcting right away though.

The not-so-neat thing is that these kinds of code defects, which are really just team defects, are also very much present in software that needs to be secure, unlike this one Sometimes you kill the flowers, but you learn. Submit Thank You Invalid Email Follow UsOn Twitter 7 hours Meet the young geniuses behind Obama's favorite science projects: wrd.cm/2f2OQtF Follow Follow UsOn Facebook Don't miss our latest news, features and Rather it's the even more commonplace observation that software is hard.

year must be incremented when days is greater then the index of the last day in year. felten says: January 12, 2009 at 3:21 pm Thanks for pointing out this error. And I think the main lesson from this incident is not the usual refrain that Microsoft is lame. If you want a reference, "Calendrical Calculations" by Dershowitz and Reingold is good.

Follow Follow UsOn Youtube Don't miss out on WIRED's latest videos. I'm pretty familiar with Microsoft's coding practices, and I can assure you, a bug this basic would never have passed code review. Study Patent Law WIRED Opinion Want Your Marijuana Startup to Succeed? The bug originated from Lotus 1-2-3, and was purposely implemented in Excel for the purpose of backward compatibility.

programphases View Public Profile Send a private message to programphases Find More Posts by programphases 12-31-2008, 07:54 PM #19 itsnotabigtruck R E D R U M Development FrontRetired StaffExpert Zuner Carl Witty says: January 13, 2009 at 12:04 pm Check out the comment ("Reply 2 of 3") from Max Hailperin at http://bit-player.org/2009/the-zune-bug#comment-1890, where he points out that the source file containing Infosys' U.S. The code had gotten stuck: it couldn't stop, because days was greater than 365, but it couldn't make progress, because days was not greater than 366.

Please try the request again. http://knoxactive.net/zune-error/zune-error-5.php Follow Advertisement. Here's my best effort so far: year = ORIGINYEAR - 1; while (days > 0) { year += 1; if (IsLeapYear(year)) days -= 366; else days -= 365; } I suppose Here are the latest Insider stories.

year = ORIGINYEAR; /* = 1980 */ while (days > 365) { if (IsLeapYear(year)) { if (days > 366) { days -= 366; year += 1; } } else { days I admit that I may be missing some subtlety as I don't really follow why a loop was used at all - but I'd expect something like the following three functions: Yes, it's that (IsLeapYear(year) statement. this page At least, I think that’s what happens (it’s been a while since CS101).

Related Blogs John Traenkenschuh: My Zune is my life and I want it back NOW! Anonymous says: January 12, 2009 at 7:55 pm why is date so important on a mp3 player all we want to do is play music . . . Available in a number of versions, Zune has a built-in Website N/A Full profile for Microsoft Zune Newsletter Subscriptions The Daily Crunch Get the top tech stories of the day delivered

Or have the authors done the right thing by putting the full logic into the code, just in case someone later decided to extend the MAXYEAR deadline past 2100?

Many suggested that Zune devices may have been facing the equivalent of the feared Y2k bug, a glitch that was supposed to fell computers in year 2000 as many older programs original_days = days + sum_{y : ORIGINYEAR <= y < year} Max Hailperin says: 13 January 2009 at 9:00 pm @dagor17: The text you quoted from Barak Pearlmutter's comment wasn't from In fact, we do nothing at all, because there's no else clause attached to this if statement. But it also points to incomplete QA testing: did nobody think to ask what happens on February 29th, or December 31st, of 2008?

Itsnotabigtruck, the poster who figured this out for everyone, notes that this will occur again in four years if they don’t do something. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of Condé Nast. Does no one use a DIVIDE any more? Get More Info I've been translated to and from Lisp.

Techdigest.tv. By using this site, you agree to the Terms of Use and Privacy Policy. As background, the Zune 30 apparently uses a pair of chips from Freescale Semiconductor, each of which contains its own real-time clock.