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

Offscreen platform plugin: Qt5 prebuilt Linux 64-bit libraries segfaults with "QFontDatabase: Cannot find font directory"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.1.0 , 5.1.1
    • We've tested with Qt 5.1.0 as well as Qt 5.1.1. We've also reproduced it on both CentOs and Ubuntu. It does not happen on Windows.
    • 17333720e05bbe5d84d246c0850c8c2c047a141e (fixes issue in minimal plugin, stable 4.12.2013 / 5.2.1)

    Description

      We are having issues with Qt5 applications built against the prebuilt 64-bit Linux libraries we downloaded from the Qt-Project's download page.

      The message we are seeing is:

      @
      QFontDatabase: Cannot find font directory /opt/Qt5.1.0//5.1.0/gcc_64/lib/fonts - is Qt installed correctly?
      Aborted (core dumped)
      @

      We've tested with numerous -platform plugins so it does not seem to be platform specific. To get around the issue we simply create that directory and the application launches fine and we don't see any font related issues etc.

      The problem now comes when we are deploying the application. When running our deployed application it crashes again if that directory does not exist. The installers can create that directory but it feels a bit silly to do that and it requires sudo rights to create it.

      Attachments

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

        Activity

          People

            megabuz Alexey Buzanov
            jpnaude Jaco Naude
            Votes:
            2 Vote for this issue
            Watchers:
            11 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes