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

Crash on application exit due to events leading to doing mime/text/markdown/font stuff during shutdown in ~QXcbConnection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.4.2, 6.4
    • QPA: X11/XCB
    • None
    • Linux/X11

    Description

      When closing an application created with Qt 6.4.2 we sporadically encounter segmentation faults:

      Assert: QFontDatabase: Must construct a QGuiApplication before accessing QFontDatabase
      Please report this problem to our support.
      Program: a3c, Release: 22.10i, Build: 12084912, Tag: auto/2022/12/06/1324
      Backtrace (please include this in your support request):
      0# Ur::MessageHandler::print(Ur::Message&) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/a3c
      1# 0x0000558074BDB9FE in /makefactory/products/master/release/linux64/a3_c_12084912/bin/a3c
      2# 0x0000558074BABA34 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/a3c
      3# 0x000014D9B0A86EDE in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      4# 0x000014D9B0A82FCC in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      5# QMessageLogger::fatal(char const*, ...) const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      6# QFontDatabasePrivate::ensureFontDatabase() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      7# QFontDatabasePrivate::findFont(QFontDef const&, int, bool) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      8# QFontDatabasePrivate::load(QFontPrivate const*, int) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      9# QFontPrivate::engineForScript(int) const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      10# QFontInfo::fixedPitch() const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      11# QTextMarkdownWriter::writeBlock(QTextBlock const&, bool, bool, bool) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      12# QTextMarkdownWriter::writeFrame(QTextFrame const*) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      13# QTextMarkdownWriter::writeAll(QTextDocument const*) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      14# QTextDocument::toMarkdown(QFlags<QTextDocument::MarkdownFeature>) const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      15# QTextDocumentFragment::toMarkdown(QFlags<QTextDocument::MarkdownFeature>) const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      16# 0x000014D9B1F7A554 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Widgets.so.6
      17# 0x000014D9B1F7A42C in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Widgets.so.6
      18# 0x000014D9B0B1DF44 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      19# QMimeData::data(QString const&) const in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      20# QInternalMimeData::renderDataHelper(QString const&, QMimeData const*) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      21# 0x000014D9ADA528D4 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      22# 0x000014D9ADA26AA0 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      23# 0x000014D9ADA2721A in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      24# QXcbConnection::handleXcbEvent(xcb_generic_event_t*) in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      25# 0x000014D9ADA26127 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      26# 0x000014D9ADA25EBB in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      27# 0x000014D9ADA2619E in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      28# QXcbConnection::~QXcbConnection() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      29# QXcbConnection::~QXcbConnection() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      30# QXcbIntegration::~QXcbIntegration() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      31# QXcbIntegration::~QXcbIntegration() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/plugins/platforms/../../libQt6XcbQpa.so.6
      32# QGuiApplicationPrivate::~QGuiApplicationPrivate() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      33# QApplicationPrivate::~QApplicationPrivate() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Widgets.so.6
      34# QObject::~QObject() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Core.so.6
      35# QGuiApplication::~QGuiApplication() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Gui.so.6
      36# QApplication::~QApplication() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Widgets.so.6
      37# QApplication::~QApplication() in /makefactory/products/master/release/linux64/a3_c_12084912/bin/libQt6Widgets.so.6
      38# main in /makefactory/products/master/release/linux64/a3_c_12084912/bin/a3c
      39# 0x000014D9AE78D290 in /usr/lib/libc.so.6
      40# __libc_start_main in /usr/lib/libc.so.6
      41# 0x0000558074426EE9 in /makefactory/products/master/release/linux64/a3_c_12084912/bin/a3c
      

       

      Attachments

        1. backtrace.txt
          6 kB
          Marc Langenbach

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              srutledg Shawn Rutledge
              mlangen Marc Langenbach
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes