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

QTextDocument: Very big font size with multiline markdown makes app stuck in infinite loop when calling size()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.0, 5.15.2
    • GUI: Text handling
    • None

    Description

      Setting very big font size, adding multiline markdown text and calling QTextDocument's size() method makes app stuck in infinite while loop inside QTextDocumentLayoutPrivate::layoutBlock().

      Way to reproduce:

      • Create QFont with very big pointSize (i.e. 20'000'000).
      • Create QTextDocument and set this font as default font.
      • Set document content with setMarkdown with multiline text (i.e. "TEST \n\n\n STRING").
      • Call document's size() method.
      • App freezes.

       

      Please let me know if you need more information

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            mfoxru Mikhail Kravchik
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes