Mac Issues

Feb 11, 2009 at 7:08 PM
I've been running into some oddities when using this tool on a mac.  I've got the latest files running as of Jan 15th. On a windows machine, the tool uploads beautifully, I've got it tested successfully with 204 files at 840mb, no errors, works perfectly, but when I try it on a mac, sometimes it works sometimes it doesn't. I've been trying without success to isolate the issue to some kind of pattern or commonality, but there does not appear to be any.

Windows: works perfectly, Safari, I.E 6 & &, Firefox..

Apple: Intermittant at best:
Some machines work perfectly, others work intermittently...

I've checked OS versions, browser versions, and there is no common pattern to the behavior, two seperate mac laptops with exact same configs one works one doesn't... Verified versions of flash, MacOS, and Browsers, but there does not appear to be any consistancy...

Here's what I experience:

Oddity #1
The upload tool successfully grabs the files and adds them to the upload file list, then upon clicking on upload, the first row file is highlighted, but then nothing, no progress bar nothing, The initial file does get uploaded, but does not register with the tool at all..

Oddity #2
The upload tool grabs the files and creates the list correctly, it begins to upload, and then pauses on the 2nd, sometimes 3rd or 4rth file upload and just hangs..

I was able to upload one photo in one occurance, then on the second attempt it died, exact same image, it just didnt't work,

If there is any debugging tool I can use on a mac to determine what is broken or work arounds, I am happy to debug myself, but at this point I don't even know where to begin, I don't think digging around in the code is going to be worth my time since it works fine sometimes...

also this occurs mostly with .jpg's .flv's appear to function correctly, however, I have not tested file type differences thuroughly... 

any help is appreciated, I also experience this on the flajaxian demo site, so it appears to be the tool itself...

Thanks
Coordinator
Feb 11, 2009 at 8:47 PM

Hi Jankerson,

You you can use flash tracer to debug flash. First set the IsDebug property:

<fjx:FileUploader ID="FileUploader1" runat="server" IsDebug="true">
    <Adapters>
        <fjx:FileSaverAdapter Runat="server" FolderName="UploadFolder" />
    </Adapters>
</fjx:FileUploader>

Then put the ServerTracer.swf file in the same folder where is the web page. You can find this file in the source /flash folder. Then reload the page and check the upload while watching in another window the ServerTracer.swf trace.

Coordinator
Feb 12, 2009 at 1:16 AM
If you can copy the flash trace you got when it doesn't work and paste it here I can tell more.
Feb 13, 2009 at 8:54 AM
I"ll give it a try... thanks for the response!
Feb 17, 2009 at 11:05 PM

11)[2009-2-17 15:49:56.108]
-------------------------
getFileUploadRequest:http://***EDITED*****/mediaConnectionUpload.asp
x?__ID=FileUploader1&__AspCookie.Session=jh3glu45n2kreu451kbpit55&__AspCooki
e.Auth=4F5CE0DEFB2CD10B29C9E986EB6E7C31297550DE88A2D0BD1D3B7CFE64161D83A9F51
3F3E9DED29067F74F3A6115A63A30D62BA81675C7FD4BD31D8315CC23D63369F8FBF1E900FFD
A88E666FB64A8A7&
Object type is: [flash.net::URLVariables] Object content is:
{
    eventId: "***EDITED*****",
    userId: "***EDITED*****"
}
-------------------------

10)[2009-2-17 15:49:56.2]
-------------------------
setStateVariables | false
Object type is: [Array]
Object content is:
[
    /*0*/{
        key: "userId",
        fileID: 0,
        value: "****EDITED*******"
    }
]
-------------------------

9)[2009-2-17 15:49:55.898]
-------------------------
setStateVariables | false
Object type is: [Array]
Object content is:
[
    /*0*/{
        key: "eventId",
        fileID: 0,
        value: ****EDITED*******
    }
]
-------------------------

8)[2009-2-17 15:49:55.797]
CALL to
JavaScript:FileUploader1_SetChangedFileStates([{id:1,state:2,httpStatus:200,
isLast:false}])
7)[2009-2-17 15:49:55.694]
initiateUpload
6)[2009-2-17 15:49:53.956]
onFilesSelected | state:6
5)[2009-2-17 15:49:53.853]
CALL to JavaScript:FileUploader1_SetFileList([{id:1,name:"Fourth
Place.jpg",bytes:228427,state:1},{id:2,name:"Grand
Debut.jpg",bytes:198828,state:1},{id:3,name:"Great
Start.jpg",bytes:129220,state:1},{id:4,name:"Heat
Racing.jpg",bytes:181123,state:1},{id:5,name:"Holeshot.jpg",bytes:163201,sta
te:1},{id:6,name:"Main Image.jpg",bytes:222759,state:1}])
4)[2009-2-17 15:49:53.744]
-------------------------
onSelectFiles
Object type is: [Array]
Object content is:
[
    /*0*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:18:35 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:18:35 GMT-0800 2009"),
        type: null,
        name: "Fourth Place.jpg",
        size: 228427
    },
    /*1*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:18:02 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:18:02 GMT-0800 2009"),
        type: null,
        name: "Grand Debut.jpg",
        size: 198828
    },
    /*2*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:17:45 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:17:45 GMT-0800 2009"),
        type: null,
        name: "Great Start.jpg",
        size: 129220
    },
    /*3*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:19:09 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:19:09 GMT-0800 2009"),
        type: null,
        name: "Heat Racing.jpg",
        size: 181123
    },
    /*4*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:18:53 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:18:53 GMT-0800 2009"),
        type: null,
        name: "Holeshot.jpg",
        size: 163201
    },
    /*5*/{
        creator: null,
        creationDate: Date.parse("Tue Feb 10 18:16:59 GMT-0800 2009"),
        modificationDate: Date.parse("Tue Feb 10 18:16:59 GMT-0800 2009"),
        type: null,
        name: "Main Image.jpg",
        size: 222759
    }
]
-------------------------

3)[2009-2-17 15:49:47.122]
onBrowse
2)[2009-2-17 15:49:44.770]
-------------------------
doInitialize
Object type is: [Object]
Object content is:
{
    allowedFileTypes: "All Files:*.jpg;*.jpeg;*.flv;",
    t: "633700770259687500",
    maxFileSize: "104857600",
    debug: "true",
    clearListAtEnd: "true",
    d:
"tgceHghOpNsEjMQ6D32k-83IdOHApKpdq7PA8NNuPEWja7YYu0Xq__o7r1sIZK1Mm9pWX_WrOxf
wZNWoVaBuf_1FoaWK__nCadvci2K2n3A1",
    maxFileQueueSize: "1072668082176",
    id: "FileUploader1",
    enabled: "true",
    uploadRequiresJsConfirmation: "false",
    maxFileNumberLimit: "2147483647",
    initiallyInvisible: "false",
    isIE: "false",
    targetUrl:
"***EDITED*****mediaConnectionUpload.aspx?__ID=FileUploader1
_(!AMP!)___AspCookie.Session=jh3glu45n2kreu451kbpit55_(!AMP!)___AspCookie.Au
th=4F5CE0DEFB2CD10B29C9E986EB6E7C31297550DE88A2D0BD1D3B7CFE64161D83A9F513F3E
9DED29067F74F3A6115A63A30D62BA81675C7FD4BD31D8315CC23D63369F8FBF1E900FFDA88E
666FB64A8A7_(!AMP!)_"
}
-------------------------

1)[2009-2-17 15:49:44.667]
CALL to JavaScript:FileUploader1_MarkInitialized()

Feb 17, 2009 at 11:07 PM
so that's the trace on the Mac that doesn't work... Browsing with Firefox 3... flash 10 i beleive, but I can confirm if it would be helpful... the loading bar never fires, and the upload tool just hangs... the first file does get uploaded tho... no other files make it... let me know if this helps... I'd be happy to run some more tests if it would be helpful...
Coordinator
Feb 18, 2009 at 12:22 AM

Yes I see the problem, it was actually reported a couple of months ago. The flash player for MAC has bug so the event File Upload never gets fired. To go around this problem some time ago I have added the code to check the file upload progress and when it is 100% I mark it as upload complete.

But in your case I assume it is on a local network so the upload is so quick that no upload progress ever gets fired or at least I don't see it in the trace. In real app in the cloud there will be at least one upload upload progress call. You shouldn't see it with bigger files, right?

I guess I can add timeout that can check if nothing happens after a few secs I can assume the upload was done... Unfortunately in this case we inherit the bugs of Flash player.

Feb 18, 2009 at 12:53 AM
right, well for the testing its local... and a timeout might be helpful, but I am pushing this out to the web at some point, and have done some testing, on a windows machine i was able to upload over 200 files, that totaled about 800mb without problem so a timeout might not really help..  but this really seems like such a small case, probably not worth changing since it is a bug... 

and the upload bar does fire on the mac that works... just not in this one special case... your help is appreciated, and I'll keep at it...

thanks for the response...
Sep 7, 2009 at 7:06 AM

Hello,

I'm having the same problem that the upload gets stuck after the first file upload in Mac environment, but only for small files. Larger files work ok.

Did you ever find a solution for this? Any help would be appreciated.

Mac OS X
Firefox 3.5.2
Flash 10.0.32.18
Latest binary (aug 17)