← Back to issue list

kde-neon qt5 webengine applications no longer works

View original Github issue

Metadata

Project
snapcraft
Number
#4151
Type
issue
State
closed
Author
tsteven4
Labels
Created
Updated
Closed

Current evaluation

kde-neon extension failed to locate QtWebEngine resources on Jammy. Maintainers acknowledged the qt.conf bug and planned a fix. Users applied manual layout symlinks and env vars as a workaround. Issue closed as completed due to inactivity.

Suggested action:

No scores available.

Issue body

### Bug Description applications that use qtwebengine via kde-neon no longer work on jammy with Qt 5.15.8 ### To Reproduce There are a number of interactions with the GUI application necessary to use QtWebEngine and generate the above errors. ### Environment snapcraft run on Ubuntu 22.04.2 LTS snapcraft doesn't fail, the resulting snap does. ### snapcraft.yaml ```shell name: gpsbabel # you probably want to 'snapcraft register <name>' base: core22 # the base snap is the execution environment for this snap version: '0.1' # just for humans, typically '1.2+git' or '1.3.2' summary: "Convert, manipulate and transfer GPS data" description: | Convert, manipulate and transfer data from GPS programs or GPS recievers. Open source and supported on macOS, Windows and Linux. license: GPL-2.0 title: GPSBabel source-code: https://github.com/GPSBabel/gpsbabel.git website: https://www.gpsbabel.org grade: devel # must be 'stable' to release into candidate/stable channels confinement: strict # use 'strict' once you have the right plugs and slots apps: gpsbabel: plugs: - home - raw-usb - removable-media - serial-port command: usr/bin/gpsbabel extensions: [kde-neon] gpsbabelfe: plugs: - home - removable-media - network # - opengl # - wayland # - x11 command: usr/bin/gpsbabelfe # environment: # QT_DEBUG_PLUGINS: 1 extensions: [kde-neon] # remap the ubuntu qt5 install directories to the snap. # kde-neon trys use a qt.conf file, but they put it in a place that requires # a patch to qt that is no longer used! #layout: # /usr/share/qt5: # symlink: $SNAP/kf5/usr/share/qt5 # /usr/lib/qt5: # symlink: $SNAP/kf5/usr/lib/qt5 # /usr/lib/x86_64-linux-gnu/qt5: # symlink: $SNAP/kf5/usr/lib/x86_64-linux-gnu/qt5 adopt-info: gpsbabel parts: gpsbabel: # See 'snapcraft plugins' plugin: cmake cmake-parameters: - -DCMAKE_BUILD_TYPE=Release - -DGPSBABEL_WITH_ZLIB=included - -DGPSBABEL_WITH_SHAPELIB=pkgconfig # - -DGPSBABEL_MAPPREVIEW=OFF cmake-generator: Ninja source: . override-pull: | craftctl default # add install command to CMakeLists.txt echo "install(TARGETS gpsbabel gpsbabelfe CONFIGURATIONS Release RUNTIME DESTINATION /usr/bin)" >> CMakeLists.txt # jam repo sha into GITHUB_SHA sed -i -e"/GB.SHA/i set(ENV{GITHUB_SHA} \"$(git log -1 --format=%h)\")" gbversion.cmake # set snap version # ensure version has at most 32 characters craftctl set version=$(git log -1 --format='LinuxInstaller-%ad-%h' --date=format:%Y%m%d) build-packages: - git - vim - g++ - ninja-build # - zlib1g-dev - libshp-dev - libusb-1.0-0-dev - pkg-config - libudev-dev - qtbase5-dev - qttools5-dev - qttools5-dev-tools - qttranslations5-l10n - qtwebengine5-dev - libqt5serialport5-dev # - libgl-dev # - libopengl-dev # - libvulkan-dev # - libx11-xcb-dev # - libxkbcommon-dev stage-packages: # - zlib1g - libshp2 - libusb-1.0-0 # - libgl1-mesa-dri ``` ### Relevant log output ```shell Qt WebEngine resources not found at /usr/share/qt5/resources. Trying parent directory... Qt WebEngine resources not found at /usr/share/qt5. Trying application directory... Qt WebEngine resources not found at /snap/gpsbabel/x1/usr/bin. Trying fallback directory... The application MAY NOT work. Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/tsteven4/snap/gpsbabel/x1/.GPSBabel' Installed Qt WebEngine locales directory not found at location /usr/share/qt5/translations/qtwebengine_locales. Trying application directory... Qt WebEngine locales directory not found at location /snap/gpsbabel/x1/usr/bin/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. Path override failed for key ui::DIR_LOCALES and path '/home/tsteven4/snap/gpsbabel/x1/.GPSBabel' [0517/162352.977986:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.GPSBabel/qtwebengine_resources_100p.pak Some features may not be available. [0517/162352.978037:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.GPSBabel/qtwebengine_resources_200p.pak Some features may not be available. [0517/162352.978052:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.GPSBabel/qtwebengine_resources.pak Some features may not be available. [0517/162352.978070:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale Qt WebEngine resources not found at /usr/share/qt5/resources. Trying parent directory... Qt WebEngine resources not found at /usr/share/qt5/resources. Trying parent directory... Qt WebEngine resources not found at /usr/share/qt5. Trying application directory... Qt WebEngine resources not found at /usr/share/qt5. Trying application directory... Qt WebEngine resources not found at /snap/gpsbabel/x1/kf5/usr/lib/x86_64-linux-gnu/qt5/libexec. Trying fallback directory... The application MAY NOT work. Qt WebEngine resources not found at /snap/gpsbabel/x1/kf5/usr/lib/x86_64-linux-gnu/qt5/libexec. Trying fallback directory... The application MAY NOT work. Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess' Installed Qt WebEngine locales directory not found at location /usr/share/qt5/translations/qtwebengine_locales. Trying application directory... Path override failed for key base::DIR_QT_LIBRARY_DATA and path '/home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess' Qt WebEngine locales directory not found at location /snap/gpsbabel/x1/kf5/usr/lib/x86_64-linux-gnu/qt5/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. Path override failed for key ui::DIR_LOCALES and path '/home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess' Installed Qt WebEngine locales directory not found at location /usr/share/qt5/translations/qtwebengine_locales. Trying application directory... Qt WebEngine locales directory not found at location /snap/gpsbabel/x1/kf5/usr/lib/x86_64-linux-gnu/qt5/libexec/qtwebengine_locales. Trying fallback directory... Translations MAY NOT not be correct. Path override failed for key ui::DIR_LOCALES and path '/home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess' [0517/162353.001282:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources_100p.pak Some features may not be available. [0517/162353.001282:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources_100p.pak Some features may not be available. [0517/162353.001320:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources_200p.pak Some features may not be available. [0517/162353.001320:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources_200p.pak Some features may not be available. [0517/162353.001344:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources.pak Some features may not be available. [0517/162353.001345:ERROR:resource_bundle.cc(947)] Failed to load /home/tsteven4/snap/gpsbabel/x1/.QtWebEngineProcess/qtwebengine_resources.pak Some features may not be available. [0517/162353.002145:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale [0517/162353.002187:WARNING:resource_bundle_qt.cpp(119)] locale_file_path.empty() for locale [26688:26688:0517/162353.005833:ERROR:extension_system_qt.cpp(121)] Failed to parse extension manifest. ``` ### Additional context I think this code is problematic with jammy's version of Qt5. I don't believe the referenced patch is being used anymore. https://github.com/snapcore/snapcraft/blob/2f2d1eac63de39dbd4f9bbfab8ffa5df0ac9ca62/extensions/desktop/kde-neon/launcher-specific#L51-L61 I tried relocating qt.conf next to the application so it was found. That improved the situation, but there were still issues. Uncommenting the following lines in my yaml solved all the issues: ``` #layout: # /usr/share/qt5: # symlink: $SNAP/kf5/usr/share/qt5 # /usr/lib/qt5: # symlink: $SNAP/kf5/usr/lib/qt5 # /usr/lib/x86_64-linux-gnu/qt5: # symlink: $SNAP/kf5/usr/lib/x86_64-linux-gnu/qt5 ```

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b kde-neon extension failed to locate QtWebEngine resources on Jammy. Maintainers acknowledged the qt.conf bug and planned a fix. Users applied manual layout symlinks and env vars as a workaround. Issue closed as completed due to inactivity.
qwen/qwen3.6-35b-a3b The kde-neon extension's qt.conf path broke Qt WebEngine apps on Ubuntu 22.04. A maintainer acknowledged the bug and planned a fix. The issue was closed as completed due to inactivity, indicating the problem is considered resolved.
qwen/qwen3.6-35b-a3b Maintainer acknowledged a kde-neon extension qt.conf path bug breaking QtWebEngine on Jammy and committed to a fix. Users applied manual layout symlinks as a workaround. Issue closed as completed due to inactivity.
qwen3.6-35b-a3b-mtp-q6 kde-neon's qt.conf placement broke Qt WebEngine on Jammy. A layout workaround was confirmed. Issue closed as completed after the developer committed to fixing the launcher logic.
qwen3.6-35b-a3b-mtp-q6 kde-neon broke Qt WebEngine on Ubuntu 22.04 due to a misplaced qt.conf. A maintainer acknowledged the bug and planned a fix. The issue was closed as completed due to inactivity, with manual layout symlinks accepted as a workaround.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#5250 fix(extensions): resources path for QtWebEngineProcess on kde-neon-6 snapcraft merged Merged a fix adding a missing export statement for the QtWebEngineProcess resources path on kde-neon-6. Approved by two reviewers, passed CI, and merged by the author despite an unrelated 22.04 spread failure.
71%
#5288 kde-neon-6 extension is broken for core22 snapcraft closed The kde-neon-6 extension for core22 broke due to a Qt version mismatch from outdated Jammy repos. The neon team fixed the underlying issue, restoring functionality. The disabled spread test was re-enabled. Issue closed.
71%