<table><tr><td style="">mpyne created this revision.<br />mpyne added reviewers: Frameworks, sitter.<br />Herald added a project: Frameworks.<br />Herald added a subscriber: kde-frameworks-devel.<br />mpyne requested review of this revision.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D16189">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>A recent commit <a href="https://phabricator.kde.org/R241:d428fc8e6447ede81f1e1911d0b66b39265672f3" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">d428fc8e6447ede81f1e1911d0b66b39265672f3</a> removed old custom crash handling code in favor of KCrash. But this actually adds a dependency on there being a valid <tt style="background: #ebebeb; font-size: 13px;">QCoreApplication</tt> object (since KCrash uses it in its own init).</p>

<p>I had thought this was done in kdeinit5 (which launches the kioslave) but that does not appear to be the case, when I looked at the sibling <tt style="background: #ebebeb; font-size: 13px;">kio_file</tt> code, it initialized its own QCoreApplication.</p>

<p>I took from that example to simply create the QCoreApplication here.</p>

<p>Reported as <a href="https://bugs.kde.org/show_bug.cgi?id=399709" class="remarkup-link" target="_blank" rel="noreferrer">bug 399709</a>.</p>

<p>If this works I'd like to commit shortly to avoid landing a new bug in 5.51.0 :)</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>I tried running KHelpCenter as discussed in the original bug report, and kdeinit5 did not crash.</p>

<p>I also tried <tt style="background: #ebebeb; font-size: 13px;">kioclient5 cat help:konsole</tt> directly and still no crash.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R241 KIO</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D16189">https://phabricator.kde.org/D16189</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/ioslaves/help/main.cpp</div></div></div><br /><div><strong>To: </strong>mpyne, Frameworks, sitter<br /><strong>Cc: </strong>kde-frameworks-devel, michaelh, ngraham, bruns<br /></div>