FileReference.load() crashes FireFox

Hi,
I'm using FileReference.load() to upload files to server. Usually the file size is about 50M. It _is_ working fine most of the time. But sometimes it crashes FireFox.
I tried to catch the exception, but I did not see any logging when it crashed.
                try
                    refUploadFile.load();
                catch(error:Error)
                    if (error is IllegalOperationError)
                        trace("error is IllegalOperationError");
                    else if (error is MemoryError)
                        trace("error is MemoryError");
                    throw error;
I'm using Windows XP, FireFox 3.6, Flash Player Debug version 10.0.32.18, Flex Builder 3.0, Flex SDK 3.4
I need to get it fixed. Any idea what I shall do.
Regards,
Haibin

I write a very simple swf with the following code and test it with a selection of 32 files (each file is about 60M). It crashes every time.
var fileRefList:FileReferenceList = new FileReferenceList();
fileRefList.addEventListener(Event.SELECT, selectHandler);
fileRefList.browse();
function selectHandler(event:Event):void
    var file:FileReference;
    var files:FileReferenceList = FileReferenceList(event.target);
    var selectedFileArray:Array = files.fileList;
    for (var i:uint = 0; i < selectedFileArray.length; i++)
        file = FileReference(selectedFileArray[i]);
        file.addEventListener(Event.COMPLETE, completeHandler);
        try
            file.load();
        catch (error:Error)
            trace("Unable to upload files.");
function completeHandler(event:Event):void
    trace("uploaded");

Similar Messages

  • After visiting a website that was a pdf file (which didn't load -crashed), Firefox now constantly causes calls to my hard drive all the time when open.

    I went to a site that was a pdf of a map. When I clicked on it, the hard drive called constantly and the map never did download. Now when I open Firefox, my computer constantly makes calls to the hard drive all the time Firefox is operating. This does not happen when I use MS Explorer. Also, when I close Firefox from the desktop, it appears to close but is still operating in the background. I have to go into Task Manager to close Firefox. Then the calls to the hard drive stop.
    Something similar happened once before with a pdf file, but it stopped when I shut down Firefox, rebooted, and reopened in Safe Mode. Now the condition is permanent. Is there a fix?

    I went to a site that was a pdf of a map. When I clicked on it, the hard drive called constantly and the map never did download. Now when I open Firefox, my computer constantly makes calls to the hard drive all the time Firefox is operating. This does not happen when I use MS Explorer. Also, when I close Firefox from the desktop, it appears to close but is still operating in the background. I have to go into Task Manager to close Firefox. Then the calls to the hard drive stop.
    Something similar happened once before with a pdf file, but it stopped when I shut down Firefox, rebooted, and reopened in Safe Mode. Now the condition is permanent. Is there a fix?

  • Issue with FileReference.load() on Mac/Firefox 3.6/FlashPlayer 10.0.45.2

    Hey there,
    After several days of banging my head against my desk trying to figure out what my application is doing wrong, I think I stumbled across a problem that either I'm not handling correctly in my code or that is a bug in the Flash Player plugin for Firefox on the Mac (and on Linux).
    Here are my specs:
    MacBook Pro with Snow Leopard 10.6.3
    Firefox 3.6.3 w/ Flash Plugin 10.0.45.2
    Safari 4.0.5 w/ Flash Plugin 10.0.45.2
    FlashBuilder 4.0 (272416)
    Flex 3.5 SDK
    I can't post the code I've been working on as it's for a work project; however, I found something on Adobe's site that manifests this problem:
    http://www.adobe.com/devnet/flash/quickstart/filereference_class_as3/
    If you open up this page in Firefox 3.6 on the Mac, you may notice that the crop box doesn't work properly (or at least I noticed this behavior).  What I would see is that the crop box would immediately fill to the lower right hand corner.
    Open up the same link in Safari and it works properly.
    The following is what I've noticed in my debugging efforts on my own application:
    After completing a FileReference.load call, the Flash application appears to lose focus (perhaps to the operating system?)
    Moving the cursor (both in my case and I think in the example on the site) results in getting undefined (and astronomical) values back when you poll for the mouse cursor's position.
    Clicking outside of Firefox and clicking back in seems to resolve this.  It seems like leaving the window and returning solves the problem.
    To provide another example of this behavior, I've altered some code that does a similar function to the example on Adobe's site to produce some statistics about where the mouse cursor is:
    The code example:
    http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the- filereference-class-in-flash-player-10/#more-766
    My code (my changes are bolded):
    <?xml version="1.0" encoding="utf-8"?>
    <!-- http://blog.flexexamples.com/2008/08/25/previewing-an-image-before-uploading-it-using-the- filereference-class-in-flash-player-10/ -->
    <s:Application name="FileReference_load_test"
                   xmlns:fx="http://ns.adobe.com/mxml/2009"
                   xmlns:s="library://ns.adobe.com/flex/spark"
                   xmlns:mx="library://ns.adobe.com/flex/halo"
                   xmlns:net="flash.net.*" xmlns:mx1="library://ns.adobe.com/flex/mx"
                   creationComplete="init()">
      <fx:Script>
        <![CDATA[
          import mx.controls.Alert;
          import mx.utils.ObjectUtil;
          [Bindable]
          private var appX:Number;
          [Bindable]
          private var appY:Number;
          private function init():void {
            addEventListener(MouseEvent.MOUSE_MOVE, handleMove);
          private function handleMove(event:MouseEvent):void {
            appX = event.localX;
            appY = event.localY;
          private function btn_click(evt:MouseEvent):void {
            var arr:Array = [];
            arr.push(new FileFilter("Images", ".gif;*.jpeg;*.jpg;*.png"));
            fileReference.browse(arr);
          private function fileReference_select(evt:Event):void {
            fileReference.load();
          private function fileReference_complete(evt:Event):void {
            img.source = fileReference.data;
            Alert.show(ObjectUtil.toString(fileReference));
        ]]>
      </fx:Script>
      <fx:Declarations>
        <net:FileReference id="fileReference"
                           select="fileReference_select(event);"
                           complete="fileReference_complete(event);" />
      </fx:Declarations>
      <s:Panel id="panel"
                horizontalCenter="0"
                verticalCenter="0"
                width="500">
        <s:layout>
          <s:VerticalLayout />
        </s:layout>
        <mx1:Image id="img"
                  verticalCenter="0"
                  horizontalCenter="0"
                  maxWidth="200"
                  maxHeight="200" />
        <mx1:ControlBar>
          <s:Button id="btn"
                     label="Browse and preview..."
                     click="btn_click(event);" />
          <s:Button label="Upload..."
                     enabled="false" />
          <s:Label text="MouseX:" />
          <mx1:Text text="{appX}" />
          <s:Label text="MouseY:" />
          <mx1:Text text="{appY}" />
        </mx1:ControlBar>
      </s:Panel>
    </s:Application>
    If you compile and run this application in Firefox, you should see that the X and Y values for the mouse stop updating after the file is loaded.  On Safari they continue to update.
    I couldn't find any reference to this problem searching on Google (perhaps not the right keywords?).
    Anyone have any input on this issue?  Any help is appreciated

    Updates:
    I've opened a bug with Adobe regarding this issue:
    http://bugs.adobe.com/jira/browse/FP-4362
    Also, the Cancel operation on a FileReference causes the same issue to happen as does loading.  I really think it's an operating system focus issue.
    UPDATE:
    Looks like this has already been tracked and is scheduled to be fixed:
    https://bugs.adobe.com/jira/browse/FP-2785

  • Loaded up Firefox home on my ipod touch and whenever I go to open a book mark or a web page it crashes and shuts down.

    I have loaded the firefox home on my ipod touch and sync'd it. Everything came over in the sync but when I open something, and then start scrolling down the page, it just shuts the program down.

    You have the accessibility VoiceOver feature turned on.
    Triple click the home button and try going to Settings>General>Accessibility and turn VoiceOver off. You may have to use three fingers to scroll the screen to get there. If problems see the following for how to turn off via iTunes:
    iPhone: Configuring accessibility features (including VoiceOver and Zoom)

  • PDF links crashes Firefox. ThinApp unexpected error PID=10156

    Whenever I click on a PDF web link, firefox crashes. I get this error:
    ThinApp has encountered an unexpected error. Click Abort to close the application, Retry to debug, or Continue to ignore the error. Support Info: PID=10156, new_Sections.cpp@274.
    Clicking retry doesn't do anything and clicking ignore crashes firefox. Please help.

    https://support.mozilla.com/en-US/kb/Firefox+crashes+when+loading+certain+pages

  • I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" the error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    I tried down loading mozilla firefox to use as a web browser. It was downloaded 100% then when prompted to "run" An error message comes up with a red cross and the message'This file is corrupted" and won't let me proceed. What do I do now?

    It is possible that your anti-virus software is corrupting the downloaded files or otherwise interfering with downloading files by Firefox.<br />
    You can try to disable the real-time (live) scanning of files in your anti-virus software temporarily to see if that makes downloading work.
    See http://kb.mozillazine.org/Unable_to_save_or_download_files

  • Plug-in/Extension won't delete, crashes Firefox

    Forgive me for this long post. Let me know if this is better suited to a Mac help forum. I have Firefox 16.0.2 and Mac OSX 10.5.8.
    Recently Firefox kept crashing every time I went to open it. I opened it in safe mode and played around with different combinations of enable/disabling plug-ins and extensions until it would open fine. The culprit was this Nielsen NetSight thing. I vaguely remember possibly downloading something from Nielsen maybe two or three years ago, but nothing recently, and I've never used anything. However, if memory serves me right, this add-on has always been floating around disabled in my Firefox settings.
    There is an extension showing in Firefox called "Nielsen NetSight (Firefox Tracker Add-on) 1.0." There were also some plug-ins showing in Firefox before called "Nielsen NetSight (Firefox Tracker Add-on) 1.0" and "Nielsen NetSight (Chrome Tracker Add-on) 1.0" or something very similar to that. I disabled them all, and then Firefox opened fine.
    But then things got weird-
    The next morning I wake up and turn on my computer and the same thing is happening. I investigate, and it's these Nielsen plug-ins again. Could have sworn I disabled them. So I disable them again, everything works again, all is good. But then I close my laptop, open it up again, same thing - they're re-enabled.
    There is no option to remove them (rather than just disabling them) in Firefox itself, so I do some Googling and end up in name/Library/Application Support/Internet Plug-Ins, and there are these files called "FirefoxTrackerPlugin.bundle" and "ChromeTrackerPlugin.bundle." I recognize the names from the plug-in names I was seeing in Firefox, and I delete the files, and then empty the trash. Firefox opens fine, and the plug-ins are no longer showing up on the plug-in list. However, the extension "Nielsen NetSight (Firefox Tracker Add-on) 1.0" is still appearing - but it is listed as disabled, and Firefox opens fine.
    But then the next time I close my computer and open it back up, Firefox is crashing again. I go back into that folder name/Library/Application Support/Internet Plug-Ins and to my surprise, "FirefoxTrackerPlugin.bundle" and "ChromeTrackerPlugin.bundle" are back even though I deleted them. Now the plug-ins don't show in Firefox, but the extension shows and is listed as enabled.
    So basically, I'm stuck at this point where every time my computer goes to sleep or gets turned off, this "Nielsen NetSight (Firefox Tracker Add-on) 1.0" Firefox extension re-enables itself and these two files "FirefoxTrackerPlugin.bundle" and "ChromeTrackerPlugin.bundle" reappear in the plug-ins folder. This has been happening repetitively over the past few days.
    In the periods right after I delete the plug-in files and remove them from the trash, I have searched my whole computer for things with names like "Nielsen" or "FirefoxTracker," etc, but I'm not seeing anything. The only thing that showed up was in my Firefox profile folder, in the extensions folder some file called prefs.js with a bunch of code. It appeared to correspond to about:config extensions.installCache. In that, there's a bunch of stuff and
    ....[{"name":"app-system-local","addons":{"[email protected]":{"descriptor":"/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]","mtime":1382126687000},"{23fcfd51-4958-4f00-80a3-ae97e717ed8b}":{"descriptor":"/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/{23fcfd51-4958-4f00-80a3-ae97e717ed8b}","mtime":1332977526000}}},{......
    Interesting thing about this is the rest of the code is referencing a different folder than /Library/Application Support/Mozilla/Extensions/. All the rest of it looks at /Users/myname/Library/Application Support/Firefox/Profiles/eiey9ybc.default-1381002852316/extensions/, which is where my extensions are. There was a single folder in /Library/Application Support/Mozilla/Extensions/ with nothing in it. So I deleted it. (Probably shouldn't have, since I have no idea what I'm doing, but whatever). Then I tried deleting any /Library/Application Support/Mozilla/ altogether, since everything seems to be saved in the Firefox folder, not the Mozilla folder anyway. Unsurprisingly, that didn't work, and this plug-in keeps reappearing and the extension keeps re-enabling and every time it is enabled it crashes Firefox.
    Anyway, anybody have any idea how I can delete this thing so I don't have to keep opening Firefox in safe mode?
    Something similar happened a few months ago, but I couldn't figure out what was going on and ended up restoring factory settings. I'd rather not do that since 1) it doesn't seem to have worked last time, 2) I don't feel like reinstalling all my add-ons and fixing all my settings, and 3) I can get Firefox to work perfectly fine so long as my computer never goes to sleep - it definitely seems to have something to do with these Nielsen tracker plug-in things, since Firefox works fine whenever they are disabled.
    Not really expecting responses, but thank you in advance to anyway who might know anything.

    That wasn't the answer, but I appreciate the help. Nothing related is in the login items (just iTunes and a thing for my phone).
    Further discoveries though:
    When I was in system preferences, I saw Other- Plugsuit, and went in there. Under "unmanaged," "NielsenWebKitTiger" is there. If I click the little gear underneath and click "show in finder," I end up at Macintosh HD/Library/Application Support/SIMBL/Plugins/NielsenWebKitTiger.bundle/. I tried to delete this, but it keeps reappearing like the others when I restart the computer.
    Furthermore, I have now found the extension's location-
    Macintosh HD/Library/Application Support/Mozilla/Extensions/{ec8030f7-c20a-464f-9b0e-13a3a9e97384}/[email protected]
    Tried deleting this, also keeps reappearing.
    It is particularly confusing to me that I have so many different extensions folders. What is the difference between
    Macintosh HD/Library/Application Support/Mozilla/Extensions/
    Macintosh HD/Users/My Name/Library/Application Support/Mozilla/Extensions/
    and
    Macintosh HD/Users/My Name/Library/Application Support/Firefox/Profiles/eiey9ybc.default-1381002852316/Extensions/
    The rest of my extensions are in the last of those three.
    (And also, what's even the difference between Macintosh HD/Library/Application Support/ and Macintosh HD/Users/My Name/Library/Application Support/?)

  • Using a Mac and gmail, comcast & yahoo email clients. When I rcv links in my emails and I try to load them, they don't load into Firefox. I have to copy the link and paste it directly into the browser to activate it. Anybody have this same problem?

    Links not loading in Firefox when you select them in the body of the email

    Managed to solve this myself. Just went to properties > hidden.

  • Say I turn off my Computer or restart it & then I load up Firefox the pages I was previously at loads up. Is there any way to turn this off ?

    == Issue
    ==
    I have another kind of problem with Firefox
    == Description
    ==
    Say I turn off my Computer or restart it & then I load up Firefox the pages I was previously at loads up. This is very very very annoying & I see no options in the settings to turn this off. Is there any way to turn this off ? Even if I just press the X button to close Firefox then later in the day I open Firefox the previous pages always open & it is annoying. I apologize for the language but that is just how ''irritated'' & annoyed I am about this
    <blockquote>language cleaned up by a moderator - eh</blockquote>
    == This happened
    ==
    Every time Firefox opened
    == It started randomly
    ==
    == Troubleshooting information
    ==
    There was nothing in the Troubleshooting about this
    == Firefox version
    ==
    3.6.3
    == Operating system
    ==
    Windows XP
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.3) Gecko/20100401 Firefox/3.6.3
    == Plugins installed
    ==
    *-Default Plug-in
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Shockwave Flash 10.1 r53
    *Adobe Shockwave for Director Netscape plug-in, version 11.5
    *iTunes Detector Plug-in
    *3.0.50106.0
    *Next Generation Java Plug-in 1.6.0_20 for Mozilla browsers

    Hello David.
    Go into ''Tools > Options > General > Startup:When Firefox starts:'' and configure it as you want (probably to show your home page?). This is the very first option that appears in the options screen, but I understand that it may not be very easy to find. Firefox 4 will not include any redesign to the options screen (except possibly it appearing in a tab, rather than in a popup), but you may interested to know that there are plans to redesign the options screen for versions after Firefox 4, to make it easier to use. If you want to know more about the redesign, just ask.
    Anyway, if that doesn't help (it probably does, but just in case), it's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and theme and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.

  • Why will twitpic pictures not load in firefox but will in internet explorer?

    Why suddenly have twitpic pictures stopped loading in Firefox. They load in internet Explorer but just stopped loading on the twitpic site in Firefox??

    The pictures load OK for me, with twitpic on display, click on the site identity button (for details on what that is see [https://support.mozilla.com/kb/Site+Identity+Button]) and then on More Information. This will open up the page info dialog.
    First select the Permissions panel, make sure that "Load Images" is set to allow (selecting Use Default should also work)
    Next select the Media panel, then click on the first item in the list. Use the down arrow key to scroll through the list. If any item has the option "Block images from (domain name)" selected, de-select the option.
    This should hopefully resolve your issue, but also see https://support.mozilla.com/kb/Images+or+animations+do+not+show
    Some add-ons can also block images, for example if you have AdBlock Plus installed, make sure that you have not accidentally created a filter to block the images.

  • I play Farmville in Facebook, but when i use Firefox, this game doesnt load,but when I played Farmville in Internet Explorer...the game loads normally...so i wonder why Farmville doesnt load in Firefox...I've encountered this problem for 3 days...

    anyway, first i thought it may be due to Adopt Flash Player...so i did install a new update of Adopt Flash Player, but it still doesnt work at all...the game doesnt load....
    usually i played Farmville by using Firefox....but now i encountered that problem so i'd like to ask if you can help or give me the explanation why the game doesnt load in Firefox while it does load normally in Google crome or in Internet Explorer...thx

    Your above posted system details show outdated plugin(s) with known security and stability risks.
    *Shockwave Flash 10.0 r32
    Update the [[Managing the Flash plugin|Flash]] plugin to the latest version.
    *http://www.adobe.com/software/flash/about/

  • Can't load Netflix - Firefox says something about cookie problem and recommends try again button. ("The page isn't redirecting properly Firefox has detected tha

    Can't load Netflix - Firefox says something about cookie problem and recommends try again button. ("The page isn't redirecting properly Firefox has detected that the server is redirecting the request for this address in a way that will never complete. This problem can sometimes be caused by disabling or refusing to accept cookies.)" Hit the try again button repeated ly - nothing???

    I decided to give Netflix a call about this problem.
    On a recording while waiting for a support rep, it said if you're having problems logging in to go to:
    http://www.netflix.com/clearcookies
    It works for me. Now I have to logon everytime I go to their site though versus it had kept me already logged in before this problem.
    I will be using that link to get to their site until they get it fixed.

  • Clicking on PDF's within tabs crashes firefox

    If I'm attempting to open multiple PDFs in multiple tabs Firefox crashes almost immediately. Sometimes I'll get away with 1 or 2 tabs open with PDFs but after that any attempt to open a PDF in a new tab causes Firefox to crash. Right clicking on the PDF line and opening the PDF in a new window does work better, but not perfectly. After the crash Firefox will recover once, sometimes twice, gracefully but after that the "Well this is embarrassing..." message comes up. I've tried just about every fix I can find including uninstalling Adobe Reader and re-installing.

    If I'm attempting to open multiple PDFs in multiple tabs Firefox crashes almost immediately. Sometimes I'll get away with 1 or 2 tabs open with PDFs but after that any attempt to open a PDF in a new tab causes Firefox to crash. Right clicking on the PDF line and opening the PDF in a new window does work better, but not perfectly. After the crash Firefox will recover once, sometimes twice, gracefully but after that the "Well this is embarrassing..." message comes up. I've tried just about every fix I can find including uninstalling Adobe Reader and re-installing.

  • Java plugin not loading in Firefox 4.0b11, works fine in 3.6.13

    Java plugin isn't loading in Firefox 4.0b11, but it works fine in 3.6.13 (and in Google Chrome too). It worked in Firefox 4 before, but broke somewhere around beta 5. libnpjp2.so is not really in the plugins folder, but is a symlink: /usr/lib/mozilla/plugins/libnpjp2.so -> /usr/lib/jvm/ia32-java-6-sun-1.6.0.12/jre/lib/i386/libnpjp2.so. When run from the command line, I see FF trying to load the other symlinked plugins (most totem related) but failing because they are amd64, and FF is built in 32bit. But no messages about libnpjp2.so (which IS 32bit).

    this method works for Firefox 4.0 b11..!! [http://www.oracle.com/technetwork/java/javase/manual-plugin-install-linux-136395.html Manually install java plugin....]

  • Farmville will not load using Firefox, but it will with IE, for over a week now.

    Farmville will not load using Firefox, but it will with IE, for over a week now. I have cleared the cache and cookies multiple times, updated flash player, did a virus and malware scan, allowed java script, allowed mozilla in the Windows firewall, contacted Zynga multiple times, and yet Farmville still will not load using Firefox, my main and preferred browser. I'm very frustrated and want this fixed.

    Thanks for the advice cor-el, but if you would read the info I posted, I already did that, SEVERAL TIMES. That's not the solution unfortunately.

Maybe you are looking for

  • Can't send mail with WiFi on-ok with only 3G running

    Using AT&T 3G network, Time Warner RoadRunner via Airport Express. I can download ok with both wifi and 3G running. But when I try to send, the msg just sits in th Outbox. IPhone 4 with latest OS. I'm using MS Entourage on my iMac as POP server.  I c

  • Artwork in itunes and seeing it on an Apple TV

    Hello everyone. I recently purchased my first Mac, a Mini and have also purchased an Apple TV to stream movies, photos and music to our family room. I've been able to get artwork inserted into the music side of itunes but when I try and associate art

  • NW Gateway 1.1 SPS06 in NW  DOE System

    Hi, We are at SP level 12 and NW Gateway 1.1 SPS06 in NW  DOE System. We are supposed to start the ESDMA Application Setup. Applied all the SAP Notes with reference to latest configuration guide. We could see that mandatory SAP Note 1624239 but, not

  • Selecting multiple clips in Imovie for Iphone for plus Ipad 2?

    hi guys first post on these forums i hope you can help. I recently downloaded imovie from the app store for my iphone 4 and so far have been really impressed with it. However there is one problem i'm having. I would like to select multiple clips from

  • Acrobat 8

    Buenas, ¿alguien sabe si es posible trazar las fuentes directamente desde Acrobat 8 (CS3)?, al no reconocermelas en Illutrator cs3 por que dice que no las tengo(cosa que es mentira), me da muchos problemas para editar los documentos, si se pudieran t