Division by zero?

classic Classic list List threaded Threaded
3 messages Options
NdK
Reply | Threaded
Open this post in threaded view
|

Division by zero?

NdK
Hello all.

Just upgraded my Ubuntu to 14.04 and now I have:
 GRAMPS: 4.0.3-1
 Python: 2.7.6 (default, Mar 22 2014, 22:59:56) [...
 BSDDB: 5.3.0 (5, 3, 28)
 LANG: it_IT.UTF-8
 OS: Linux
 Distribution: 3.13.0-35-generic

Every time I select a fan chart, i get an error like this:
15280525: ERROR: grampsapp.py: line 114: Unhandled exception
Traceback (most recent call last):
  File
"/usr/lib/python2.7/dist-packages/gramps/gui/widgets/fanchart.py", line
1296, in on_draw
    self.fontcolor(r, g, b, a), self.fontbold(a))
  File
"/usr/lib/python2.7/dist-packages/gramps/gui/widgets/fanchart.py", line
634, in draw_text
    self.draw_arc_text(cr, text, radius, start, stop, font)
  File
"/usr/lib/python2.7/dist-packages/gramps/gui/widgets/fanchart.py", line
673, in draw_arc_text
    arc_used_ratio, rad_mid - rad_spread/2, rad_mid + rad_spread/2))
  File "/usr/lib/python2.7/dist-packages/gramps/gui/utilscairo.py", line
72, in warpPath
    x, y = function(*points)
  File
"/usr/lib/python2.7/dist-packages/gramps/gui/widgets/fanchart.py", line
716, in <lambda>
    (rho(y) * math.cos(phi(x)), rho(y) * math.sin(phi(x)))
  File
"/usr/lib/python2.7/dist-packages/gramps/gui/widgets/fanchart.py", line
708, in rho
    return (y - y0) * (radiusin - radiusout)/h + radiusout
ZeroDivisionError: float division by zero

After that, I can only force-close Gramps.

That's quite annoying... Luckily I don't use much the fan charts...

Another annoying thing is that often text overflows from containing
widgets (noticed it in a quite thin right gramplet bar, where "Gramplet
Bar" is wider than its tab, and in a Graph View, where some names break
out of their boxes and images are no more centered).

Is there something I can do to help fix it?

BYtE,
 Diego.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: Division by zero?

Paul Franklin-5
> Is there something I can do to help fix it?

You can upgrade to either 4.0.4 or 4.1.0, both of whom
have that bug fixed.

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users
Reply | Threaded
Open this post in threaded view
|

Re: Division by zero?

Ross Gammon
On 09/05/2014 09:42 PM, Paul Franklin wrote:
>> Is there something I can do to help fix it?
>
> You can upgrade to either 4.0.4 or 4.1.0, both of whom
> have that bug fixed.
>

4.0.4 is in ubuntu backports for Trusty:
https://help.ubuntu.com/community/UbuntuBackports

------------------------------------------------------------------------------
Slashdot TV.  
Video for Nerds.  Stuff that matters.
http://tv.slashdot.org/
_______________________________________________
Gramps-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gramps-users