Activity log for bug #1970057

Date Who What changed Old value New value Message
2022-04-23 19:56:00 tom stevens bug added bug
2022-04-24 20:10:04 tom stevens attachment added qlibraryinfo_symlink.patch https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5583206/+files/qlibraryinfo_symlink.patch
2022-04-24 20:18:44 Ubuntu Foundations Team Bug Bot tags amd64 apport-bug jammy amd64 apport-bug jammy patch
2022-04-24 20:18:51 Ubuntu Foundations Team Bug Bot bug added subscriber Ubuntu Review Team
2022-04-26 19:30:25 tom stevens attachment added 1-qt6-base_6.2.4+dfsg-2ubuntu2.dsc.debdiff https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5584085/+files/1-qt6-base_6.2.4+dfsg-2ubuntu2.dsc.debdiff
2022-05-02 20:42:30 tom stevens attachment added 2-qt6-base_6.2.4+dfsg-2ubuntu2.debdiff https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5585995/+files/2-qt6-base_6.2.4+dfsg-2ubuntu2.debdiff
2022-05-03 17:12:36 tom stevens bug added subscriber Ubuntu Sponsors Team
2022-05-04 18:37:04 tom stevens bug watch added https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1010575
2022-05-23 13:25:39 Launchpad Janitor qt6-base (Ubuntu): status New Fix Released
2022-05-23 17:16:49 tom stevens attachment added test plan part 2 failure example https://bugs.launchpad.net/ubuntu/+source/qt6-base/+bug/1970057/+attachment/5592341/+files/faillog.txt
2022-05-27 09:58:29 Dmitry Shachnev nominated for series Ubuntu Jammy
2022-05-27 09:58:29 Dmitry Shachnev bug task added qt6-base (Ubuntu Jammy)
2022-06-24 09:35:02 Launchpad Janitor qt6-base (Ubuntu Jammy): status New Confirmed
2022-06-24 09:39:31 Pamputt bug added subscriber Pamputt
2022-08-03 14:45:28 JASP-UvA bug added subscriber JASP-UvA
2022-08-05 06:39:12 gzotti bug watch added https://github.com/Stellarium/stellarium/issues/2548
2022-08-05 06:39:12 gzotti bug task added stellarium
2022-08-05 06:39:49 gzotti stellarium: importance Unknown High
2022-08-05 08:23:21 Bug Watch Updater stellarium: status Unknown New
2022-08-05 08:23:21 Bug Watch Updater stellarium: importance High Unknown
2022-09-04 21:12:02 gzotti bug added subscriber gzotti
2022-10-11 22:12:20 tom stevens bug watch added https://github.com/GPSBabel/gpsbabel/issues/931
2022-11-25 23:05:34 Dan Bryant bug added subscriber Dan Bryant
2022-11-26 17:40:52 Dmitry Shachnev bug added subscriber Dmitry Shachnev
2022-11-27 10:35:20 Dmitry Shachnev 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) [Impact] 1. QLibraryInfo can return non-existent paths. 2. This results in Qt6 QWebEngine being unusable. [Test Plan] 1. Check the output of qtdiag from qt6-tools-dev-tools, and verify the paths exist. a) Run "qtdiag --no-vulkan --no-rhi --no-gl | grep Path" b) verify that the paths actually exist, in particular DataPath: /share/qt6 does not exist on jammy. 2. Build the Qt supplied simplebrowser example, and verify it launches without error a) apt-get source libqt6webenginecore6 b) cd qt6-webengine-6.2.4+dfsg/examples/webenginewidgets/simplebrowser c) mkdir bld d) cd bld e) cmake -DCMAKE_BUILD_TYPE=Release .. f) cmake --build . g) ./simplebrowser An example of output from a failure is attached as faillog.txt. In particular note the failure to find resources at /share:   Qt WebEngine resources not found at /share/qt6/resources. Trying parent directory...   Qt WebEngine resources not found at /share/qt6. Trying application directory... and the resulting segmentation fault:   Segmentation fault (core dumped) [Where problems could occur] The change in 6.2.4+dfsg-8 restores the configuration settings that were used to build qtbase-opensource-src (5.14.2+dfsg-3) through qtbase-opensource-src (5.15.3+dfsg-2). The setting was lost on the transition from the Qt5 qmake build to the Qt6 cmake build. The change causes QLibraryInfo to use paths known at build time instead of trying to dynamically establish the paths. This will fail if the package is relocated to a different location from that which it is build for. Since the package isn't relocatable this shouldn't be a problem. [Other Info] The change is currently in The Kinetic Kudu. [Original 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)
2022-12-06 21:35:21 Brian Murray qt6-base (Ubuntu Jammy): status Confirmed Fix Committed
2022-12-06 21:35:23 Brian Murray bug added subscriber Ubuntu Stable Release Updates Team
2022-12-06 21:35:24 Brian Murray bug added subscriber SRU Verification
2022-12-06 21:35:27 Brian Murray tags amd64 apport-bug jammy patch amd64 apport-bug jammy patch verification-needed verification-needed-jammy
2022-12-06 21:35:49 Brian Murray removed subscriber Ubuntu Sponsors Team
2022-12-07 10:24:24 tom stevens tags amd64 apport-bug jammy patch verification-needed verification-needed-jammy amd64 apport-bug jammy patch verification-done-jammy verification-needed
2023-01-04 13:32:25 Robie Basak removed subscriber Ubuntu Stable Release Updates Team
2023-01-04 13:32:24 Launchpad Janitor qt6-base (Ubuntu Jammy): status Fix Committed Fix Released