[cairo-bugs] [Bug 28870] New: slow rendering with gradient pattern

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jul 1 06:45:42 PDT 2010


https://bugs.freedesktop.org/show_bug.cgi?id=28870

           Summary: slow rendering with gradient pattern
           Product: cairo
           Version: 1.8.10
          Platform: x86-64 (AMD64)
        OS/Version: Linux (All)
            Status: NEW
          Severity: normal
          Priority: medium
         Component: pdf backend
        AssignedTo: ajohnson at redneon.com
        ReportedBy: kiwitargetgranule at gmail.com
         QAContact: cairo-bugs at cairographics.org


Created an attachment (id=36658)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=36658)
testcase

With specific gradient pattern parameter and current transformation matrix, the
render is slow. Valgrind say
{{{
==3618== Memcheck, a memory error detector
==3618== Copyright (C) 2002-2009, and GNU GPL'd, by Julian Seward et al.
==3618== Using Valgrind-3.6.0.SVN-Debian and LibVEX; rerun with -h for
copyright info
==3618== Command: ./test
==3618== 
==3618== Syscall param write(buf) points to uninitialised byte(s)
==3618==    at 0x51904C0: __write_nocancel (syscall-template.S:82)
==3618==    by 0x512B132: _IO_file_write@@GLIBC_2.2.5 (fileops.c:1276)
==3618==    by 0x512C784: _IO_do_write@@GLIBC_2.2.5 (fileops.c:530)
==3618==    by 0x512AD9D: _IO_file_xsputn@@GLIBC_2.2.5 (fileops.c:1358)
==3618==    by 0x5120FBC: fwrite (iofwrite.c:45)
==3618==    by 0x4E4DC19: stdio_write (cairo-output-stream.c:558)
==3618==    by 0x4E4D645: _cairo_output_stream_write
(cairo-output-stream.c:266)
==3618==    by 0x4E4DFF0: _cairo_output_stream_vprintf
(cairo-output-stream.c:515)
==3618==    by 0x4E4E5E7: _cairo_output_stream_printf
(cairo-output-stream.c:526)
==3618==    by 0x4E8CEDA: _cairo_pdf_surface_close_stream
(cairo-pdf-surface.c:1104)
==3618==    by 0x4E91930: _cairo_pdf_surface_emit_surface_pattern
(cairo-pdf-surface.c:1604)
==3618==    by 0x4E9309D: _cairo_pdf_surface_show_page
(cairo-pdf-surface.c:2982)
==3618==  Address 0x4022405 is not stack'd, malloc'd or (recently) free'd
==3618== 
==3618== 
==3618== HEAP SUMMARY:
==3618==     in use at exit: 8,912 bytes in 9 blocks
==3618==   total heap usage: 14,188 allocs, 14,179 frees, 460,178,220 bytes
allocated
==3618== 
==3618== LEAK SUMMARY:
==3618==    definitely lost: 0 bytes in 0 blocks
==3618==    indirectly lost: 0 bytes in 0 blocks
==3618==      possibly lost: 0 bytes in 0 blocks
==3618==    still reachable: 8,912 bytes in 9 blocks
==3618==         suppressed: 0 bytes in 0 blocks
==3618== Rerun with --leak-check=full to see details of leaked memory
==3618== 
==3618== For counts of detected and suppressed errors, rerun with: -v
==3618== Use --track-origins=yes to see where uninitialised values come from
==3618== ERROR SUMMARY: 213 errors from 1 contexts (suppressed: 56148 from 25)
}}}

-- 
Configure bugmail: https://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