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

QFontCache crash when DLL is unloaded

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P3: Somewhat important
    • None
    • 5.4.2
    • GUI: Font handling
    • None
    • Win7 x64, VS 2010

    Description

      When main app loads a DLL that uses a new font (a font that the main app does not use) and that DLL is unloaded then main app will crash when it is being closed.

      See attached files for an example (compile mainDll.cpp as a DLL and qfontcache_crash.h/cpp as an EXE):

      • start EXE
      • press load button
        >> a new widget with the text "test" will be added
      • press unload
        >> the new widget is removed and everything is cleaned up
      • close the app
      • a crash will occur

      Location of crash:
      qfont.cpp (line 2748) at command "engineDataCache.clear();"

      Qt 4.8 does not have this issue.

      Attachments

        1. QTBUG-46880.zip
          5 kB
        2. qfontcache_crash.h
          0.3 kB
        3. qfontcache_crash.cpp
          2 kB
        4. QFontCache_Crash_On_Exit_Stack_Mac.txt
          7 kB
        5. QFontCache_Crash_On_App_Exit_Stack.txt
          3 kB
        6. mainDll.cpp
          0.4 kB

        Issue Links

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

          Activity

            People

              esabraha Eskil Abrahamsen Blomfeldt
              zthawk ZTHawk
              Votes:
              5 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes