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

Application crush in ~QApplication() on QFontCache clearing, when used QStringLitheral for font family name in dynamic library

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P1: Critical
    • None
    • 5.7.1, 5.8.0
    • None
    • Visual Studio 2015, Windows 7 SP1

    Description

      Application crush in ~QApplication() on QFontCache clearing, when used QStringLitheral for font family name in dynamic library.
      Steps :
      1. Create widget with changed font family in dll( "Changed font" button in this example )
      2. Destroy widget
      3. Unload dll
      4. Destroy QApplication
      Button "Default font" calls create widget with default font family. No crash.

      I often load / unload plugins for my application in work mode and I need unload all plugins before destroying of QApplication.
      If widget created via QtDesigner uic.exe wrap font family name by QStringLiteral, then application will crush.
      If I manually install font family without QStringLiteral, the application will finish correctly.

      Attachments

        1. QFontCacheBug.zip
          37 kB
          Kozlov Ilya

        Issue Links

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

          Activity

            People

              laknoll Lars Knoll
              sargtlin Kozlov Ilya
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes