-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Open
Milestone
Description
Affected project example: https://github.com/fishyhotel/FishyHotel
Random segmentation faults occur when requesting 8x MSAA in an OpenGL ES 2.0 context via SDL2 on Linux with recent Mesa drivers. Lower samples (4x, 2x, or 0) work stably.
Segmentation faults occur every time when requesting MSAA 16x.
The issue appeared after upgrading SDL2 from ~2.26 (Debian 12) to ~2.32 (Debian 13), suggesting a possible regression in SDL2's GLES handling interacting with newer Mesa.
Downgrading SDL2 to 2.26 (Debian 12) fixed this issue.
wget http://deb.debian.org/debian/pool/main/libs/libsdl2/libsdl2-2.0-0_2.26.5+dfsg-1_amd64.deb
wget http://deb.debian.org/debian/pool/main/libs/libsdl2/libsdl2-dev_2.26.5+dfsg-1_amd64.deb
dpkg -i libsdl2-2.0-0_2.26.5+dfsg-1_*.deb
dpkg -i libsdl2-dev_2.26.5+dfsg-1_*.deb
- Instructions: Compile with
gcc main.c -Ofast -lSDL2 -lGLESv2 -lEGL -lm -o FishyHotel_linux, run repeatedly → crashes randomly with 8x → crashes every time with 16x. - On line 1283 you can change the MSAA value
int msaa = 16;. Changing this to 0 or 4 solves the problem. 8 = intermittent crashes, 16 = crashes every time.
Environment:
- OS: Debian GNU/Linux 13 (trixie)
- SDL2 version: 2.32.4
- Mesa version: OpenGL version string: 4.6 (Compatibility Profile) Mesa 24.3.0-devel
- GPU: 6900xt & 6700xt (Tested)
- Windowing: X11
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels