Summary: | Crashes when trying to open any documentation | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kio | Reporter: | Heiko Becker <heiko.becker> |
Component: | general | Assignee: | David Faure <faure> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | asturm, kdelibs-bugs, mpyne, rdieter |
Priority: | NOR | ||
Version: | git master | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | https://commits.kde.org/kio/cf3b0d102855a4a90db3fb65a99e0009fcdd3755 | Version Fixed In: | |
Sentry Crash Report: |
Description
Heiko Becker
2018-10-12 11:54:03 UTC
If I revert https://cgit.kde.org/kio.git/commit/?id=d428fc8e6447ede81f1e1911d0b66b39265672f3 it doesn't crash anymore and it becomes usable again, but admittedly I don't understand the why yet. Other of the ioslaves in kio seem to create a QCoreApplication manually. This would be required for KCrash, it seems. Adding this for kio_help might work, I'll do so and see if I can reproduce. See https://phabricator.kde.org/D16189 With this patch applied to create a QCoreApplication, KHelpCenter doesn't crash kdeinit5 (or anything else). David also wrote: https://phabricator.kde.org/D16183 which I guess might be better at least for 5.51.0 in case there are other kioslaves which also don't create a QtCoreApp. Git commit cf3b0d102855a4a90db3fb65a99e0009fcdd3755 by Michael Pyne. Committed on 14/10/2018 at 16:09. Pushed by mpyne into branch 'master'. kio_help: Fix crash in QCoreApplication when accessing help://. A recent commit d428fc8e6447ede81f1e1911d0b66b39265672f3 removed old custom crash handling code in favor of KCrash. But this actually adds a dependency on there being a valid QCoreApplication object. I took from the example of the similar kio_file to simply create the QCoreApplication here. Differential Revision: https://phabricator.kde.org/D16189 M +4 -0 src/ioslaves/help/main.cpp https://commits.kde.org/kio/cf3b0d102855a4a90db3fb65a99e0009fcdd3755 D16183 is a more general fix so I'm glad to have that go in, but all the same we're still *supposed* to have a QCoreApplication (e.g. for translation) so I've pushed this fix as well. |