<table><tr><td style="">jpalecek edited the summary of this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-ubkea77pqsedsq4/">(Show Details)</a><br />jpalecek edited the test plan for this revision. <a href="https://phabricator.kde.org/transactions/detail/PHID-XACT-DREV-jxh3leq5pvdm3oj/">(Show Details)</a><br />jpalecek added reviewers: davidedmundson, KWin.
</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/D27924">View Revision</a></tr></table><br /><div><strong>CHANGES TO REVISION SUMMARY</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">After much testing, I found that although KWin resets the graphic system and reallocates the buffer and all, for some strange reason NVidia unmaps the memory on first `draw()`. As a wild guess, I tried working it around by syncing the GL state during the reset and it seems it works (although I will still test).<br />
<br />
I personally think this is a bug in NVidia's drivers. I've got traces of syscalls and KWin functions (not OpenGL calls though). But I don't have much experience with OpenGL. Maybe someone could help to get this reported?<br />
<br />
BUG: 382305</span></div></div></div><br /><div><strong>CHANGES TO TEST PLAN</strong><div><div style="white-space: pre-wrap; color: #74777D;"><span style="padding: 0 2px; color: #333333; background: rgba(151, 234, 151, .6);">1. Stress the window manager by constantly moving windows (you'll have to do it programmatically). Eg.:<br />
<br />
<br />
```<br />
( for((;;)); do qdbus org.kde.kopete /kopete/MainWindow_1 org.qtproject.Qt.QWidget.minimumHeight 100; qdbus org.kde.kopete /kopete/MainWindow_1 org.qtproject.Qt.QWidget.maximumHeight 100; qdbus org.kde.kopete /kopete/MainWindow_1 org.qtproject.Qt.QWidget.maximumHeight 16000000; for i in $(seq 1 10); do qdbus org.kde.kopete /kopete/MainWindow_1 org.qtproject.Qt.QWidget.minimumHeight $((i*100)); done; done ) &<br />
```<br />
<br />
2. Invoke graphics reset by periodic switching into text mode, or by suspending/resuming the computer:<br />
<br />
```<br />
for i in $(seq 1 60); do [ -n "$(pidof kwin_x11)" ] && rtcwake -m mem -s 30; sleep 20; done<br />
```</span></div></div></div><br /><div><strong>REPOSITORY</strong><div><div>R108 KWin</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D27924">https://phabricator.kde.org/D27924</a></div></div><br /><div><strong>To: </strong>jpalecek, davidedmundson, KWin<br /><strong>Cc: </strong>kwin, Orage, LeGast00n, The-Feren-OS-Dev, cblack, jraleigh, zachus, fbampaloukas, GB_2, mkulinski, ragreen, jackyalcine, iodelay, crozbo, bwowk, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, hardening, romangg, jensreuterberg, abetts, sebas, apol, ahiemstra, mart<br /></div>