Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.4.2
-
None
-
macOS 12.6.3(21G419) (x86_64)
-
-
9526a7693 (dev), 43e33e833 (6.5), 9fce1ff20 (tqtc/lts-6.2), 7eb7da8e5 (6.6)
Description
Our crash reporter has shown multiple crashes in qcoretextfontdatabase.mm, which happens on QApplication init.
The troublemaker is in line 905:
QCoreTextFontDatabase::populateThemeFonts() { ... auto addFontVariants = [&](CTFontDescriptorRef descriptor) { QCFType<CFArrayRef> matchingDescriptors = CTFontDescriptorCreateMatchingFontDescriptors(descriptor, nullptr); const int matchingDescriptorsCount = CFArrayGetCount(matchingDescriptors); <--- matchingDescriptors can be nil ... }