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

QImagereader hangs forever on SVG image

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.8.x
    • 4.7.1
    • SVG Support
    • None
    • Linux
    • 17a0782f2c0886ff19fc2c1a0bfbc96861ff2996 (Qt 4.8), 11eeee22affeca89eea90b8555fa8016fd74b789 (Qt 5.0)

    Description

      Load the attached svg image with QImageReader -> deadlock. Backtrace where it hangs:

      #0 QSvgStructureNode::previousSiblingNode (this=<value optimized out>, n=0x65180)
      at /home/harald/qt-maemo-qtp/src/svg/qsvgstructure.cpp:374
      #1 0x3c1ce464 in QSvgStyleSelector::previousSiblingNode (this=<value optimized out>, node=...)
      at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:538
      #2 0x3af1f03c in QCss::StyleSelector::selectorMatches (this=0x293f8, selector=...,
      node=<value optimized out>) at /home/harald/qt-maemo-qtp/src/gui/text/qcssparser.cpp:1849
      #3 0x3af1f1d4 in QCss::StyleSelector::matchRule (this=<value optimized out>, node=..., rule=...,
      origin=<value optimized out>, depth=0, weightedRules=0xaead65ac)
      at /home/harald/qt-maemo-qtp/src/gui/text/qcssparser.cpp:1909
      #4 0x3af1f73c in QCss::StyleSelector::styleRulesForNode (this=0x293f8, node=...)
      at /home/harald/qt-maemo-qtp/src/gui/text/qcssparser.cpp:1938
      #5 0x3af1fd60 in QCss::StyleSelector::declarationsForNode (this=0x65180, node=...,
      extraPseudo=0x0) at /home/harald/qt-maemo-qtp/src/gui/text/qcssparser.cpp:1990
      #6 0x3c1c79f8 in cssStyleLookup (node=<value optimized out>, handler=<value optimized out>,
      selector=<value optimized out>) at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:2001
      #7 0x3c1ca5c8 in QSvgHandler::startElement (this=0xaead68e8, localName=<value optimized out>,
      attributes=...) at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:3672
      #8 0x3c1cbfcc in QSvgHandler::parse (this=0xaead68e8)
      at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:3559
      #9 0x3c1cc1d8 in QSvgHandler::init (this=0xaead68e8)
      at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:3539
      #10 0x3c1cc2ec in QSvgHandler::QSvgHandler (this=0xaead68e8, reader=<value optimized out>)
      at /home/harald/qt-maemo-qtp/src/svg/qsvghandler.cpp:3528
      #11 0x3c1deb34 in QSvgTinyDocument::load (contents=0x65180)
      at /home/harald/qt-maemo-qtp/src/svg/qsvgtinydocument.cpp:220
      #12 0x3c1e1000 in loadDocument<QXmlStreamReader*> (this=0x1a2b4c, contents=0x1a2b54)
      at /home/harald/qt-maemo-qtp/src/svg/qsvgrenderer.cpp:317
      #13 QSvgRenderer::load (this=0x1a2b4c, contents=0x1a2b54)
      at /home/harald/qt-maemo-qtp/src/svg/qsvgrenderer.cpp:368
      #14 0x3c162ffc in QSvgIOHandlerPrivate::load (this=0x1a2b48, device=0x19cdb8)
      at /home/harald/qt-maemo-qtp/src/plugins/imageformats/svg/qsvgiohandler.cpp:97
      #15 0x3c1631a4 in QSvgIOHandler::read (this=0xb91e8, image=0xaead6b3c)
      at /home/harald/qt-maemo-qtp/src/plugins/imageformats/svg/qsvgiohandler.cpp:149
      #16 0x3acec164 in QImageReader::read (this=0xaead6b64, image=0xaead6b3c)
      at /home/harald/qt-maemo-qtp/src/gui/image/qimagereader.cpp:1205
      #17 0x00008d9c in main (argc=1, argv=<value optimized out>) at main.cpp:20

      Attachments

        1. styling-css-03-b.svg
          7 kB
          Harald Fernengel
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kkalland Kim Motoyoshi Kalland (Inactive)
            fernenge Harald Fernengel
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes