Version 2.26 of SDL2 has an issue with wayland where apps using the local lib crash on exit with: warning: queue 0x5642fce208f0 destroyed while proxies still attached: wl_callback@49 still attached wl_surface@41 still attached Segmentation fault (core dumped) This is fixed in https://github.com/libsdl-org/SDL/commit/132b88749c284e4d51d93f1e08f5bb0ff9d705dc Running these apps with SDL2 2.28 fixes the issues.