<table><tr><td style="">yurchor created this revision.<br />yurchor added a reviewer: KDE Edu.<br />Herald added a project: KDE Edu.<br />Herald added a subscriber: kde-edu.<br />yurchor 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/D23172">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>It seems that the current code fails to delete softBody in sync with recalculating mechanical constraints. This leads to an assertion fail in Eigen. This patch delays constraints recalculation and sometimes saves Step from crashing.</p>

<p>Any help in triagging the crash and improving this patch will be much appreciated.</p>

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

<p>BUG: 408574</p></div></div><br /><div><strong>TEST PLAN</strong><div><ol class="remarkup-list">
<li class="remarkup-list-item">Start Step.</li>
<li class="remarkup-list-item">Add soft body.</li>
<li class="remarkup-list-item">Add a stick which starts or ends on any of the soft body particles (to trigger the snapping to this particle).</li>
<li class="remarkup-list-item">Delete the soft body using "World" dock or by selecting it and pressing the 'Delete' key.</li>
<li class="remarkup-list-item">Step does not crash anymore if one of the stick ends is then moved. However, it crashes if you move the stick as a whole.</li>
</ol></div></div><br /><div><strong>REPOSITORY</strong><div><div>R341 Step</div></div></div><br /><div><strong>BRANCH</strong><div><div>master</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D23172">https://phabricator.kde.org/D23172</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>step/worldmodel.cc</div></div></div><br /><div><strong>To: </strong>yurchor, KDE Edu<br /><strong>Cc: </strong>kde-edu, narvaez, apol<br /></div>