Raspberry Pi via ssh/Xtunnel

I read that SDL2 on Raspberry Pi work only locally (do not start via ssh/Xtunnel).

I checked the supplied version and is 2.0.14 on both RaspberryOS (32bit) and Raspbian (64bit), and seems true, if I run locally start OK, while running via ssh I got this error:

 X Error of failed request:  BadRequest (invalid request code or no such operation)
  Major opcode of failed request:  130 (MIT-SHM)
  Minor opcode of failed request:  1 (X_ShmAttach)
  Serial number of failed request:  202
  Current serial number in output stream:  203

Following suggestion in RISC-V thread, I tryed to set:
SDL_VIDEODRIVER to directfb | wayland | kmsdrm
without success. With all It say
SDL_CreateWindow Error: wayland not available
or directfb | kmsdrm

What is the reason SDL2 on Raspberry (3B+ in my case) do not work via x11 ?

Other app that use X work well

1 Like

and the same app built on Debian11/x86 work via x11

Code can be seen here:

if no one here know how to fix that, can you suggest me which is the right website where to ask?
thank you


put something different than:
at line:

and 1590, like 0 or something else like:
let run the app via X/network.