Here’s a simple bug in Flash Player 9 that crashes every browser I’ve tested it in. Simply call Sound.play(position) with an out of range position. For instance, the example below plays a 25 second sound with a starting position of 30,000 milliseconds.
This bug wasted an hour of my time while I tried to figure out why short tracks were crashing a computeSpectrum demo I built, but long tracks weren’t. It turned out I had set a starting position of 2 minutes to jump to a particularly dramatic part of one of the tracks I tested, and I had forgotten about it. Hopefully this post will save someone else the same pain.
This will almost definitely crash your browser, so check to make sure you don’t have anything important open. If it doesn’t crash, post in the comments with your browser / OS / player version.
Click here to turn off the internet (err, view the crash demo)
UPDATE Feb 29, 2008: This bug was fixed in a player 9 update (r60 I believe). Be aware that it can still affect your users, who may not have updated!