Bug#981017: whipper: Whipper throws tracebacks

2022-04-14 Thread Louis-Philippe Véronneau
Thank you for reporting this bug.

Could you check if this still happens with the latest version in Debian
unstable (0.10.0-1)?

Upstream fixed quite a lot of bugs between 0.9.0 and 0.10.0 :)

Cheers,

-- 
  ⢀⣴⠾⠻⢶⣦⠀
  ⣾⠁⢠⠒⠀⣿⡁  Louis-Philippe Véronneau
  ⢿⡄⠘⠷⠚⠋   po...@debian.org / veronneau.org
  ⠈⠳⣄



Bug#981017: whipper: Whipper throws tracebacks

2021-01-25 Thread Martin Dosch
Package: whipper
Version: 0.9.0-4+b1
Severity: normal

Dear Maintainer,

I connected my newly bought external USB CD drive to my laptop and wanted to
determine the offset to be able to rip CDs to my laptop.
Whipper throws a lot of tracebacks when trying to determine the offset and
eventually I aborted the process as I'm not sure I'll get
any meaningful results if there are so many errors:

whipper offset find:(
INFO:whipper.command.offset:checking device /dev/sr0
Track 1 finished, found 67 Q sub-channels with CRC errors
Track 2 finished, found 30 Q sub-channels with CRC errors
Track 3 finished, found 50 Q sub-channels with CRC errors
Track 4 finished, found 32 Q sub-channels with CRC errors
Track 5 finished, found 74 Q sub-channels with CRC errors
Track 6 finished, found 58 Q sub-channels with CRC errors
Track 7 finished, found 60 Q sub-channels with CRC errors
Track 8 finished, found 43 Q sub-channels with CRC errors
Track 9 finished, found 103 Q sub-channels with CRC errors
Track 10 finished, found 113 Q sub-channels with CRC errors
Track 11 finished, found 82 Q sub-channels with CRC errors
Track 12 finished, found 51 Q sub-channels with CRC errors
Track 13 finished, found 104 Q sub-channels with CRC errors
Track 14 finished, found 79 Q sub-channels with CRC errors
Track 15 finished, found 130 Q sub-channels with CRC errors
INFO:whipper.command.offset:trying read offset 6...
INFO:whipper.command.offset:trying read offset 667...
WARNING:whipper.program.cdparanoia:file size 0 did not match expected size
37831964
WARNING:whipper.program.cdparanoia:non-integral amount of frames difference
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
197, in getTrackQuality
return min(frames * 2.0 / reads, 1.0)
ZeroDivisionError: float division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/whipper/extern/task/task.py", line 518,
in c
callable_task(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
312, in _read
self._done()
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
388, in _done
self.quality = self._parser.getTrackQuality()
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
199, in getTrackQuality
raise RuntimeError("cdparanoia couldn't read any frames "
RuntimeError: cdparanoia couldn't read any frames for the current track
WARNING:whipper.command.offset:unknown task exception for offset 667:
(RuntimeError("cdparanoia couldn't read any frames for the current track"),
'exception RuntimeError at /usr/lib/python3/dist-
packages/whipper/program/cdparanoia.py:199: getTrackQuality(): cdparanoia
couldn\'t read any frames for the current track\nTraceback (most recent call
last):\n  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py",
line 197, in getTrackQuality\nreturn min(frames * 2.0 / reads,
1.0)\nZeroDivisionError: float division by zero\n\nDuring handling of the above
exception, another exception occurred:\n\nTraceback (most recent call last):\n
File "/usr/lib/python3/dist-packages/whipper/extern/task/task.py", line 518, in
c\ncallable_task(*args, **kwargs)\n  File "/usr/lib/python3/dist-
packages/whipper/program/cdparanoia.py", line 312, in _read\nself._done()\n
File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line 388,
in _done\nself.quality = self._parser.getTrackQuality()\n  File
"/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line 199, in
getTrackQuality\nraise RuntimeError("cdparanoia couldn\'t read any frames
"\nRuntimeError: cdparanoia couldn\'t read any frames for the current track\n')
WARNING:whipper.command.offset:cannot rip with offset 667...
INFO:whipper.command.offset:trying read offset 48...
INFO:whipper.command.offset:trying read offset 102...
INFO:whipper.command.offset:trying read offset 12...
INFO:whipper.command.offset:trying read offset 30...
INFO:whipper.command.offset:trying read offset 103...
INFO:whipper.command.offset:trying read offset 618...
WARNING:whipper.program.cdparanoia:file size 0 did not match expected size
37831964
WARNING:whipper.program.cdparanoia:non-integral amount of frames difference
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
197, in getTrackQuality
return min(frames * 2.0 / reads, 1.0)
ZeroDivisionError: float division by zero

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/whipper/extern/task/task.py", line 518,
in c
callable_task(*args, **kwargs)
  File "/usr/lib/python3/dist-packages/whipper/program/cdparanoia.py", line
312, in _read
self._done()
  File