https://bugs.kde.org/show_bug.cgi?id=518105
--- Comment #7 from David Edmundson <[email protected]> --- Minimal reproducer: #include <QGuiApplication> #include <QPixmap> #include <QPainter> #include <QFont> #include <QDebug> int main(int argc, char* argv[]) { QGuiApplication app(argc, argv); qDebug() << "start"; QPixmap pixmap(400, 200); pixmap.fill(Qt::white); QPainter painter(&pixmap); auto font = QFont("Noto Sans", 11); font.setWeight(QFont::Medium); painter.setFont(font); painter.setPen(Qt::black); const QString text = QString::fromUtf8(u8"\uFDFD"); // ﷽ painter.drawText(pixmap.rect(), Qt::AlignCenter, text); painter.end(); qDebug() << "done"; return 0; } For me this only happens *AFTER DELETING* "/usr/share/fonts/noto/NotoNastaliqUrdu-Regular.ttf", O_RDONLY) so that it loads Noto Arabic. ---- FT_Render_Glyph fails and returns an error code. Qt then prints a warning but continues. width/height of the "slot" (source) are valid. buffer is null. We can fix the crash by just returning on error. We need to also find out why Freetype is sometimes failing. This means making a minimal reproducer *without Qt* and reporting to them. -- You are receiving this mail because: You are watching all bug changes.
