[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths

Robert Lipe 1970057 at bugs.launchpad.net
Wed Sep 7 22:01:35 UTC 2022


I'm the project leader of GPSBabel. This problem is preventing our
mutual users from successfully building with modern Qt on Jammy and is
thus preventing our CI from moving to Jammy. This breakage is apparently
somewhat unique to Debian/Ubuntu and isn't in Qt itself, according to
Thiago in the Qt project. (Citation provided:
https://bugreports.qt.io/browse/QTBUG-82589?focusedCommentId=500548&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-
tabpanel#comment-500548)

A fix is apparently upstreamed, but isn't included and referenced here.
Can you please apply

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010575

and then confirm that GPSBabel (and any other affected Qt apps) runs
correctly, per the (excellent) description given above in #11 at
https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/comments/11?

Dropping Qt5 is a high priority for GPSBabel and Jammy's Qt6 is
currently so broken that we can't use it and have to keep falling back
to Qt5, which is an increasingly creaky situation for us. Qt5's open
source support ended last year. We'd like to be on a current, working,
Qt 6.2 or 6.3.

Currently, Ubuntu is providing a broken Qt6 that we're having to work
around by falling back to Qt5. This is increasingly untenable for us.

The steps in #11 are thorough and reasonable. Please install that patch,
confirm the provided examples work, then graduate to confirming that
GPSBabel's map function works.

This is important to GPSBabel's Ubuntu users. We're forcing a painful
workaround by using an old version of Qt that isn't supported and isn't
a long-term viable plan. Please take the provided update and provide
patches to your base.

Thanx to all for listening and (hopefully) for taking action.

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1970057

Title:
  Qt6 QLibraryInfo returns wrong paths

Status in Stellarium:
  New
Status in qt6-base package in Ubuntu:
  Fix Released
Status in qt6-base source package in Jammy:
  Confirmed

Bug description:
  The qtdiag program can be used to find the paths returned by
  QLibraryInfo:

  qtdiag --no-vulkan --no-rhi --no-gl

  In this output on jammy (22.04) with qt6-base-dev (6.2.4+dfsg-2ubuntu1) I see:
  Library info:
    PrefixPath: /
    DocumentationPath: /share/qt6/doc
    HeadersPath: /include/x86_64-linux-gnu/qt6
    LibrariesPath: /lib/x86_64-linux-gnu
    LibraryExecutablesPath: /lib/qt6/libexec
    BinariesPath: /lib/qt6/bin
    PluginsPath: /lib/x86_64-linux-gnu/qt6/plugins
    QmlImportsPath: /lib/x86_64-linux-gnu/qt6/qml
    ArchDataPath: /lib/x86_64-linux-gnu/qt6
    DataPath: /share/qt6
    TranslationsPath: /share/qt6/translations
    ExamplesPath: /lib/x86_64-linux-gnu/qt6/examples
    TestsPath: /tests
    SettingsPath: /etc/xdg

  This is problematic.  For example, the DataPath /share/qt6 does not
  exist.  This can lead to various failures.  For example a Qt
  application using the Qt WebEngine might report:

  Qt WebEngine resources not found at /share/qt6/resources. Trying parent directory...
  Qt WebEngine resources not found at /share/qt6. Trying application directory...
  Qt WebEngine resources not found at /app/gpsbabel/gui/GPSBabelFE. Trying fallback directory... The application MAY NOT work.
  Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/tsteven4/.GPSBabel'
  Installed Qt WebEngine locales directory not found at location /share/qt6/translations/qtwebengine_locales. Trying application directory...
  Qt WebEngine locales directory not found at location /app/gpsbabel/gui/GPSBabelFE/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct.
  Path override failed for key ui::DIR_LOCALES and path '/home/tsteven4/.GPSBabel'
  [0423/194717.040426:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources_100p.pak
  Some features may not be available.
  [0423/194717.041440:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources_200p.pak
  Some features may not be available.
  [0423/194717.041481:ERROR:resource_bundle.cc(911)] Failed to load /home/tsteven4/.GPSBabel/qtwebengine_resources.pak
  Some features may not be available.
  [0423/194717.042243:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale 
  [3004:3004:0423/194717.389096:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest.
  Segmentation fault (core dumped)

  I note that qtdiag reports the correct paths on debian sid and
  qt6-base-dev (6.2.4+dfsg-4):

  Library info:
    PrefixPath: /usr
    DocumentationPath: /usr/share/qt6/doc
    HeadersPath: /usr/include/x86_64-linux-gnu/qt6
    LibrariesPath: /usr/lib/x86_64-linux-gnu
    LibraryExecutablesPath: /usr/lib/qt6/libexec
    BinariesPath: /usr/lib/qt6/bin
    PluginsPath: /usr/lib/x86_64-linux-gnu/qt6/plugins
    QmlImportsPath: /usr/lib/x86_64-linux-gnu/qt6/qml
    ArchDataPath: /usr/lib/x86_64-linux-gnu/qt6
    DataPath: /usr/share/qt6
    TranslationsPath: /usr/share/qt6/translations
    ExamplesPath: /usr/lib/x86_64-linux-gnu/qt6/examples
    TestsPath: /usr/tests
    SettingsPath: /etc/xdg

  It is not clear to me if this is because of the difference in package
  versions, or some issue with ubuntu packaging.

  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: libqt6core6 6.2.4+dfsg-2ubuntu1
  ProcVersionSignature: Ubuntu 5.13.0-40.45~20.04.1-generic 5.13.19
  Uname: Linux 5.13.0-40-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82
  Architecture: amd64
  CasperMD5CheckResult: unknown
  Date: Sat Apr 23 19:40:12 2022
  ProcEnviron:
   TERM=xterm
   PATH=(custom, no user)
   LANG=en_US.UTF-8
  SourcePackage: qt6-base
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/stellarium/+bug/1970057/+subscriptions




More information about the Ubuntu-sponsors mailing list