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

QPainter renderer crashes when trying to render a valid SVG file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P1: Critical P1: Critical
    • None
    • 6.9.1
    • SVG Support
    • None
    • Visual Studio 2022
    • Windows

      Hey, I have been getting this breakpoint when trying to render an SVG file into my C++ 20 app as an icon for a button, I'm a bit of a beginner when dealing with Qt and its components so sorry if I made a mistake.

      I will attach the SVG file (It's a simple X close button), the CPP file and its Header that's responsible for the SVG rendering, the Call Stack of where the breakpoint happens, the resources.qrc file, and some screenshots of the project and its paths.

       

      The Breakpoint happens at line 61 in the CPP file

      The Call Stack:

           ntdll.dll!00007ffa53589d88()    Unknown
           ntdll.dll!00007ffa535231f2()    Unknown
           ntdll.dll!00007ffa5361fa1a()    Unknown
           ntdll.dll!00007ffa5351de8b()    Unknown
           ntdll.dll!00007ffa53526b96()    Unknown
           ucrtbase.dll!00007ffa50b5e0fb()    Unknown
           Qt6Gui.dll!00007ff937acf34a()    Unknown
           Qt6Gui.dll!00007ff937ab6c9f()    Unknown
           Qt6Guid.dll!00007ff935dc37bf()    Unknown
           Qt6Guid.dll!00007ff935dc2913()    Unknown
           Qt6Guid.dll!00007ff935d9e95e()    Unknown
           Qt6Svgd.dll!00007ff95c59aed3()    Unknown
           Qt6Svgd.dll!00007ff95c56b5a8()    Unknown
      >    Chronicle.exe!SvgColorUtils::renderSvg(const QByteArray & svgData, int width, int height,               double devicePixelRatio) Line 61    C++
             Chronicle.exe!SvgColorUtils::getIcon(const QString & fullPath, const QColor & __formal,                 int width, int height, double devicePixelRatio) Line 91    C++
           Chronicle.exe!IconUtils::coloredSvg(const QString & name, const QColor & color, const                 QSize & size) Line 19    C++
           Chronicle.exe!TitleBar::setupUi() Line 40    C++
           Chronicle.exe!TitleBar::TitleBar(QWidget * parent) Line 12    C++
           Chronicle.exe!MainWindow::setupUi() Line 61    C++
           Chronicle.exe!MainWindow::MainWindow(QWidget * parent) Line 29    C++
           Chronicle.exe!main(int argc, char * * argv) Line 12    C++
           [External Code]
      

       
       

        1. {19110240-87BE-4852-A8AA-47C16D3CC26E}.png
          8 kB
          Crazy Blop
        2. {BFAE42AA-99CF-42E6-89F0-0EF0A402E9C8}.png
          63 kB
          Crazy Blop
        3. close_icon.svg
          0.2 kB
          Crazy Blop
        4. iconutils.cpp
          2 kB
          Crazy Blop
        5. iconutils.h
          0.8 kB
          Crazy Blop
        6. main.cpp
          0.3 kB
          Crazy Blop
        7. mainwindow.cpp
          0.5 kB
          Crazy Blop
        8. mainwindow.h
          0.4 kB
          Crazy Blop
        9. resource.qrc
          0.1 kB
          Crazy Blop
        10. svgcolorutils.cpp
          4 kB
          Crazy Blop
        11. svgcolorutils.h
          1 kB
          Crazy Blop
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            hatemelkharashy Hatem ElKharashy
            crazyblop Crazy Blop
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes