<p></p>
<p>More testing. I have also seen this crash when resizing the window smaller.</p>
<p>Uncommenting <code>set_window_size</code> didn't help.<br>
Upgrading to SDL 2.0.14 didn't help.<br>
Commenting out the lines that write to <code>maintexture</code> (<code>SDL_BlitSurface</code>/<code>SDL_ConvertPixels</code>) didn't help.<br>
Also commenting out <code>SDL_Lock/UnlockTexture</code> didn't help.<br>
Creating maintexture without <code>SDL_TEXTUREACCESS_STREAMING</code> didn't help.<br>
Commenting out <code>set_viewport</code> (both calls outside <code>recreate_window</code>) didn't help.<br>
Commenting out <code>recreate_screen_texture</code> didn't help.<br>
Commenting out <code>SDL_RenderClear</code> or <code>SDL_RenderCopy</code> didn't help.<br>
Commenting out boht <code>SDL_RenderClear/Copy</code>, leaving just <code>SDL_RenderPresent(mainrenderer)</code> as the only operation in <code>present_internal2</code>, seems to prevent it from crashing, which is not surprising because it's a noop.</p>
<p>I then tried a minimal example from the SDL2 sources (tests/testhitesting.c with the hittesting commented out) and that crashes too:</p>
<pre><code>0   libsystem_platform.dylib             0x00007fff75cecf54 _platform_memset_pattern16$VARIANT$Base + 20
1   GLRendererFloat                     0x00007fff581b8680 gldSetUInt + 130
2   GLRendererFloat                     0x00007fff581b056e gldClearDrawBuffer + 3792
3   GLRendererFloat                     0x00007fff581b1da5 gldClearFramebufferData + 49
4   GLEngine                            0x00007fff58034264 glClear_Exec + 541
5   org.libsdl.SDL2                     0x0000000106f6f458 0x106ebc000 + 734296
6   org.libsdl.SDL2                     0x0000000106f589db 0x106ebc000 + 641499
7   a.out                               0x0000000106eb4c9c main + 268
</code></pre>
<p>If noone can reproduce this (I asked before and got no reports) then I'm ready to settle this as VirtualBox specific.</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-759839228">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZW2PDQPPAFLPXZ45ULSZYZQTANCNFSM4TDDAGOA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AMWGWZTKJ6UMNTG42H4PHOLSZYZQTA5CNFSM4TDDAGOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFVFDT7A.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-759839228",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-759839228",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>