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

Ralph Versteegen notifications at github.com
Wed Jan 13 16:15:05 PST 2021


More testing. I have also seen this crash when resizing the window smaller.

Uncommenting `set_window_size` didn't help.
Upgrading to SDL 2.0.14 didn't help.
Commenting out the lines that write to `maintexture` (`SDL_BlitSurface`/`SDL_ConvertPixels`) didn't help.
Also commenting out `SDL_Lock/UnlockTexture` didn't help.
Creating maintexture without `SDL_TEXTUREACCESS_STREAMING` didn't help.
Commenting out `set_viewport` (both calls outside `recreate_window`) didn't help.
Commenting out `recreate_screen_texture` didn't help.
Commenting out `SDL_RenderClear` or `SDL_RenderCopy` didn't help.
Commenting out boht `SDL_RenderClear/Copy`, leaving just `SDL_RenderPresent(mainrenderer)` as the only operation in `present_internal2`, seems to prevent it from crashing, which is not surprising because it's a noop.

I then tried a minimal example from the SDL2 sources (tests/testhitesting.c with the hittesting commented out) and that crashes too:
```
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
```

If noone can reproduce this (I asked before and got no reports) then I'm ready to settle this as VirtualBox specific.

-- 
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-759839228
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210113/d8dadc4c/attachment.html>


More information about the Ohrrpgce mailing list