[Ohrrpgce] [ohrrpgce/ohrrpgce] Mac/gfx_sdl2: Random crash when resizing window (#1181)

Ralph Versteegen notifications at github.com
Tue Nov 17 21:36:26 PST 2020


Dang...
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 `present_internal` in gfx_sdl2, `imagesz` was not equal to `buffersize` and `screenbuffer` during a resize.

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 `set_window_size(imagesz, zoom)` in `present_internal`, explaining the mismatched sizes.

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1181#issuecomment-729440686
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20201117/2b122b48/attachment.html>


More information about the Ohrrpgce mailing list