[cairo-bugs] [Bug 14280] New: Infinite loop when scaling very small values using 24.8

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jan 28 10:25:01 PST 2008


http://bugs.freedesktop.org/show_bug.cgi?id=14280

           Summary: Infinite loop when scaling very small values using 24.8
           Product: cairo
           Version: 1.5.7
          Platform: Other
               URL: https://bugzilla.novell.com/show_bug.cgi?id=340809
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: general
        AssignedTo: cworth at cworth.org
        ReportedBy: sebastien at ximian.com
         QAContact: cairo-bugs at cairographics.org


Created an attachment (id=13991)
 --> (http://bugs.freedesktop.org/attachment.cgi?id=13991)
Test case

When using cairo defining CAIRO_FIXED_FRAC_BITS as 8 in cairo-fixed-private.h I
am hitting an infinite loop with the next test case[1] (that works fine using
16bits):

  cairo_t *cr;
  cr = gdk_cairo_create (widget->window);
  cairo_save (cr);
  cairo_scale (cr, 1, 0.0001);
  cairo_translate (cr, 1, 0.0001);
  cairo_move_to (cr, 44.12, 106);
  cairo_curve_to (cr, 43.946765, 93.855989, 38.653008,89.286968,26,90);
  cairo_stroke (cr);
  cairo_restore (cr);
  cairo_destroy (cr);

it loops inside _cairo_pen_stroke_spline_half because the step never increases.


-- 
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the cairo-bugs mailing list