Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Download Progress Bar Breaks Download Functionality #1334

Closed
alvin-nt opened this issue Feb 13, 2017 · 5 comments
Closed

Download Progress Bar Breaks Download Functionality #1334

alvin-nt opened this issue Feb 13, 2017 · 5 comments
Assignees

Comments

@alvin-nt
Copy link
Contributor

Seems like the new download bar is breaking some download. This occurs on stuff that requires fetching resources that do not display its file size. Perhaps related to #1329?

Environment

  • Windows 10 64-bit v1607
  • PowerShell 5.1

Steps to reproduce

  1. Have a clean Windows install
  2. Install scoop using the method described in http://scoop.sh/
  3. Run scoop install pshazz or scoop install concfg
  4. The PS terminal is stuck on infinite loop, trying to produce the 'correct' download bar.

Affected apps

  1. pshazz
  2. concfg
@rrelmy
Copy link
Collaborator

rrelmy commented Feb 14, 2017

@deevus I can reproduce it, can you take a look at it?

The download URLs for github have a redirect, maybe that's a hint

@deevus
Copy link
Member

deevus commented Feb 14, 2017 via email

@alvin-nt
Copy link
Contributor Author

Is it currently possible for the user to disable the download bar through scoop config?

lukesampson added a commit that referenced this issue Feb 14, 2017
@lukesampson
Copy link
Member

This looks like it might be a concurrency issue, where for small downloads ContentLength can be read from HttpWebRequest before it has been set, and the default of -1 causes the infinite loop.

As a temporary workaround, I've disabled progress when ContentLength < 0, which should keep installs working until we can address this properly.

To fix it properly, we probably just need to ensure content has been received before reading the ContentLength property. This was a problem with the original code before the new progress bar was added, it just glitched rather than entering an infinite loop.

@deevus
Copy link
Member

deevus commented Feb 14, 2017 via email

@r15ch13 r15ch13 closed this as completed Sep 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants