ValueError: Value out of range, should be between 0 and 10322051072
- Dominant language
- Python
- Stars
- 164
- Forks
- 21
- PR merge metrics
- No merged PRs in 30d
Description
I get the error as mentioned in the issue title and I'm not 100% sure why. I do have a adopted storage sd card. Device is a Moto X Pure with TWRP 3.1.0 and LinegaeOS 14.1 installed.
```
[raansu@Y40-80 tetherback]$ tetherback -N -M -D -R -C
usage: tetherback [-h] [--version] [-s DEVICE_ID] [-o OUTPUT_PATH] [-N] [-0]
[-V] [-v] [-f] [-t | -x | -6 | -P] [-M] [-D] [-R] [-C] [-U]
[-E] [-S] [-B] [-X NAME] [--extra-raw NAME]
tetherback: error: -M/--media is deprecated. /data/media* will be included by default. Use -E/--no-media to exclude.
[raansu@Y40-80 tetherback]$ tetherback -N -D -R -C
tetherback v0.9.1
Found ADB version 1.0.36
Using default transfer method: adb exec-out pipe (--exec-out)
Device reports kernel 3.10.84-perf-g0ec7138
Device reports TWRP version 3.1.0-0
Reading partition map for mmcblk0 (48 partitions)...
partition map: 100%
Reading partition map for mmcblk0rpmb (0 partitions)...
partition map: 100%
Reading partition map for mmcblk1 (2 partitions)...
partition map: 100%
Saving backup images in ./nandroid-backup-2017-04-24--04-10-33/ ...
Saving partition boot (mmcblk0p36), 40 MiB uncompressed...
boot.emmc.gz: 100% 5.1 MiB/s 10.5 MiB
Saving partition recovery (mmcblk0p37), 40 MiB uncompressed...
recovery.emmc.gz: 100% 6.3 MiB/s 14.6 MiB
Saving partition system (mmcblk0p47), 4096 MiB uncompressed...
system.emmc.gz: 100% 3.1 MiB/s 494.2 MiB
Saving partition userdata (mmcblk0p48), 9843 MiB uncompressed...
userdata.emmc.gz: 99% 8.3 MiB/s 9.6 GiB Traceback (most recent call last):
File "/usr/bin/tetherback", line 11, in
load_entry_point('tetherback==0.9.1', 'console_scripts', 'tetherback')()
File "/usr/lib/python3.6/site-packages/tetherback/tetherback.py", line 344, in main
backup_partition(adb, partmap[standard], bp, args.transport, backupdir, args.verify)
File "/usr/lib/python3.6/site-packages/tetherback/tetherback.py", line 284, in backup_partition
pbar.update(out.tell())
File "/usr/lib/python3.6/site-packages/progressbar/bar.py", line 501, in update
% (self.min_value, self.max_value))
ValueError: Value out of range, should be between 0 and 10322051072
[raansu@Y40-80 tetherback]$
```
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in tetherback/tetherback.py at backup_partition, especially the pbar.update(out.tell()) call shown in the traceback. Reproduce the backup with the displayed tetherback command and determine why the progress value exceeds the progressbar limit; done means the userdata backup completes without the ValueError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, python
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100