[Bug 1970057] Re: Qt6 QLibraryInfo returns wrong paths
Bug Watch Updater
1970057 at bugs.launchpad.net
Fri Aug 5 08:23:21 UTC 2022
** Changed in: stellarium
Status: Unknown => New
** Changed in: stellarium
Importance: High => Unknown
--
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