{"action":"created","issue":{"url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/123","labels_url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/123/labels{/name}","comments_url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/123/comments","events_url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/123/events","html_url":"https://github.com/ubuntu/ubuntu-make/issues/123","id":93895794,"number":123,"title":"Intermittent progressbar crash (ValueError: Value out of range)","user":{"login":"pjdelport","id":630271,"avatar_url":"https://avatars.githubusercontent.com/u/630271?v=3","gravatar_id":"","url":"https://api.github.com/users/pjdelport","html_url":"https://github.com/pjdelport","followers_url":"https://api.github.com/users/pjdelport/followers","following_url":"https://api.github.com/users/pjdelport/following{/other_user}","gists_url":"https://api.github.com/users/pjdelport/gists{/gist_id}","starred_url":"https://api.github.com/users/pjdelport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjdelport/subscriptions","organizations_url":"https://api.github.com/users/pjdelport/orgs","repos_url":"https://api.github.com/users/pjdelport/repos","events_url":"https://api.github.com/users/pjdelport/events{/privacy}","received_events_url":"https://api.github.com/users/pjdelport/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-07-08T21:36:07Z","updated_at":"2015-09-01T19:07:35Z","closed_at":"2015-09-01T08:13:54Z","body":"On a fresh installation of Ubuntu 15.04, after doing the usual system package updates, my first attempt at installing PyCharm failed with the following crash:\r\n\r\n```\r\npiet:~$ umake ide pycharm\r\nChoose installation path: /home/piet/tools/ide/pycharm\r\nDownloading and installing requirements                                                                                                              |\r\nERROR: Unhandled exception########################################################################################################################## |\r\nTraceback (most recent call last):\r\n  File \"/usr/lib/python3/dist-packages/umake/tools.py\", line 154, in wrapper\r\n    function(*args, **kwargs)\r\n  File \"/usr/lib/python3/dist-packages/umake/frameworks/baseinstaller.py\", line 262, in get_progress\r\n    self.pbar.update(progress)\r\n  File \"/usr/lib/python3/dist-packages/progressbar/__init__.py\", line 271, in update\r\n    raise ValueError('Value out of range')\r\nValueError: Value out of range\r\npiet:~$\r\n```\r\n\r\nHowever, re-running `umake ide pycharm` completes the installation successfully.\r\n\r\nI can only offer some speculation about the cause:\r\n\r\n1. I *might* have resized the terminal window during the first run, so my first guess was that the progressbar library might have a SIGWINCH-related bug in its range calculation. However, glancing at the code, it doesn't look like its `self.maxval` gets touched by SIGWINCH, so this seems unlikely.\r\n2. My next guess is that `BaseInstaller.get_progress()`'s tricky calculation of the progress value might sometimes be overshooting the default `maxval`: perhaps due to some edge case in updating the download progress values, or even due to float rounding?\r\n\r\nPackage versions:\r\n\r\n* python3-apt: 0.9.3.11build1\r\n* python3-argcomplete: 0.8.1-0ubuntu1\r\n* python3-bs4: 4.3.2-2ubuntu2\r\n* python3-gi: 3.14.0-1\r\n* python3-pexpect: 3.2-1\r\n* python3-progressbar: 2.3-1\r\n* python3-requests: 2.4.3-6\r\n* python3-xdg: 0.25-4\r\n* python3-yaml: 3.11-2\r\n* python3: 3.4.3-1\r\n* ubuntu-make: 0.6.2\r\n"},"comment":{"url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/comments/136830076","html_url":"https://github.com/ubuntu/ubuntu-make/issues/123#issuecomment-136830076","issue_url":"https://api.github.com/repos/ubuntu/ubuntu-make/issues/123","id":136830076,"user":{"login":"pjdelport","id":630271,"avatar_url":"https://avatars.githubusercontent.com/u/630271?v=3","gravatar_id":"","url":"https://api.github.com/users/pjdelport","html_url":"https://github.com/pjdelport","followers_url":"https://api.github.com/users/pjdelport/followers","following_url":"https://api.github.com/users/pjdelport/following{/other_user}","gists_url":"https://api.github.com/users/pjdelport/gists{/gist_id}","starred_url":"https://api.github.com/users/pjdelport/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pjdelport/subscriptions","organizations_url":"https://api.github.com/users/pjdelport/orgs","repos_url":"https://api.github.com/users/pjdelport/repos","events_url":"https://api.github.com/users/pjdelport/events{/privacy}","received_events_url":"https://api.github.com/users/pjdelport/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T19:07:35Z","updated_at":"2015-09-01T19:07:35Z","body":"Cool, thanks!"}}