Details
-
Bug
-
Resolution: Invalid
-
P3: Somewhat important
-
None
-
5.4.2
-
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
Issue Links
- is duplicated by
-
QTBUG-59817 Application crush in ~QApplication() on QFontCache clearing, when used QStringLitheral for font family name in dynamic library
- Closed
- is replaced by
-
QTBUG-51602 Don't generate code using QStringLiteral as this can create a problem if the code is used in a DLL
- Closed