ZeroDivisionError: float division by zero
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
SoundConverter |
Fix Released
|
Critical
|
GautierPortet | ||
soundconverter (Fedora) |
Fix Committed
|
Undecided
|
Bug Description
I'm reporting this on the user's behalf from Fedora, see:
https:/
* Version 4.0.1
I was converting files in several folders from FLAC to OPUS.
When adding the folders, SoundConverter added also JPEG files to the conversion
list.
When it tried to convert them, it returned an error, the GUI stopped showing
progress but the conversion continued in the background.
Traceback (most recent call last):
File "/usr/lib/
1273, in update_progress
total_progress, task_progress = self.converter_
File "/usr/lib/
line 73, in get_progress
progress, weight = task.get_progress()
File
"/usr/lib/
263, in get_progress
progress = position / duration
ZeroDivisionError: float division by zero
Changed in soundconverter: | |
importance: | Undecided → Critical |
milestone: | none → 4.0.3 |
Changed in soundconverter (Fedora): | |
importance: | Unknown → Undecided |
status: | Unknown → Confirmed |
Changed in soundconverter (Fedora): | |
status: | Confirmed → Fix Committed |
Description of problem:
I was converting files in several folders from FLAC to OPUS.
When adding the folders, SoundConverter added also JPEG files to the conversion list.
When it tried to convert them, it returned an error, the GUI stopped showing progress but the conversion continued in the background.
Version-Release number of selected component: 4.0.1-5. fc34
soundconverter-
Additional info: slice/user- 1000.slice/ user@1000. service/ app.slice/ app-gnome- soundconverter- 60799.scope soundconverter soundconverter 3.9.7-1. fc34.x86_ 64 200.fc34. x86_64
reporter: libreport-2.15.2
cgroup: 0::/user.
cmdline: /usr/bin/python3 -s /usr/bin/
crash_function: get_progress
exception_type: ZeroDivisionError
executable: /usr/bin/
interpreter: python3-
kernel: 5.14.14-
runlevel: N 5
type: Python3
uid: 1000
Truncated backtrace: py:263: get_progress: ZeroDivisionErr or: float division by zero
converter.
Traceback (most recent call last): python3. 9/site- packages/ soundconverter/ interface/ ui.py", line 1273, in update_progress queue.get_ progress( ) python3. 9/site- packages/ soundconverter/ util/taskqueue. py", line 73, in get_progress python3. 9/site- packages/ soundconverter/ gstreamer/ converter. py", line 263, in get_progress
File "/usr/lib/
total_progress, task_progress = self.converter_
File "/usr/lib/
progress, weight = task.get_progress()
File "/usr/lib/
progress = position / duration
ZeroDivisionError: float division by zero
Local variables in innermost frame: .gstreamer. converter. Converter object at 0x7fd32433b5b0>
self: <soundconverter
duration: 0.0
position: 0