<table><tr><td style="">valeriymalov planned changes to this revision.<br />valeriymalov added a comment.
</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/D18664">View Revision</a></tr></table><br /><div><div><blockquote style="border-left: 3px solid #8C98B8;
          color: #6B748C;
          font-style: italic;
          margin: 4px 0 12px 0;
          padding: 8px 12px;
          background-color: #F8F9FC;">
<div style="font-style: normal;
          padding-bottom: 4px;">In <a href="https://phabricator.kde.org/D18664#404173" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;">D18664#404173</a>, <a href="https://phabricator.kde.org/p/poboiko/" style="
              border-color: #f1f7ff;
              color: #19558d;
              background-color: #f1f7ff;
                border: 1px solid transparent;
                border-radius: 3px;
                font-weight: bold;
                padding: 0 4px;">@poboiko</a> wrote:</div>
<div style="margin: 0;
          padding: 0;
          border: 0;
          color: rgb(107, 116, 140);"><ol class="remarkup-list">
<li class="remarkup-list-item">Are we actually sure this is gonna fix all those crashes? Otherwise I would suggest using CCBUG instead of BUG inside the commit message.</li>
</ol></div>
</blockquote>

<p>I've chosen those bugs based on backtraces I could get myself but without core dumps I can't vouch for that, even with core dumps it'd be hard to tell. Alternatively I can CCBUG and after this gets into a release, ask in those bugs people if they still experience the crash and close them if they won't get back in a month or so.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><ol class="remarkup-list">
<li class="remarkup-list-item">For now, logging is the only way to know if there's something bad going on. In that case I would suggest to at least increase severity of those messages - it would increase chances users will notice it. For example, use <tt style="background: #ebebeb; font-size: 13px;">qCCritical</tt> (but this would also require additional check for okayish/non-critical return codes, such as <tt style="background: #ebebeb; font-size: 13px;">MDB_NOTFOUND</tt>)</li>
</ol></blockquote>

<p>These errors have good potential to flood users log files. I get around 30 megabytes of those on each boot. I'd rather see them disabled by default.<br />
It might make sense to add a catch-all error message somewhere on higher level, that would get printed out once, but I haven't looked yet where such message could be placed.</p>

<blockquote style="border-left: 3px solid #a7b5bf; color: #464c5c; font-style: italic; margin: 4px 0 12px 0; padding: 4px 12px; background-color: #f8f9fc;"><ol class="remarkup-list">
<li class="remarkup-list-item">Looks like this patch is composed of two parts - introducing new logging category and and improving error handling. It would be also nice to split those into two separate patches.</li>
<li class="remarkup-list-item">There are a lot of redundant <tt style="background: #ebebeb; font-size: 13px;">Q_ASSERT_X</tt> left, which could be removed. I suggest just <tt style="background: #ebebeb; font-size: 13px;">grep</tt>'ing over the code to catch'em all. I've started marking them here, but then I gave up - too many of them.</li>
<li class="remarkup-list-item">There are also several unchecked return codes as well, such as inside <tt style="background: #ebebeb; font-size: 13px;">*DB::size()</tt> calls. Those can also be found by <tt style="background: #ebebeb; font-size: 13px;">grep</tt>'ing over <tt style="background: #ebebeb; font-size: 13px;">Q_ASSERT_X</tt>.</li>
</ol></blockquote>

<p>I'll look into these this week.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R293 Baloo</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D18664">https://phabricator.kde.org/D18664</a></div></div><br /><div><strong>To: </strong>valeriymalov, Baloo, bruns, poboiko<br /><strong>Cc: </strong>ngraham, bruns, kde-frameworks-devel, Baloo, ashaposhnikov, michaelh, astippich, spoorun, abrahams<br /></div>