Bug 449278

Summary: Unexpected failure message appears when downloading files in Chromium
Product: [Frameworks and Libraries] frameworks-kio Reporter: cgku
Component: generalAssignee: KIO Bugs <kio-bugs-null>
Status: REPORTED ---    
Severity: minor CC: aleixpol, jgrulich, kdelibs-bugs, nate, vince
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:
Attachments: Info captured by dbus-monitor

Description cgku 2022-01-28 02:07:56 UTC
An unexpected failure message appears when downloading files in Chromium.  This message does not impact the ability to successfully download files and appears to be nothing more than an annoyance.

The KDE bug report tool does not appear with this event.  I'm happy to provide logs if someone can point me at them.

STEPS TO REPRODUCE
1. From Chromium, attempt to save a file (right click "Save as..", click a download link, or any other action that prompts the user to save something).

2.  A pop-up message appears on the desktop.
     Title:  xdg-desktop-portal-kde
     Message:  "Examining"

3.  A few seconds pass, then the pop-up message is replaced with a new one.
     Title:  xdg-desktop-portal-kde
     Message:  "Examining (Failed)"
                        "file:/<path to the most recently saved file>"

4.  The save dialog box immediately appears.  

5.  Select the path, enter a file name, then click [Save].

6.  The file is successfully saved.

This happens on every download in Chromium, including when using incognito mode or temporary profile.  The error does not occur when downloading from any other browser.

EXPECTED RESULT
The save as dialog box should appear without any messages from the desktop.

SOFTWARE/OS VERSIONS
Operating System: Kubuntu 21.10
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.86.0
Qt Version: 5.15.2
Kernel Version: 5.13.0-27-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i5-3570K CPU @ 3.40GHz
Memory: 31.2 GiB of RAM
Chromium:  97.0.4692.99 (Official Build) snap (64-bit)
Comment 1 Jan Grulich 2022-01-28 11:40:35 UTC
Can you run "dbus-monitor --session" in a terminal and keep it running while trying to download a file? Then copy the log to a file and attach it here please.
Comment 2 Nate Graham 2022-01-28 18:45:19 UTC
.
Comment 3 cgku 2022-01-29 00:46:15 UTC
Created attachment 146022 [details]
Info captured by dbus-monitor
Comment 4 Jan Grulich 2022-01-31 07:27:31 UTC
I think this migh be because of file indexing. This is not related to xdg-desktop-portal-kde, it's just that xdp-kde starts the KFileWidget which probably runs these jobs.

method call time=1643416956.854484 sender=:1.56 -> destination=org.kde.JobViewServer serial=307 path=/JobViewServer; interface=org.kde.JobViewServer; member=requestView
   string "xdg-desktop-portal-kde"
method call time=1643416956.858592 sender=:1.56 -> destination=org.kde.JobViewServer serial=318 path=/org/kde/notificationmanager/jobs/JobView_5; interface=org.kde.JobViewV2; member=setInfoMessage
   string "Examining"
Comment 5 cgku 2022-02-02 05:10:04 UTC
What you recommend as a next step?  Is this as simple as reinstalling the indexer, or does this warrant a post to that forum?
Comment 6 vinceduc 2022-02-25 17:56:01 UTC
I had the same bug with firefox.
In my case, it was a wrong filename (a carriage return character in the filename) in one file in the default save directory.
After finding and modify the name, no more pop-up.