allkern / psxe

Multi-platform Sony PlayStation emulator written in C
95 stars 3 forks source link

segmentation fault on SDL_SetTextureScaleMode #1

Open greenaddress opened 3 months ago

greenaddress commented 3 months ago

Very nice project! I was playing with it and encountered a seg fault

Using master (w/ head commit 7f9fc68a99d1056963e74a37e921d449a3c99cca)

on Debian Bullseye which has SDL 2.0.14 I hit a segmentation fault on

 SDL_SetTextureScaleMode(screen->texture, screen->bilinear);                 

I checked and screen is not NULL, texture is not NULL and bilinear is set to 0 - everything else in terms of window/texture/etc seemed fine so not sure what the issue is.

If I uncomment the first one i hit the second one. if i uncomment both everything seems to run ok.

allkern commented 3 months ago

First of all, thank you for taking the time to diagnose this!

Support for SetTextureScaleMode seems to be somewhat hit-or-miss. It's only been available since SDL 2.0.12 (I had to set up checks for older versions) so this might be either an SDL issue, or a driver issue with your specific distro. I'll look into this anyways, if you could provide more OS info that would be appreciated.

greenaddress commented 3 months ago

kernel 5.10.0-29-amd64 #1 SMP Debian 5.10.216-1 (2024-05-03) intel embedded gpu vanilla debian bullseye install with gnome

sdl installed (2.0.14)

What else could help?