gSkinner - Home

Flash Player 9 / AS3 Sound Crashing Bug

Posted on May 28, 2007 by Grant Skinner

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!

Follow @gskinner on Twitter for more news and views on interactive media.
29 Comments

Yep, crashed my browser. FF2 / Windows XP Pro / Flash Player 9

Posted by: Dave on May 28, 2007 6:37pm URL: http://localhost

Dude! You broke my internet!

Posted by: Keith Peters on May 28, 2007 6:38pm URL: http://www.bit-101.com

Crashed mine too. FF2/Win XP/FLP 9.0.45

Posted by: Algis on May 28, 2007 9:19pm URL: http://www.incito.lt

FF 2.0.0.3, Win Vista, FLP 9.0.45 and crashed.

Posted by: sascha/hdrs on May 28, 2007 9:37pm URL: http://www.hiddenresource.net/

Yep broke my internet! Safari (2.0.4/b419.3) MacOSX 10.4.9

Posted by: Weyert on May 28, 2007 9:43pm URL: http://www.innerfuse.biz/blog/

Crashes on Firefox 2.0.0.3/Mac OS X 10.4.9

Posted by: Aaron Heimlich on May 28, 2007 9:53pm URL: http://aheimlich.freepgs.com

crash:( win xp, firefox 2, FP 9.0.45

Posted by: fandango on May 28, 2007 10:40pm URL: http://www.fandango.cz

no crash:

Windows Vista + IE7 + Flash Player 9

Posted by: Danger on May 29, 2007 12:18am URL: http://www.dengjie.com

camino gone

:)

Posted by: ubi de feo on May 29, 2007 2:41am URL: http://www.randomtype.com

crash:

Vista + Firefox 2.0.3 + FP 9.0.28.0

Posted by: mlinaje on May 29, 2007 2:45am URL: http://www.ruxproject.org

Didn't crash on Lynx ;-) (Sorry, I didn't even test it, but after hours of work that's the level of humor that pops into the head :-)

Posted by: Tore on May 29, 2007 6:14am

Opera 9.20

OS X 10.4.9

Crashed

Posted by: chris on May 29, 2007 8:56am

Hi Grant,

I've filed a bug for the crash.

best,

e

Posted by: Emmy Huang on May 29, 2007 12:35pm URL: http://weblogs.macromedia.com/emmy

Crashed.

IE7, Win XP SP2, Flash Player 9

Posted by: William from Lagos on May 29, 2007 8:49pm

crash mine too... vista ie7 flash player 9

Posted by: German on May 29, 2007 11:15pm

Links for 2007-05-29 [del.icio.us]

Google Operating System: Screenshots of YouTube's New Player gskinner.com: gBlog: Flash Player 9

Posted by: 陈谦的blog on May 30, 2007 12:09am URL: http://caap.cn/blogs/chenqian/archive/2007/05…

This bug also affects the Flash authoring tool as well. I crashed it a couple of times after passing an undefined variable to Sound.play().

Posted by: Jeremy Nicoll on Jul 7, 2007 4:22pm URL: http://www.goldnoteexpress.com

I just wanted to thank Grant for posting this blog. The hour you spent discovering this problem has already saved time for tons of others. Thanks on behalf of developers everywhere!

Posted by: NeAl on Aug 13, 2007 1:52pm URL: http://www.punkmusic.com

Hi,

no crash for me :

- XP SP2

- Firefox 2.0.0.6

- Flash Player 9,0,60,184 (maybe cause of this ^^)

Posted by: dada on Aug 21, 2007 6:47pm

Hi,

no crash for me :

- XP SP2

- Firefox 2.0.06

- Flash Player 9,0,60,184

Posted by: dada on Aug 21, 2007 6:49pm

crashed!

- XP SP2

- Firefox 2.0.0.8

- Flash Player 9,0,45,0

Posted by: Bernardo Kuri on Oct 31, 2007 2:54am

... oh man, thank's a lot for this info ...

This bug got me crazy today !

I would probably be still stuck on my screen, roting my brain off without your article ...

And it seems that not so many guys wrote about it ... that's the only info I found !

Bye...

- XP SP2

- Firefox

- Flash Player 9,0,45

Posted by: Nicolas Guionnet on Dec 3, 2007 12:55pm

No Crash...Firefox 2.0 Mac OSX

Posted by: William Khoe on Dec 14, 2007 7:35pm URL: http://www.williamkhoe.com

-FF 2.0.0.11

-XP SP2

-flash 9.0 r115

no crash ... maybe the new player had a patch ?

Posted by: lol on Feb 8, 2008 11:46am

No crash for me.

IE6 (Intranet, can't do anything about it)

FP 9,0,115

Posted by: Mark Luker on Feb 28, 2008 2:49pm URL: http://www.exxonmobil.com

You have version 9,0,115,0 installed

Gecko/20080201 Firefox/2.0.0.12

Windows Vista

NO crash..

Posted by: Andrey on Feb 29, 2008 9:02am

It did crash Firefox 2,0,0,13 with Flash Player 9,0,115 in WinXP.

But I fixed this by running Firefox in WIN98/ME

comparably mode.

Posted by: Philip on Mar 28, 2008 12:18pm

No crash for me, FF3 w2k3

Posted by: Pham Son Ha on Jun 14, 2008 11:50pm URL: http://inghe.vn

Yeah crashing for me, also wasted an hour on this!

Posted by: flash design on Jul 7, 2008 2:17pm URL: http://www.bozboz.co.uk

Leave a Reply

Your email is never published nor shared.




You may use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">