Bug 445153 - krunner causes error messages in my system log because kconfig reads each line of an .ods file I open
Summary: krunner causes error messages in my system log because kconfig reads each lin...
Status: REPORTED
Alias: None
Product: krunner
Classification: Plasma
Component: general (show other bugs)
Version: 5.23.2
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Alexander Lohnau
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-08 10:38 UTC by John van Spaandonk
Modified: 2024-04-17 13:49 UTC (History)
4 users (show)

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


Attachments
attachment-15365-0.html (9.00 KB, text/html)
2021-11-08 12:06 UTC, John van Spaandonk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John van Spaandonk 2021-11-08 10:38:39 UTC
SUMMARY
I press the windows key to open the search dialog and then type the first part of an (Openoffice spreadsheet) document name. The document is found and started correctly, but there are many error messages in my syslog. 
It looks like KDE tries to read the full document because it mistakenly thinks that is is a configuration file??

STEPS TO REPRODUCE
1. See above
2. 
3. 

OBSERVED RESULT
kconfigini tries to read the complete .ods XML document. This does not look good (I replaced the file name by xxx)
I get many lines like this:
Nov 08 11:11:50 Big-PC plasmashell[1710]: kf.config.core: "KConfigIni: In file /media/nas_data/xxx.ods, line 5: " "Invalid escape sequence \"\\^\"."
Nov 08 11:11:50 Big-PC plasmashell[1710]: kf.config.core: "KConfigIni: In file /media/nas_data/xxx.ods, line 5: " "Invalid escape sequence \"\\m\"."
Nov 08 11:11:50 Big-PC plasmashell[1710]: kf.config.core: "KConfigIni: In file /media/nas_data/xxx.ods, line 5: " "Invalid escape sequence \"\\À\"."

EXPECTED RESULT
No error messages.

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 Alexander Lohnau 2021-11-08 11:39:26 UTC
Weird, I have created a new ods file, opened it from dolphin and it shows up without any warnings in the recent documents runner.

Which plugin shows the result for the file? (Not sure if it is desktop search or recent documents -  it could be both ;))
Comment 2 John van Spaandonk 2021-11-08 12:06:02 UTC
Created attachment 143329 [details]
attachment-15365-0.html

To be honest I have no idea.
I just press the windows key, type the first few letters of the document 
until it appears at the top of the list and then press enter.
Just tried it again with the same result.

The last few lines in the log are these, perhaps that can provide a hint.

/Nov 08 12:57:27 Big-PC plasmashell[1710]: kf.config.core: "KConfigIni: 
In file /media/nas_data/xxx.ods, line 376: " Invalid entry (missing '=')
Nov 08 12:57:27 Big-PC plasmashell[1710]: kf.service.services: The 
desktop entry file "///media/nas_data/xxx.ods" has Type= "Application" 
but no Exec line
Nov 08 12:57:27 Big-PC plasmashell[1710]: kf.service.services: 
KApplicationTrader: mimeType "x-scheme-handler/file" not found
Nov 08 12:57:27 Big-PC plasmashell[1710]: QObject::disconnect: 
Unexpected nullptr parameter
Nov 08 12:57:27 Big-PC kwin_x11[1654]: qt.qpa.xcb: QXcbConnection: XCB 
error: 3 (BadWindow), sequence: 36824, resource id: 39846722, major 
code: 18 (ChangeProperty), minor code: 0
Nov 08 12:57:27 Big-PC systemd[1523]: Started LibreOffice Calc - 
Spreadsheet.
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/usr/share/hwdata/pnp.ids" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 ouid=0
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.817:105): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/usr/share/hwdata/pnp.ids" pid=14037 
comm="soffice.bin" requested_mask="r>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kdeglobals" pid=14037 
comm="soffice.bin" requested_mask="r" denied_mask="r" >
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.853:106): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kdeglobals" pid=14037 
comm="soffice.bin" r>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/proc/sys/kernel/core_pattern" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 o>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.861:107): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/proc/sys/kernel/core_pattern" 
pid=14037 comm="soffice.bin" requested_mas>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/breezerc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 oui>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kwinrc" pid=14037 
comm="soffice.bin" requested_mask="r" denied_mask="r" fsui>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kwinrc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 ouid=>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.865:108): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/home/john/.config/breezerc" 
pid=14037 comm="soffice.bin" requested_mask=>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.865:109): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kwinrc" pid=14037 
comm="soffice.bin" reque>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.865:110): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/home/john/.config/kwinrc" pid=14037 
comm="soffice.bin" requested_mask="r>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/breezerc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 oui>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kwinrc" pid=14037 
comm="soffice.bin" requested_mask="r" denied_mask="r" fsui>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kwinrc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 ouid=>
Nov 08 12:57:27 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/breezerc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 oui>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.869:111): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/home/john/.config/breezerc" 
pid=14037 comm="soffice.bin" requested_mask=>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.869:112): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" 
name="/home/john/.config/kdedefaults/kwinrc" pid=14037 
comm="soffice.bin" reque>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.869:113): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/home/john/.config/kwinrc" pid=14037 
comm="soffice.bin" requested_mask="r>
Nov 08 12:57:27 Big-PC kernel: audit: type=1400 
audit(1636372647.869:114): apparmor="ALLOWED" operation="open" 
profile="libreoffice-soffice" name="/home/john/.config/breezerc" 
pid=14037 comm="soffice.bin" requested_mask=>
Nov 08 12:57:28 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/emaildefaults" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=100>
Nov 08 12:57:28 Big-PC audit[14037]: AVC apparmor="ALLOWED" 
operation="open" profile="libreoffice-soffice" 
name="/home/john/.config/kioslaverc" pid=14037 comm="soffice.bin" 
requested_mask="r" denied_mask="r" fsuid=1000 o>
Nov 08 12:57:28 Big-PC kwin_x11[1654]: qt.qpa.xcb: QXcbConnection: XCB 
error: 3 (BadWindow), sequence: 37848, resource id: 50331661, major 
code: 18 (ChangeProperty), minor code: 0
Nov 08 12:57:29 Big-PC kwin_x11[1654]: qt.qpa.xcb: QXcbConnection: XCB 
error: 3 (BadWindow), sequence: 38669, resource id: 14917757, major 
code: 3 (GetWindowAttributes), minor code: 0
Nov 08 12:57:29 Big-PC kwin_x11[1654]: qt.qpa.xcb: QXcbConnection: XCB 
error: 9 (BadDrawable), sequence: 38670, resource id: 14917757, major 
code: 14 (GetGeometry), minor code: 0
Nov 08 12:57:29 Big-PC plasmashell[1710]: 
file:///usr/share/plasma/shells/org.kde.plasma.desktop/contents/views/Panel.qml:15:1: 
QML Panel: Binding loop detected for property "state"
Nov 08 12:58:07 Big-PC dbus-daemon[1535]: [session uid=1000 pid=1535] 
Failed to activate service 'org.kde.runners.baloo': timed out 
(service_start_timeout=120000ms)

/
On 11/8/21 12:39 PM, Alexander Lohnau wrote:
> https://bugs.kde.org/show_bug.cgi?id=445153
>
> --- Comment #1 from Alexander Lohnau <alexander.lohnau@gmx.de> ---
> Weird, I have created a new ods file, opened it from dolphin and it shows up
> without any warnings in the recent documents runner.
>
> Which plugin shows the result for the file? (Not sure if it is desktop search
> or recent documents -  it could be both ;))
>
Comment 3 Isaac Cohen 2021-11-20 23:08:37 UTC
I can replicate this. Here are the steps:

1. Open a PDF file the ordinary way, by double clicking it in Dolphin.
2. Click the application launcher and enter the name of the PDF in the search box
3. The launcher will find the PDF (as a recently opened document)
4. Select the document from the list and click to open it
5. The document will open after a short delay (depending on the size of the document - for my Calculus textbook it's about 4-5 seconds)
6. Looking in .xsession-errors you will see a bunch of lines that look like this:
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846558: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846559: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846560: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846561: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846562: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846563: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846564: " Invalid entry (missing ']')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846565: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846566: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846567: " Invalid entry (missing '=')
kf.config.core: "KConfigIni: In file /home/isaac/James Stewart - Calculus_ Early Transcendentals 8th Edition. 8.pdf, line 846568: " Invalid entry (missing '=')

Specs:
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.15.1-051501-generic (64-bit)
Graphics Platform: X11
Processors: 4 × Intel® Core™ i3-4160 CPU @ 3.60GHz
Memory: 15.5 GiB of RAM
Graphics Processor: Mesa DRI Intel® HD Graphics 4400
Comment 4 Isaac Cohen 2021-11-20 23:13:56 UTC
Interestingly this only happens (for me) when I try to open the document using the application launcher. It doesn't happen for krunner.