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

Q_UNREACHABLE was reached at qtextengine.cpp:1551

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.15.2, 6.0.0
    • 5.15.0
    • GUI: Text handling
    • None
    • Archlinux x64
    • Linux/X11
    • 05078459de5dae65b9bb7cf2a1bc216528291648 (qt/qtbase/dev) d587f0139d8584b667705e1b0d3bb892346cf4f9 (qt/qtbase/5.15)

    Description

      I use a Qt build with the following params:

      -opensource -confirm-license -platform linux-clang -developer-build -debug -no-compile-examples -nomake examples -nomake tests -qt-pcre -qt-zlib -qt-freetype -qt-harfbuzz -qt-libpng -qt-libjpeg -qt-sqlite -qt-tiff -sanitize address -sanitize fuzzer-no-link -prefix /home/qq/qt5/build/distrib
      

      This code:

      #include <QtCore>
      #include <QtSvg>
      
      int main(int argc, char **argv) {
          QGuiApplication qga(argc, argv);
      
          QByteArray svg("<svg xmlns=\"http://www.w3.org/2000/svg\">\n\n"\
                         "<text>&#x202B;x</text>\n\n"\
                         "</svg>");
          QSvgRenderer renderer(svg);
          QPixmap dev(100, 100);
          QPainter p(&dev);
          renderer.render(&p);
          return 0;
      }
      

      produces a crash:

      ASSERT failure in Q_UNREACHABLE(): "Q_UNREACHABLE was reached", file /home/qq/qt5/qtbase/src/gui/text/qtextengine.cpp, line 1551
      

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            bitok BiTOk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes