Bug 2016919 - [abrt] soundconverter: get_progress(): converter.py:263:get_progress:ZeroDivisionError: float division by zero
Summary: [abrt] soundconverter: get_progress(): converter.py:263:get_progress:ZeroDivi...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: soundconverter
Version: 34
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Richard Shaw
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:515bff742bf26f3e31c077b1369...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-25 06:58 UTC by Dario Castellarin
Modified: 2021-11-04 01:33 UTC (History)
5 users (show)

Fixed In Version: soundconverter-4.0.3-1.fc35 soundconverter-4.0.3-1.fc33 soundconverter-4.0.3-1.fc34
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-11-03 01:11:38 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: backtrace (753 bytes, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details
File: cpuinfo (2.45 KB, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details
File: environ (1.98 KB, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details
File: mountinfo (2.98 KB, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details
File: namespaces (172 bytes, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details
File: open_fds (7.81 KB, text/plain)
2021-10-25 06:58 UTC, Dario Castellarin
no flags Details

Description Dario Castellarin 2021-10-25 06:58:41 UTC
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/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

Comment 1 Dario Castellarin 2021-10-25 06:58:45 UTC
Created attachment 1836586 [details]
File: backtrace

Comment 2 Dario Castellarin 2021-10-25 06:58:46 UTC
Created attachment 1836587 [details]
File: cpuinfo

Comment 3 Dario Castellarin 2021-10-25 06:58:47 UTC
Created attachment 1836588 [details]
File: environ

Comment 4 Dario Castellarin 2021-10-25 06:58:48 UTC
Created attachment 1836589 [details]
File: mountinfo

Comment 5 Dario Castellarin 2021-10-25 06:58:50 UTC
Created attachment 1836590 [details]
File: namespaces

Comment 6 Dario Castellarin 2021-10-25 06:58:51 UTC
Created attachment 1836591 [details]
File: open_fds

Comment 8 Fedora Update System 2021-10-25 14:44:42 UTC
FEDORA-2021-1fe2a8a7d6 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-1fe2a8a7d6

Comment 9 Fedora Update System 2021-10-25 14:44:45 UTC
FEDORA-2021-5d3fa92e1f has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-5d3fa92e1f

Comment 10 Fedora Update System 2021-10-25 14:44:47 UTC
FEDORA-2021-4d386aa200 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-4d386aa200

Comment 11 Fedora Update System 2021-10-26 15:42:25 UTC
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.

Comment 12 Fedora Update System 2021-10-27 02:07:22 UTC
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.

Comment 13 Fedora Update System 2021-10-27 02:28:07 UTC
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.

Comment 14 Fedora Update System 2021-11-03 01:11:38 UTC
FEDORA-2021-5d3fa92e1f has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 15 Fedora Update System 2021-11-04 01:23:12 UTC
FEDORA-2021-4d386aa200 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 16 Fedora Update System 2021-11-04 01:33:07 UTC
FEDORA-2021-1fe2a8a7d6 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.