Bug 1368747

Summary: [abrt] hamster-time-tracker: overview.py:226:_draw:ZeroDivisionError: float division by zero
Product: [Fedora] Fedora Reporter: Kamil Páral <kparal>
Component: hamster-time-trackerAssignee: Ankur Sinha (FranciscoD) <sanjay.ankur>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 24CC: fschwarz, sanjay.ankur
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/481b39cf3df4485629975ece4e2bbb2ec2b2b021
Whiteboard: abrt_hash:229d2eefbba4df6326535680eb19ab160a5b662b;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-08-20 23:59: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:
Attachments:
Description Flags
File: backtrace
none
File: environ none

Description Kamil Páral 2016-08-20 23:50:08 UTC
Description of problem:
I see this every time I start hamster, while having some activity tracked. I also see heavy graphical corruption in the application (black top bar).

Version-Release number of selected component:
hamster-time-tracker-2.0-0.7.rc1.fc24

Additional info:
reporter:       libreport-2.7.2
cmdline:        python2 /usr/bin/hamster-windows-service
executable:     /usr/bin/hamster-windows-service
kernel:         4.6.7-300.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
runlevel:       N 5
type:           Python
uid:            1000

Truncated backtrace:
overview.py:226:_draw:ZeroDivisionError: float division by zero

Traceback (most recent call last):
  File "/usr/lib/python2.7/site-packages/hamster/lib/graphics.py", line 1975, in do_draw
    sprite._draw(context)
  File "/usr/lib/python2.7/site-packages/hamster/lib/graphics.py", line 1282, in _draw
    sprite._draw(context, self.opacity * opacity, matrix * parent_matrix)
  File "/usr/lib/python2.7/site-packages/hamster/lib/graphics.py", line 1282, in _draw
    sprite._draw(context, self.opacity * opacity, matrix * parent_matrix)
  File "/usr/lib/python2.7/site-packages/hamster/overview.py", line 226, in _draw
    w = (self.alloc_w - 110) * value.total_seconds() / self._max.total_seconds()
ZeroDivisionError: float division by zero

Local variables in innermost frame:
opacity: 1
matrix: cairo.Matrix(1, 0, 0, 1, 10, 110)
g: <hamster.lib.graphics.Graphics object at 0x7f3bc40b6758>
i: 0
self: <HorizontalBarChart 139894668848816>
label_h: 20
value: datetime.timedelta(0)
label: u'CVNS 2016 - rozbor 2015'
label_w: 166
context: <cairo.Context object at 0x7f3be1c4fb90>
y: 0

Potential duplicate: bug 1321344

Comment 1 Kamil Páral 2016-08-20 23:50:13 UTC
Created attachment 1192517 [details]
File: backtrace

Comment 2 Kamil Páral 2016-08-20 23:50:14 UTC
Created attachment 1192518 [details]
File: environ

Comment 3 Kamil Páral 2016-08-20 23:59:48 UTC

*** This bug has been marked as a duplicate of bug 1321344 ***