[ 9 posts ]

Andrew Pettican

  • Username: phatphug
  • Joined: Sun Dec 13, 2009 1:14 am
  • Posts: 3
  • Offline
  • Profile

Uploader examples don't work on my Vista machine

Post Posted: Sun Dec 13, 2009 2:08 am
+0-
For some reason, I cannot get the YUI Uploader Control examples to work on my Vista machine
I've tried out the basic example listed here on a number of browsers:
http://developer.yahoo.com/yui/examples ... utton.html

In all cases the progress bar immediately jumps from 0 to 100% and then pauses for 20+ seconds while the file is obviously still uploading.

However, if I run the same test using Windows XP x86 or Windows 7 x64, the examples work properly.

Any ideas as to why this wont run on my Vista machine? (I presume it works on other Vista machines).

Logs are below:



Vista x64 Machine:

Safari v4.0.3: (Flash Version - 10,0,32,18):
The progress bar jumps directly to 0% to 100% at 09:18:43, but it doesn't actually complete the upload until 09:19:04 (21 seconds later)

INFO 44430ms (+21341) 09:19:04: global Upload complete for file0
INFO 23089ms (+4) 09:18:43: global Progress for file0: 2379103 / 2379103
INFO 23085ms (+3) 09:18:43: global Progress for file0: 1802240 / 2379103
INFO 23082ms (+5) 09:18:43: global Progress for file0: 1310720 / 2379103
INFO 23077ms (+518) 09:18:43: global Progress for file0: 229376 / 2379103
INFO 22559ms (+5740) 09:18:43: global Started upload for file0


IE8 (Flash Version - 10,0,42,34):
The progress bar jumps directly to 0% to 100% at 09:17:44, but it doesn't actually complete the upload until 09:18:18 (34 seconds later)

INFO 42265ms (+33962) 09:18:18: global Upload complete for file0
INFO 8303ms (+45) 09:17:44: global Progress for file0: 2379103 / 2379103
INFO 8258ms (+265) 09:17:44: global Progress for file0: 491520 / 2379103
INFO 7993ms (+1649) 09:17:44: global Started upload for file0


Firefox v3.5.5: (Flash Version - 10,0,32,18):
The progress bar jumps directly to 0% to 100% at 09:23:41, but it doesn't actually complete the upload until 09:24:04 (23 seconds later)

INFO 35505ms (+22851) 09:24:04: global Upload complete for file0
INFO 12654ms (+30) 09:23:41: global Progress for file0: 2379103 / 2379103
INFO 12624ms (+548) 09:23:41: global Progress for file0: 294912 / 2379103
INFO 12076ms (+1669) 09:23:41: global Started upload for file0



Windows XP x86 Machine:

IE6: (Flash Version - 10,0,42,34):
This works as expected, the progress bar is updating 3-4x per second between until complete
INFO 86615ms (+922) 09:16:53: global Upload complete for file0
INFO 85693ms (+340) 09:16:52: global Progress for file0: 2379103 / 2379103
INFO 85353ms (+391) 09:16:51: global Progress for file0: 2359296 / 2379103
INFO 84962ms (+461) 09:16:51: global Progress for file0: 2326528 / 2379103
...there are loads of similar statements here...
INFO 62119ms (+10) 09:16:28: global Progress for file0: 98304 / 2379103
INFO 62109ms (+270) 09:16:28: global Progress for file0: 65536 / 2379103
INFO 61839ms (+10) 09:16:28: global Progress for file0: 32768 / 2379103
INFO 61829ms (+281) 09:16:28: global Progress for file0: 0 / 2379103
INFO 61548ms (+3434) 09:16:28: global Started upload for file0


Firefox v3.5.5: (Flash Version - 10,0,42,34):
This works as expected, the progress bar is updating 3-4x per second between until complete
INFO 33908ms (+739) 09:41:11: global Upload complete for file0
INFO 33169ms (+261) 09:41:10: global Progress for file0: 2379103 / 2379103
INFO 32908ms (+254) 09:41:10: global Progress for file0: 2359296 / 2379103
INFO 32654ms (+250) 09:41:10: global Progress for file0: 2326528 / 2379103
INFO 32404ms (+247) 09:41:10: global Progress for file0: 2293760 / 2379103
...there are loads of similar statements here...
INFO 15136ms (+811) 09:40:52: global Progress for file0: 131072 / 2379103
INFO 14325ms (+19) 09:40:52: global Progress for file0: 98304 / 2379103
INFO 14306ms (+267) 09:40:52: global Progress for file0: 65536 / 2379103
INFO 14039ms (+380) 09:40:51: global Progress for file0: 32768 / 2379103
INFO 13659ms (+2676) 09:40:51: global Started upload for file0



Windows 7 x64 Machine:

Firefox v3.5.3: (Flash Version - 10,0,42,34):
This works as expected, the progress bar is updating 3-4x per second between until complete
INFO 18906ms (+805) 09:52:22:global Upload complete for file0
INFO 18101ms (+260) 09:52:22: global Progress for file0: 879394 / 879394
INFO 17841ms (+256) 09:52:21: global Progress for file0: 851968 / 879394
INFO 17585ms (+256) 09:52:21: global Progress for file0: 819200 / 879394
INFO 17329ms (+256) 09:52:21: global Progress for file0: 786432 / 879394
...there are loads of similar statements here...
INFO 11120ms (+39) 09:52:15: global Progress for file0: 98304 / 879394
INFO 11081ms (+255) 09:52:14: global Progress for file0: 65536 / 879394
INFO 10826ms (+224) 09:52:14: global Progress for file0: 32768 / 879394
INFO 10602ms (+2737) 09:52:14:global Started upload for file0


Can anybody think of reasons why this doesnt work on Vista?

thanks

Kristopher Ives

  • Username: krisives
  • Joined: Tue Aug 11, 2009 5:00 am
  • Posts: 64
  • Location: Salem, OR
  • Twitter: kristopherives
  • GitHub: krisives
  • Gists: krisives
  • IRC: krisives
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Tue Dec 15, 2009 11:06 pm
+0-
This is probably a Flash bug. The progress bar behaves somewhat like that in Linux where progress events other than 0% and 100% aren't delivered at all.

Usually I am careful not to blame a component and will hunt for evidence of the issue, but Flash has done some serious wrong. For example, if you use the Compiz windowing system (http://compiz.org) your mouse input for Flash components won't be handled correctly. Using a different window manager like Metacity fixes the problem, so Compiz is to blame, right? Actually, Flash checks if Compiz is running and only uses the incorrect/bugged logic if it's running.

By any chance do you know if this happens in 32-bit on Vista?

Andrew Pettican

  • Username: phatphug
  • Joined: Sun Dec 13, 2009 1:14 am
  • Posts: 3
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Wed Dec 16, 2009 1:30 am
+0-
After a little further research, I'm guessing this is a problem with flash.

I've heard reports that firewall software and/or proxy servers can cause this behaviour.

I've also experienced the same problem with a number of other flash upload scripts which indicates to me that its more of a general flash issue rather than YUI specifically:
http://www.uploadify.com/demo/
http://demo.swfupload.org/v220/index.htm

I've tried disabling my antivirus and firewall, and I dont use a proxy server. However I've had no luck in getting any of the demos (including the YUI one) to work on my Vista x64 machine.

The demos do work on my Vista x86 machine at work, but my guess is that some software on my 64 bit machine is conflicting with flash. I reckon the demos would still work on a clean install of Vista 64 as they don't have a problem with Win 7 x64.

In any case, I think my only reliable option for a progress bar therefore is to use a JavaScript only solution. Not as elegant as I would have liked, but at least it'll work for the majority of users.

Allen Rabinovich

YUI Developer

  • YUI Developer
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Fri Dec 18, 2009 10:40 pm
+0-
This is very likely a Vista x64 + Flash issue. Flash uses an OS-level TCP stack when it sends out its POST requests with the files in them, so if it doesn't interface with the OS's native TCP implementation correctly, this is the sort of problem one might see.

We'll test further to make sure we can reproduce this (once I get my hands on Vista x64), and note the bug in our usage notes. If I can reproduce, I will also file the bug with Adobe (feel free to do so as well -- bugs.adobe.com/flashplayer).

Andrew Pettican

  • Username: phatphug
  • Joined: Sun Dec 13, 2009 1:14 am
  • Posts: 3
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Sat Dec 19, 2009 10:10 am
+0-
Thanks for your reply Allen.
I'd be interested to see if you can replicate this problem on a clean Vista x64 install too.

quasiobject

  • Joined: Fri Feb 26, 2010 8:35 am
  • Posts: 3
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Fri Feb 26, 2010 8:40 am
+0-
I'm experiencing pretty much the same issue with the Uploader.

For me, the issue seems to be with Flash and XP. The Uploader will report 0%, then ~10-15% and then 100% loaded (all within the first 5-10 seconds). Then, some seconds or minutes later the upload will actually complete.

I've actually had success on Windows 7, Leopard and Snow Leopard.

Someone mentioned proxies or firewalls -- both XP installs that I've tested on use AVG (just looking for a common thread). I wonder if that's getting in the way of the Flash upload reporting? It makes me wonder if it's Flash or XP at all...

Update: Just found this post on Stack Overflow...
http://stackoverflow.com/questions/2044 ... ess-values

Allen Rabinovich

YUI Developer

  • YUI Developer
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Fri Feb 26, 2010 12:19 pm
+0-
quasiobject wrote:
I'm experiencing pretty much the same issue with the Uploader.

For me, the issue seems to be with Flash and XP. The Uploader will report 0%, then ~10-15% and then 100% loaded (all within the first 5-10 seconds). Then, some seconds or minutes later the upload will actually complete.

I've actually had success on Windows 7, Leopard and Snow Leopard.

Someone mentioned proxies or firewalls -- both XP installs that I've tested on use AVG (just looking for a common thread). I wonder if that's getting in the way of the Flash upload reporting? It makes me wonder if it's Flash or XP at all...

Update: Just found this post on Stack Overflow...
http://stackoverflow.com/questions/2044 ... ess-values


Yeah, proxies are tricky with the Flash uploader, unfortunately. It would be interesting to see if Google Chrome, which reports upload progress on ordinary HTTP file uploads, behaves similarly in this setting.

quasiobject

  • Joined: Fri Feb 26, 2010 8:35 am
  • Posts: 3
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Fri Feb 26, 2010 12:27 pm
+0-
We tested with Chrome on one of the XP/AVG machines and it does the same.

I set an alert on every onUploadProgress event and it would return the same values (0, ~10% and then 100%) and then complete the upload sometime after.

I think it's just as the guy mentioned on Stack Overflow -- AVG seems to intercept the upload, so Flash thinks it's done. Meanwhile, AVG is uploading the file to the server.

This reminded me that my wife was uploading a video to Flickr using the Flash uploader the a couple weeks ago. It jumped to 98% really quickly and then took another 15-20 minutes to complete uploading. I imagine AVG was the culprit there, too.

quasiobject

  • Joined: Fri Feb 26, 2010 8:35 am
  • Posts: 3
  • Offline
  • Profile

Re: Uploader examples don't work on my Vista machine

Post Posted: Fri Feb 26, 2010 2:04 pm
+0-
Did a bit more testing on this and I've narrowed my issue down to the Link Scanner in AVG. I disabled all its options in the program and upload progress is accurately reported.
  [ 9 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum