SDL error on some applications

I’m getting this error on several applications:

SDL_StretchSurface missing in SDL3 library.

obs-studio:

debug: Found portal inhibitor
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale/en-US.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/locale.ini
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes
debug: Attempted path: /usr/bin/../share/obs/obs-studio/themes/
warning: ReadOne on org.freedesktop.portal.Settings returned an invalid reply
warning: [Safe Mode] Unclean shutdown detected!
warning: [Safe Mode] User elected to launch normally.
info: Platform: Wayland
info: CPU Name: AMD Ryzen 5 4600G with Radeon Graphics
info: CPU Speed: 2381.000MHz
info: Physical Cores: 6, Logical Cores: 12
info: Physical Memory: 15353MB Total, 6845MB Free
info: Kernel Version: Linux 6.13.4-2-cachyos
info: Distribution: "CachyOS Linux" Unknown
info: Desktop Environment: KDE (KDE)
info: Session Type: wayland
info: Qt Version: 6.8.2 (runtime), 6.8.1 (compiled)
info: Portable mode: false
info: OBS 31.0.1 (linux)
info: ---------------------------------
info: ---------------------------------
info: audio settings reset:
	samples per sec: 48000
	speakers:        2
	max buffering:   960 milliseconds
	buffering type:  dynamically increasing
info: ---------------------------------
info: Initializing OpenGL...
info: Using EGL/Wayland
info: Initialized EGL 1.5
info: Loading up OpenGL on adapter AMD AMD Radeon Graphics (radeonsi, renoir, ACO, DRM 3.60, 6.13.4-2-cachyos)
info: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 25.0.0-cachyos1.1, shading language 4.60
info: ---------------------------------
info: video settings reset:
	base resolution:   1920x1080
	output resolution: 1280x720
	downscale filter:  Bicubic
	fps:               30/1
	format:            NV12
	YUV mode:          Rec. 709/Partial
info: NV12 texture support enabled
info: P010 texture support not available
info: Audio monitoring device:
	name: Default
	id: default
info: ---------------------------------
warning: Failed to load 'en-US' text for module: 'decklink-captions.so'
warning: Failed to load 'en-US' text for module: 'decklink-output-ui.so'
libDeckLinkAPI.so: cannot open shared object file: No such file or directory
warning: A DeckLink iterator could not be created.  The DeckLink drivers may not be installed
warning: Failed to initialize module 'decklink.so'
info: [pipewire] Available capture sources:
info: [pipewire]     - Monitor source
info: [pipewire]     - Window source
SDL_StretchSurface missing in SDL3 library.
SDL_StretchSurface missing in SDL3 library.
Aborted (core dumped)

kdenlive:

Starting render server
SDL_StretchSurface missing in SDL3 library.
Aborted (core dumped)

haruna (kde video player):

SDL_StretchSurface missing in SDL3 library.
Aborted (core dumped)

Using kdenlive and obs-studio flatpak version is working fine.

Is sdl2-compat installed?

Yes it is.

Running “yay -Qs sdl” return this:

local/lib32-sdl12-compat 1.2.68-2
    SDL 1.2 runtime compatibility library using SDL 2.0
local/lib32-sdl2-compat 2.32.50-1
    An SDL2 compatibility layer that uses SDL3 behind the scenes - 32-bit
local/lib32-sdl2_image 2.8.4-1
    A simple library to load images of various formats as SDL surfaces
local/lib32-sdl2_mixer 2.8.0-1
    A simple multi-channel audio mixer
local/lib32-sdl2_ttf 2.24.0-1
    Library that allows you to use TrueType fonts in your SDL applications (Version 2) (32-bit)
local/lib32-sdl3 3.2.4-1
    A library for portable low-level access to a video framebuffer, audio output, mouse, and keyboard
    (Version 3) - 32-bit
local/lib32-sdl_image 1.2.12-9
    A simple library to load images of various formats as SDL surfaces (32-bit)
local/lib32-sdl_mixer 1.2.12-6
    A simple multi-channel audio mixer
local/lib32-sdl_ttf 2.0.11-9
    A library that allows you to use TrueType fonts in your SDL applications (32-bit)
local/sdl12-compat 1.2.68-2.1
    SDL 1.2 runtime compatibility library using SDL 2.0
local/sdl2-compat 2.32.50-1.1
    An SDL2 compatibility layer that uses SDL3 behind the scenes
local/sdl2_gfx 1:1.0.4-4.2
    SDL graphics drawing primitives and other support functions (Version 2)
local/sdl2_image 2.8.5-1.1
    A simple library to load images of various formats as SDL surfaces (Version 2)
local/sdl2_mixer 2.8.1-1.1
    A simple multi-channel audio mixer (Version 2)
local/sdl2_ttf 2.24.0-1.2
    A library that allows you to use TrueType fonts in your SDL applications (Version 2)
local/sdl3 1:3.2.0-3
    Simple Directmedia Layer (Version 3)
local/sdl3_image 3.2.0-1
    SDL3 image loading library
local/sdl_image 1.2.12-9.1
    A simple library to load images of various formats as SDL surfaces
local/sdl_mixer 1.2.12-12.1
    A simple multi-channel audio mixer
local/sdl_net 1.2.8-6.1
    A small sample cross-platform networking library
local/sdl_sound 1.0.3-13.1
    A library to decode several popular sound file formats, such as .WAV and .MP3
local/sdl_ttf 2.0.11-7.1
    A library that allows you to use TrueType fonts in your SDL applications

sorry first wrong post, but why “yay”
sdl ist still in the repo?

Yay can install from the repos too, running “pacman -Qs sdl” returns the same thing

maybe but obs-studio (no flatpak) runs like charm without any errors on my system and if you get that error on several application something wrong with youre config…

EDIT: installed kdenlive and runs like it should, no flatpak version

I had the same problem a few weeks ago, i fixed it by downgrading the sdl3 package via the octopi package manager. I think it said something like: installed package is newer than the one available in the repositories.