Details
-
Bug
-
Resolution: Duplicate
-
P1: Critical
-
None
-
5.4.2, 5.5.0
-
None
-
OSX 10.10.5, Qt 5.4.2 32-bit compiled with clang from XCode 7.1.1 against libc++
qt-opensource-mac-x64-clang-5.4.2
Description
On OSX 10.10 (Yosemite) pasting the following characters into a QML TextField with the font set to Arial will cause a segmentation fault:
힓あ
(note these characters need to be in NFD to reproduce the issue, this can be achieved by pasting them into a filename on OSX which will convert them to NFD, alternatively use the following UTF-8 string \xE1\x84\x92\xE1\x85\xB5\xE1\x86\xB2\xE3\x81\x82)
The crash seems to be caused by
QFontEngine *actualFontEngine = static_cast<QFontEngineMulti *>(fontEngine)->engine(engineIdx);
returning a null pointer.
Adding
static_cast<QFontEngineMulti *>(fontEngine)->ensureEngineAt(engineIdx);
before this call seems to fix the issue.
Attachments
Issue Links
- duplicates
-
QTBUG-44708 Mixing ligatures with differently formatted text of different writing systems doesn't work
- Closed
- relates to
-
QTBUG-117500 Sporadic crash on QFontEngineMulti::ensureEngineAt()
- Closed