Summary: | Need way to allow applications to handle invalid XML without crashing. | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kxmlgui | Reporter: | Abscissa <bus_kdezilla> |
Component: | general | Assignee: | kdelibs bugs <kdelibs-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | major | CC: | aspotashev, elvis.angelaccio, juanma_bellon, lp.kde, nate |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/frameworks/kxmlgui/-/commit/d37f758589a8629ab1d12aa81171fd690ed5f637 | Version Fixed In: | |
Sentry Crash Report: | |||
Attachments: | Invalid XML in dolphinui.rc |
Description
Abscissa
2018-10-25 02:11:11 UTC
This seems reasonable to me. My point was we shouldn't handle this from the dolphin side or on a per-app basis. Of course we can improve kxmlgui to better handle invalid input. But I think our time would be best spent to prevent invalid input in the first place. *** Bug 414392 has been marked as a duplicate of this bug. *** *** Bug 400093 has been marked as a duplicate of this bug. *** Preventing the situation from happening would be ideal, but KXMLGui should also be more robust when it does happen. Crashing is a really bad user experience. We could at the minimum remove the malformed file so that the app at least launches. *** Bug 428659 has been marked as a duplicate of this bug. *** Created attachment 133267 [details]
Invalid XML in dolphinui.rc
I see 2 problems here:
1. Something has broken this file. I don't know if it was a Debian APT script during an update, or Dolphin itself, or what.
2. Most definitely, no program should crash when reading wrong XML.
I guess the latter point is what this bug is about. I would like to help, but I have never installed sources of any KDE app for such purpose. Could you give me some hints or point me to some tutorial so that I could debug it myself?
Here is some documentation for how to build our software from source: https://community.kde.org/Get_Involved/development Feel free to give it a try! A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kxmlgui/-/merge_requests/288 Git commit d37f758589a8629ab1d12aa81171fd690ed5f637 by Christoph Cullmann. Committed on 19/06/2025 at 16:03. Pushed by cullmann into branch 'master'. we emit a critical error, we don't need to abort M +0 -4 src/kxmlguiclient.cpp https://invent.kde.org/frameworks/kxmlgui/-/commit/d37f758589a8629ab1d12aa81171fd690ed5f637 |