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

Crash in OS X when harfbuzz shaping specific text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P1: Critical
    • None
    • 5.5.1
    • GUI: Text handling
    • None
    • OS X 10.11
    • macOS

    Description

      Some specific texts (at least one is provided: QChar(0x261C) + QChar(0x0B43)) causes harfbuzz text shaping crash in OS X in Qt 5.5.1.

      #include <QtGui/QGuiApplication>
      #include <QtGui/QFontMetrics>
      
      int main(int argc, char *argv[]) {
      	QGuiApplication a(argc, argv);
      
      	qWarning() << QFontMetrics(a.font()).width(QString() + QChar(0x261C) + QChar(0x0B43));
      
      	return a.exec();
      }
      

      Example project and crash screenshot are attached.

      Attachments

        1. osxcrash.png
          548 kB
          John Preston
        2. TestApp2.zip
          35 kB
          John Preston
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            johnpreston John Preston
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes