Bug 1368747 - [abrt] hamster-time-tracker: overview.py:226:_draw:ZeroDivisionError: float division by zero
Summary: [abrt] hamster-time-tracker: overview.py:226:_draw:ZeroDivisionError: float d...
Keywords:
Status: CLOSED DUPLICATE of bug 1321344
Alias: None
Product: Fedora
Classification: Fedora
Component: hamster-time-tracker
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ankur Sinha (FranciscoD)
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:229d2eefbba4df6326535680eb1...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-08-20 23:50 UTC by Kamil Páral
Modified: 2016-08-20 23:59 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-08-20 23:59:48 UTC
Type: ---


Attachments (Terms of Use)
File: backtrace (1.06 KB, text/plain)
2016-08-20 23:50 UTC, Kamil Páral
no flags Details
File: environ (1.61 KB, text/plain)
2016-08-20 23:50 UTC, Kamil Páral
no flags Details

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 ***


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