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

Segmentation fault when drawing text on QImage in QCoreApplication

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 5.0.2, 5.1.0 Beta 1
    • GUI: Font handling
    • None

    Description

      We want to manipulate QImage by drawing on it with QPainter in non-gui QCoreApplication. Calling the function QPainter::drawText() causes a segmentation fault in initializeDb() (qfontdatabase_qpa.cpp). See attached screenshot. Also an example to reproduce the crash is attached.

      Attachments

        1. Capture.PNG
          Capture.PNG
          23 kB
        2. ConsoleApp.zip
          6 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes