Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103931

svg file containing incorrect <svg:path /> cubic spline command in data attribute freezes QImage

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • Not Evaluated
    • None
    • 5.9.5
    • SVG Support
    • None
    • Ubuntu 18.04 LTS
    • Linux/X11

    Description

      1. Have a build of Qt including qtsvg and the qtsvg examples.
      2. Download attached file issue.svg
      3. Assuming that $PATH contains the path to svgviewer example install directory, run the command :
      svgviewer ./issue.svg
      

      From my investigations, the issue is related to the "d" attribute of the <svg:path id="167846128" /> node. 

      The issue is the consequence of the last Bezier Cubic Spline command which has 3 identical coordinates : "C701.901,308.789,701.901,308.789"

      I think that it is not correct to have a Bezier Cubic Spline defined with 3 identicals inflection coordinates, but should it have to freeze applications ? I think not.

      Attachments

        1. view.qml
          0.1 kB
        2. issue.svg
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.graphics.and.multimedia Qt Graphics Team
            nsouedet Nicolas Souedet
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes