Bug 1599462

Summary: [abrt] pitivi: __emitProgress(): proxy.py:359:__emitProgress:ZeroDivisionError: float division by zero
Product: [Fedora] Fedora Reporter: Kaj Forney <kaj.forney>
Component: pitiviAssignee: Gwyn Ciesla <gwync>
Status: CLOSED CANTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 28CC: elad, gwync, igor.raits, otte, wtaymans
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/786da31d9d411788aa7f71c71b5a4e88000e468f
Whiteboard: abrt_hash:70b54c4061edb8bf75436c6d7c9400440160235d;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-08-02 15:33:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: backtrace
none
File: cgroup
none
File: cpuinfo
none
File: environ
none
File: mountinfo
none
File: namespaces
none
File: open_fds none

Description Kaj Forney 2018-07-09 23:02:25 UTC
Description of problem:
1. Import one .ogg and three .m4v files into a brand-new project.
2. Pitivi "crashes" according to ABRT, but continues running.

Version-Release number of selected component:
pitivi-0.99-3.fc28

Additional info:
reporter:       libreport-2.9.5
cmdline:        /usr/bin/python3 /usr/bin/pitivi
crash_function: __emitProgress
exception_type: ZeroDivisionError
executable:     /usr/bin/pitivi
interpreter:    python3-3.6.5-1.fc28.x86_64
kernel:         4.17.3-200.fc28.x86_64
runlevel:       N 5
type:           Python3
uid:            1000

Truncated backtrace:
proxy.py:359:__emitProgress:ZeroDivisionError: float division by zero

Traceback (most recent call last):
  File "/usr/lib64/python3.6/site-packages/pitivi/utils/proxy.py", line 381, in __proxyingPositionChangedCb
    self.__emitProgress(asset, asset.creation_progress)
  File "/usr/lib64/python3.6/site-packages/pitivi/utils/proxy.py", line 359, in __emitProgress
    estimated_time = remaining_seconds * time_spent / transcoded_seconds
ZeroDivisionError: float division by zero

Local variables in innermost frame:
remaining_seconds: 421.704
transcoded_seconds: 0.0
time_spent: 9.765987157821655
creation_progress: 0
asset: <GES.UriClipAsset object at 0x7f804d103d80 (GESUriClipAsset at 0x55ed82622d10)>
self: <proxy.ProxyManager object at 0x7f8051f77a68 (pitivi+utils+proxy+ProxyManager at 0x55ed831e1a60)>

Comment 1 Kaj Forney 2018-07-09 23:02:31 UTC
Created attachment 1457613 [details]
File: backtrace

Comment 2 Kaj Forney 2018-07-09 23:02:32 UTC
Created attachment 1457614 [details]
File: cgroup

Comment 3 Kaj Forney 2018-07-09 23:02:33 UTC
Created attachment 1457615 [details]
File: cpuinfo

Comment 4 Kaj Forney 2018-07-09 23:02:33 UTC
Created attachment 1457616 [details]
File: environ

Comment 5 Kaj Forney 2018-07-09 23:02:34 UTC
Created attachment 1457617 [details]
File: mountinfo

Comment 6 Kaj Forney 2018-07-09 23:02:35 UTC
Created attachment 1457618 [details]
File: namespaces

Comment 7 Kaj Forney 2018-07-09 23:02:36 UTC
Created attachment 1457619 [details]
File: open_fds

Comment 8 Igor Raits 2018-08-02 15:33:48 UTC
Please test with latest updates and reopen if still reproducible.