ZeroDivisionError: float division by zero

Bug #1948670 reported by Richard
6
This bug affects 1 person
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://bugzilla.redhat.com/show_bug.cgi?id=2016919

* 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/python3.9/site-packages/soundconverter/interface/ui.py", line
1273, in update_progress
    total_progress, task_progress = self.converter_queue.get_progress()
  File "/usr/lib/python3.9/site-packages/soundconverter/util/taskqueue.py",
line 73, in get_progress
    progress, weight = task.get_progress()
  File
"/usr/lib/python3.9/site-packages/soundconverter/gstreamer/converter.py", line
263, in get_progress
    progress = position / duration
ZeroDivisionError: float division by zero

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

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:
soundconverter-4.0.1-5.fc34

Additional info:
reporter: libreport-2.15.2
cgroup: 0::/user.slice/user-1000.slice/user@1000.service/app.slice/app-gnome-soundconverter-60799.scope
cmdline: /usr/bin/python3 -s /usr/bin/soundconverter
crash_function: get_progress
exception_type: ZeroDivisionError
executable: /usr/bin/soundconverter
interpreter: python3-3.9.7-1.fc34.x86_64
kernel: 5.14.14-200.fc34.x86_64
runlevel: N 5
type: Python3
uid: 1000

Truncated backtrace:
converter.py:263:get_progress:ZeroDivisionError: float division by zero

Traceback (most recent call last):
  File "/usr/lib/python3.9/site-packages/soundconverter/interface/ui.py", line 1273, in update_progress
    total_progress, task_progress = self.converter_queue.get_progress()
  File "/usr/lib/python3.9/site-packages/soundconverter/util/taskqueue.py", line 73, in get_progress
    progress, weight = task.get_progress()
  File "/usr/lib/python3.9/site-packages/soundconverter/gstreamer/converter.py", line 263, in get_progress
    progress = position / duration
ZeroDivisionError: float division by zero

Local variables in innermost frame:
self: <soundconverter.gstreamer.converter.Converter object at 0x7fd32433b5b0>
duration: 0.0
position: 0

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836586
File: backtrace

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836587
File: cpuinfo

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836588
File: environ

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836589
File: mountinfo

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836590
File: namespaces

Revision history for this message
In , req1348 (req1348-redhat-bugs) wrote :

Created attachment 1836591
File: open_fds

Revision history for this message
In , hobbes1069 (hobbes1069-redhat-bugs) wrote :
Changed in soundconverter:
importance: Undecided → Critical
milestone: none → 4.0.3
Revision history for this message
GautierPortet (kassoulet) wrote :

Fixed in 4.0.3.
Thank you for the report Richard !

Changed in soundconverter:
status: New → Fix Released
assignee: nobody → GautierPortet (kassoulet)
Changed in soundconverter (Fedora):
importance: Unknown → Undecided
status: Unknown → Confirmed
Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-1fe2a8a7d6 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1fe2a8a7d6

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-5d3fa92e1f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5d3fa92e1f

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-4d386aa200 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d386aa200

Changed in soundconverter (Fedora):
status: Confirmed → Fix Committed
Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-5d3fa92e1f has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-5d3fa92e1f`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-5d3fa92e1f

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-4d386aa200 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-4d386aa200`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d386aa200

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Revision history for this message
In , updates (updates-redhat-bugs) wrote :

FEDORA-2021-1fe2a8a7d6 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-1fe2a8a7d6`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-1fe2a8a7d6

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.