Bug 452031 - QR code option is shown for screenshots, but fails
Summary: QR code option is shown for screenshots, but fails
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Clipboard widget & pop-up (other bugs)
Version First Reported In: 5.24.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-03-29 10:17 UTC by Nicolai Weitkemper
Modified: 2024-09-27 03:47 UTC (History)
3 users (show)

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


Attachments
demonstration video (1.19 MB, video/mp4)
2022-04-28 13:52 UTC, Nicolai Weitkemper
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nicolai Weitkemper 2022-03-29 10:17:11 UTC
SUMMARY
QR code option is shown for screenshots, but fails.

STEPS TO REPRODUCE
1. Take a screenshot using Spectacle and copy it to the clipboard.
2. Open the clipboard applet.
3. Click the QR code icon on the screenshot's item.

OBSERVED RESULT
(- The item shows a placeholder image, not the screenshot itself.)
- The item shows a clickable QR code option
- Once clicked, the new page says “Creating QR code failed”.

EXPECTED RESULT
The QR code option should be disabled for images.

While not necessarily in scope for this bug report, I think QR code generation for files should be disabled in general, since the resulting “file://” URL has little use on another device.

SOFTWARE/OS VERSIONS
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Links to some code of interest:
- https://invent.kde.org/plasma/plasma-workspace/-/blob/master/applets/clipboard/contents/ui/ClipboardPage.qml#L129-137
- https://invent.kde.org/frameworks/prison/
Comment 1 Nate Graham 2022-04-01 18:09:10 UTC
Works for me for the "QR code" type. What type do you have selected? You can click on the little configure icon to see.
Comment 2 Bug Janitor Service 2022-04-16 04:34:49 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 3 Nicolai Weitkemper 2022-04-19 10:43:29 UTC
What do you consider “working” in this case? Do you get a QR code with a file URL, or is the option disabled (/…)?
Anyway, I verified that the “QR code” type is/was selected.
Comment 4 Nicolai Weitkemper 2022-04-19 10:50:43 UTC
I guess I should clarify that in Spectacle, I copy the image, not its path, to the clipboard. 

Plus, the “Ignore images” option in the applet's configuration is enabled, as per default. When I disable it, I get a preview image, but still the QR code button is shown and results in an error.
Comment 5 Nate Graham 2022-04-21 16:26:19 UTC
Strange. I still cannot reproduce the issue. Could you attach a screen recording, maybe? And if you run plasmashell in a terminal window (with `plasmashell --replace`, can you paste the output in the terminal window that appears when you try to create the QR code and it fails? Thanks!
Comment 6 Nicolai Weitkemper 2022-04-28 13:52:40 UTC
Created attachment 148433 [details]
demonstration video

Sure, here is a screen recording plus the (hopefully) relevant log. Note that these were recorded on two different machines of mine that share this bug.

```
file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/ImageItemDelegate.qml:13:1: QML ImageItemDelegate: Binding loop detected for property "width"
QQmlComponent: Created graphical object was not placed in the graphics scene.
QQmlComponent: Created graphical object was not placed in the graphics scene.
QQmlComponent: Created graphical object was not placed in the graphics scene.
QQmlComponent: Created graphical object was not placed in the graphics scene.
QQmlComponent: Created graphical object was not placed in the graphics scene.
QQmlComponent: Created graphical object was not placed in the graphics scene.
file:///usr/share/plasma/plasmoids/org.kde.plasma.clipboard/contents/ui/ImageItemDelegate.qml:13:1: QML ImageItemDelegate: Binding loop detected for property "width"
```
Comment 7 Bug Janitor Service 2022-05-13 04:35:09 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Nicolas Fella 2022-06-27 21:56:03 UTC
Depending on where the image is copied from I get either the corresponding file URL or a placeholder text like "▨123x50 32bpp" when showing a QR code for an image.
Comment 9 Nate Graham 2024-08-28 04:20:17 UTC
QR codes for images seem to be working as expected for me in current git master, which will become Plasma 6.2 in a few months.

Are you still able to reproduce the issue in Plasma 6.1.4 or later?
Comment 10 Bug Janitor Service 2024-09-12 03:47:00 UTC
🐛🧹 ⚠️ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 11 Bug Janitor Service 2024-09-27 03:47:26 UTC
🐛🧹 This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.