Bug 489670 - Snap: no camera and no about page on Kubuntu 24.04
Summary: Snap: no camera and no about page on Kubuntu 24.04
Status: RESOLVED FIXED
Alias: None
Product: Qrca
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Snap Linux
: NOR major
Target Milestone: ---
Assignee: Scarlett Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-03 10:52 UTC by bugs.kde@raiko-schmidt.de
Modified: 2025-01-03 13:57 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.kde@raiko-schmidt.de 2024-07-03 10:52:59 UTC
***
If you're not sure this is actually a bug, instead post about it at https://discuss.kde.org

If you're reporting a crash, attach a backtrace with debug symbols; see https://community.kde.org/Guidelines_and_HOWTOs/Debugging/How_to_create_useful_crash_reports
***

SUMMARY
The app can only generate QR codes. However, it is not possible to decode a QR code with the camera or from an image or to display the about page.

STEPS TO REPRODUCE
1. Install via Discover or "snap install qrca"
2. run it


OBSERVED RESULT
After startup & menu option "Scannen" there is an empty side with only the menu button and the title "Scan QR code"
console output:
  kf.kirigami: Failed to find a Kirigami platform plugin
  ALSA lib conf.c:4553:(snd_config_update_r) Cannot access file /usr/share/alsa/alsa.conf
  Focus points mode selection is not supported
  Focus mode selection is not supported
  qrc:/QrCodeScannerPage.qml:148: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:101: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:162: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:52: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:83: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:148: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:101: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:162: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:52: TypeError: Cannot read property 'contentType' of undefined
  qrc:/QrCodeScannerPage.qml:83: TypeError: Cannot read property 'contentType' of undefined

When I try to allow the camera for the snap via "snap connect qrca:camera", this fails. A check of the possible plugs via "snap connections qrca" does not list the camera either. So the snap cannot use it.
The reason for this is probably that no plug for camera is defined in the source code under qrca/snapcraft.yaml.


Under menu item "Über" (about?) there is also a blank page with the menu button, but without a title.
console output:
  kf.kirigami: (qrc:/AboutPage.qml:8:1: module "org.kde.kirigamiaddons.formcard" is not installed
      import org.kde.kirigamiaddons.formcard 1.0 as FormCard
      ^)



EXPECTED RESULT
If I can install it via Discover or snap on a desktop system, it should work with all the options displayed in the GUI or CLI.


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 24.04
(available in About System)
KDE Plasma Version: 5.27.11
KDE Frameworks Version: 5.115.0
Qt Version: 5.15.13

ADDITIONAL INFORMATION
snap    2.63+24.04
snapd   2.63+24.04
Comment 1 Jonah Brüchert 2024-07-05 16:46:30 UTC
Looks like the snap packaging is broken.
Since the app is not even officially released, I don't think there should even be a stable snap.

I've added the person who made the snap in CC.
Comment 2 Scarlett Moore 2024-07-20 09:48:11 UTC
Working on this
Comment 3 Scarlett Moore 2024-07-20 10:18:18 UTC
https://invent.kde.org/utilities/qrca/-/merge_requests/81

I will also ensure it is only released to --edge until it is released.
Thanks,
Scarlett
Comment 4 Scarlett Moore 2025-01-03 13:57:17 UTC
This is fixed in edge