<table><tr><td style="">graesslin created this revision.<br />Restricted Application added a project: KWin.<br />Restricted Application added subscribers: kwin, plasma-devel.
</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/D6735" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>Weird NVIDIA behavior fixup part 2. Now that we do no longer freeze when<br />
NVIDIA decides to create an OpenGL error on startup<br />
(<a href="https://phabricator.kde.org/R108:aefb5f4dd9d41aa7377d56ece203089c73aefe07" style="background-color: #e7e7e7;
          border-color: #e7e7e7;
          border-radius: 3px;
          padding: 0 4px;
          font-weight: bold;
          color: black;text-decoration: none;" rel="noreferrer">aefb5f4dd9d41aa7377d56ece203089c73aefe07</a>), we experience a new issue.<br />
KWin is terminating (no idea why, [1]) and at the same time the OpenGL freeze<br />
protection thread is still running. So far we did not terminate the<br />
thread on shutdown and thus we hit an abort in Qt.</p>

<p>This change ensures that we properly terminate the thread on shutdown.</p>

<p>[1] My current theory is that games terminate KWin, common pattern of<br />
bug reports is "steam".</p>

<p>BUG: 382283<br />
FIXED-IN: 5.10.4</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Tortured KWin by making sure I go through the code path,<br />
saw the abort without the patch, no more abort with the patch</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>BRANCH</strong><div><div>quit-opengl-freeze-protection-thread-5.10</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D6735" rel="noreferrer">https://phabricator.kde.org/D6735</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>plugins/platforms/x11/standalone/x11_platform.cpp</div></div></div><br /><div><strong>To: </strong>graesslin, KWin, Plasma<br /><strong>Cc: </strong>plasma-devel, kwin, ZrenBot, progwolff, lesliezhai, ali-mohamed, hardening, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>