| Summary: | systemsettings UI freezes, hogs the CPU and spams the journal with "Invalid entry" when launching an AppImage from its file - KConfigIni mistakenly tries parsing it as a .desktop file | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Mariusz Libera <mariusz.libera> |
| Component: | kcm_keys | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | REPORTED --- | ||
| Severity: | normal | CC: | duha.bugs, fanzhuyifan, kde, kdedev, nate, sitter |
| Priority: | NOR | ||
| Version First Reported In: | 6.5.0 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
| Attachments: | screenshot | ||
This should be the same as Bug 510758, which will be fixed in Frameworks 6.20. *** This bug has been marked as a duplicate of bug 510758 *** (In reply to Nate Graham from comment #1) > This should be the same as Bug 510758, which will be fixed in Frameworks > 6.20. > > *** This bug has been marked as a duplicate of bug 510758 *** I don't see how those two bugs are related. It's the binding loop. (In reply to Nate Graham from comment #3) > It's the binding loop. Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage as an ini file (.desktop)? Because that's what I think might be happening seeing the log messages. (In reply to Mariusz Libera from comment #4) > (In reply to Nate Graham from comment #3) > > It's the binding loop. > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > as an ini file (.desktop)? Because that's what I think might be happening > seeing the log messages. Systemsettings works fine (In reply to Mariusz Libera from comment #4) > (In reply to Nate Graham from comment #3) > > It's the binding loop. > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > as an ini file (.desktop)? Because that's what I think might be happening > seeing the log messages. System settings works fine if I move the appimage file. Inspecting ~/.config/kglobalshortcutsrc there is a reference to the appimage in question: [/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s _k_friendly_name=/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage [/home/mariusz/Downloads/LM-Studio-0.3.30-1-x64.AppImage] 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s _k_friendly_name=/home/mariusz/Downloads/LM-Studio-0.3.30-1-x64.AppImage [/home/mariusz/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s _k_friendly_name=/home/mariusz/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage I remember the app showed me a dialog to register a global shortcut. Ok, then I have indeed mis-diagnosed the issue. Sorry about that! (In reply to Mariusz Libera from comment #5) > (In reply to Mariusz Libera from comment #4) > > (In reply to Nate Graham from comment #3) > > > It's the binding loop. > > > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > > as an ini file (.desktop)? Because that's what I think might be happening > > seeing the log messages. > > Systemsettings works fine (In reply to Mariusz Libera from comment #4) > > (In reply to Nate Graham from comment #3) > > > It's the binding loop. > > > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > > as an ini file (.desktop)? Because that's what I think might be happening > > seeing the log messages. > > System settings works fine if I move the appimage file. > Inspecting ~/.config/kglobalshortcutsrc there is a reference to the appimage > in question: > > [/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] > 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s > _k_friendly_name=/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64. > AppImage > > [/home/mariusz/Downloads/LM-Studio-0.3.30-1-x64.AppImage] > 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s > _k_friendly_name=/home/mariusz/Downloads/LM-Studio-0.3.30-1-x64.AppImage > > [/home/mariusz/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] > 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s > _k_friendly_name=/home/mariusz/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage > > I remember the app showed me a dialog to register a global shortcut. So I deleted those shortcut entries and created a proper .desktop file in ~/.local/share/applications referring to the appimage instead of running it directly - and now everything works nicely. Still, directly running appimages that register shortcuts seem to create a nasty bug. (In reply to Mariusz Libera from comment #4) > (In reply to Nate Graham from comment #3) > > It's the binding loop. > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > as an ini file (.desktop)? Because that's what I think might be happening > seeing the log messages. What's the mistake? You put it in a location for ini files so it gets parsed as such, no? A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kconfig/-/merge_requests/398 (In reply to Harald Sitter from comment #8) > (In reply to Mariusz Libera from comment #4) > > (In reply to Nate Graham from comment #3) > > > It's the binding loop. > > > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > > as an ini file (.desktop)? Because that's what I think might be happening > > seeing the log messages. > > What's the mistake? You put it in a location for ini files so it gets parsed > as such, no? No. I didn't put it in a location for ini files. I double clicked it from /home/mariusz/.local/bin/appimage/ folder, it asked to register a global shortcut and kde put this in ~/.config/kglobalshortcutsrc: [/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s _k_friendly_name=/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage And then systemsettings started parsing the appimage in the path you see in the logs: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage Which is not a location for .desktop files, just the path from which the appimage was executed. That's the mistake.(In reply to Harald Sitter from comment #8) > (In reply to Mariusz Libera from comment #4) > > (In reply to Nate Graham from comment #3) > > > It's the binding loop. > > > > Are you sure it's not KConfigIni mistakenly trying to parse a 1GB appimage > > as an ini file (.desktop)? Because that's what I think might be happening > > seeing the log messages. > > What's the mistake? You put it in a location for ini files so it gets parsed > as such, no? No. I didn't put it in a location for ini files. I double clicked it from /home/mariusz/.local/bin/appimage/ folder, it asked to register a global shortcut and kde put this in ~/.config/kglobalshortcutsrc: [/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage] 9818A1EA6A4731EC3D8F9549969A61C8-=none,none,Electron shortcut\s _k_friendly_name=/home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage And then systemsettings started parsing the appimage in the path you see in the logs: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage Which is not a location for .desktop files, just the path from which the appimage was executed. That's the mistake. I see. I don't get any such dialog when running the appimage though. How did you install it? theory it puts it path as app_id which the portal uses as the component name for kglobalaccel. And then somehow the kcm thinks this is a shortcut component backed by a desktop file. I tried downloading the appimage but ir refuses to start for me. Maybe this goes wrong because we saved an absolute path, https://invent.kde.org/plasma/plasma-desktop/-/blob/master/kcms/keys/globalaccelmodel.cpp#L119 KService::Ptr service = KService::serviceByStorageId(componentUnique); kservice then tries to parse the file pointer to by the absolute path. Created attachment 186084 [details]
screenshot
This is the dialog that I get when running the appimage in question.
I didn't 'install' it, just downloaded and double clicked from dolphin, and confirmed that I want to execute it.
When I try to double click the appimage all I get is
> For security reasons, launching executables is not allowed in this context.
(In reply to Harald Sitter from comment #15) > When I try to double click the appimage all I get is > > > For security reasons, launching executables is not allowed in this context. Maybe your filesystem is mounted with 'noexec' ? Does running other executables work? Have you tried running it from konsole? |
I opened the system settings and the shortcuts page - the UI froze, the fans in my laptop ramped up and the journal got spammed with the following over and over until I closed the system settings: Oct 23 17:21:11 legion systemd[1132]: Started System Settings - System Settings. Oct 23 17:21:12 legion systemsettings[130986]: Using fontconfig file: "/home/mariusz/.config/fontconfig/fonts.conf" Oct 23 17:21:12 legion systemsettings[130986]: Starting libddcutil. library built Not set at Not set. stdout_stderr_redirected=true Oct 23 17:21:12 legion systemsettings[130986]: qrc:/kcm/kcm_landingpage/main.qml:26:5: QML FormLayout: Binding loop detected for property "wideMode": qrc:/qt/qml/org/kde/kirigami/layouts/FormLayout.qml:72:5 Oct 23 17:21:12 legion systemsettings[130986]: qrc:/kcm/kcm_landingpage/main.qml:26:5: QML FormLayout: Binding loop detected for property "wideMode": qrc:/qt/qml/org/kde/kirigami/layouts/FormLayout.qml:72:5 Oct 23 17:21:12 legion systemsettings[130986]: InitManagerJob Error: Job was deleted before finished! Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 1:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 2:" Invalid entry (missing ']') Oct 23 17:21:17 legion systemsettings[130986]: [126B blob data] Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 3: Invalid escape sequence: «\ Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 4:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 6:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 7:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 9:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 10:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 11:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 12:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 13:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 14:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 15:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 16:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 17:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 18:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 19:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 21: Invalid escape sequence: «\ Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 23:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 24:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 25: Invalid escape sequence: «\]» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 25: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 25: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 25: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 26: Invalid escape sequence: «\û Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 27: Invalid escape sequence: «\$» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 27: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 27: Invalid escape sequence: «\û Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 27: Invalid escape sequence: «\þ» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 28: Invalid escape sequence: «\"» Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 29:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 30:" Invalid entry (missing ']') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 32:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 33:" Invalid entry (missing ']') Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 36: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: [127B blob data] Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 36: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 36: Invalid escape sequence: «\A» Oct 23 17:21:17 legion systemsettings[130986]: KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 36: Invalid escape sequence: «\û Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 37:" Invalid entry (second locale!?) Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 38:" Invalid entry (missing ']') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 39:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 40:" Invalid entry (missing ']') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 41:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 42:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 43:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 44:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 45:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 46:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 47:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 48:" Invalid entry (second locale!?) Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 49:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 50:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 51:" Invalid entry (second locale!?) Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 52:" Invalid entry (missing '=') Oct 23 17:21:17 legion systemsettings[130986]: "KConfigIni: In file /home/mariusz/.local/bin/appimage/LM-Studio-0.3.30-1-x64.AppImage, line 54:" Invalid entry (missing '=') Operating System: Arch Linux KDE Plasma Version: 6.5.0 KDE Frameworks Version: 6.19.0 Qt Version: 6.10.0 Kernel Version: 6.17.4-arch2-1 (64-bit) Graphics Platform: Wayland Processors: 16 × AMD Ryzen 7 6800H with Radeon Graphics Memory: 40 GiB of RAM (34.9 GiB usable) Graphics Processor: AMD Radeon 680M Manufacturer: LENOVO Product Name: 82RE System Version: Legion 5 15ARH7