<p></p>
<p>Dang...<br>
I was just using gfx_sdl2 on Linux and found that it was crashing a lot all over the place (memory corruption) when resizing the window, and crashing faster the larger you resize the window. At first I thought that this bug (1181) was maybe gfx_sdl2/x86_64 specific, not Mac-specific. Eventually I discovered that the crash was because in <code>present_internal</code> in gfx_sdl2, <code>imagesz</code> was not equal to <code>buffersize</code> and <code>screenbuffer</code> during a resize.</p>
<p>But the crash went away when I recompiled, and I realised that my previous build just so happened to be performed on a temp git branch I had used under Mac while hunting this bug (1181). Examining the branch, I see I had commented out <code>set_window_size(imagesz, zoom)</code> in <code>present_internal</code>, explaining the mismatched sizes.</p>
<p>But... the whole reason I commented out that line was to experiment with the cause of this bug... maybe I had transformed a rare crash into a frequent one? I need to re-test on Mac.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-729440686">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZRE2CZKGKIDRQCK2LLSQNMNVANCNFSM4TDDAGOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZR3XQSVJVQ6EZKDWRDSQNMNVA5CNFSM4TDDAGOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFN5GDLQ.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-729440686",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-729440686",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>