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

Qt 6.6 Crash if there is a <tbreak/> inside an svg

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Not Evaluated Not Evaluated
    • 6.6.1
    • 6.6.0
    • SVG Support
    • None
    • Windows

      Rendering that simple svg is not possible in Qt6.6

      <svg version="1.2" viewBox="0 0 220 120">
          <textArea x="10" y="10" width="200" height="100" >What<tbreak/> a long  text</textArea>
      </svg> 

      The crash seems to be caused by the <tbreak/> in the line. If I remove it, it renders just fine but I can no longer force a line break.
      This was working fine with Qt 5.15.2, on Windows and macOS

      Please find attached a minimal example (CMakeLists.txt and main.cpp) as well as a screenshot of the call stack (Windows 10 x64, MSVC 2022, Qt 6.6.0) and another one of the result with Qt 5.15.2 with the same code.

      Thanks

        1. callstack.png
          callstack.png
          200 kB
        2. CMakeLists.txt
          0.7 kB
        3. main.cpp
          0.5 kB
        4. qt5-15-2-expected-result.png
          qt5-15-2-expected-result.png
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            qt.team.graphics.and.multimedia Qt Graphics Team
            simonesneault Simon Esneault
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes