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

QFontCache crash when DLL is unloaded

XMLWordPrintable

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

      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.

        1. mainDll.cpp
          0.4 kB
          ZTHawk
        2. QFontCache_Crash_On_App_Exit_Stack.txt
          3 kB
          Tom Ransdell
        3. QFontCache_Crash_On_Exit_Stack_Mac.txt
          7 kB
          Tom Ransdell
        4. qfontcache_crash.cpp
          2 kB
          ZTHawk
        5. qfontcache_crash.h
          0.3 kB
          ZTHawk
        6. QTBUG-46880.zip
          5 kB
          Qt Support
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes