[Webkit-unassigned] [Bug 68187] New: [Qt] very small stroke-width in embedded svg document + dashed css border causes excessive memory use

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Sep 15 13:29:27 PDT 2011


https://bugs.webkit.org/show_bug.cgi?id=68187

           Summary: [Qt] very small stroke-width in embedded svg document
                    + dashed css border causes excessive memory use
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Macintosh
        OS/Version: Mac OS X 10.6
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P3
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: michael at movableink.com


I'm rendering screenshots from web pages with qtwebkit and have found that in certain instances a stroke-width seems to cause qt to use 100% cpu and eventually 100% memory trying to compute.  A stroke-width of 0.00000001 effectively locks the rendering until my machine runs out of memory.  Oddly, this only appears to happen when a css border-type attribute of 'dashed' or 'dotted' is specified in the html.

I've attached a test-case.  I believe the offending lines to be:

html:
    <body style="border-top:1px dashed #CCC;">

svg:
    <rect rx="2" ry="2" fill="#CCFFFF" x="9" y="7" width="20" height="12" stroke-width="0.00000001" zIndex="3" stroke="#FFFFFF" r="2"></rect>
    <rect rx="2" ry="2" fill="#FFBB66" x="79" y="7" width="20" height="12" stroke-width="0.00000001" zIndex="3" stroke="#FFFFFF" r="2"></rect>

I've also attached a simple qt app that renders to a png and demonstrates the issue.

  qmake
  make
  ./test_dashed broken.html

As written, it hangs for me after render() is called.  If I change the border to solid or the stroke-width to 1, it correctly renders a test.png.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list