efa
Posts: 9
Joined: Tue Aug 27, 2013 10:05 pm

SDL2 via ssh/Xtunnel

Tue Jun 06, 2023 1:53 pm

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:

Code: Select all

 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
I tryed to set:
SDL_VIDEODRIVER to directfb | wayland | kmsdrm
instead of x11 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 apps that use X work well, and the same app built on Debian11/x86 work via x11

efa
Posts: 9
Joined: Tue Aug 27, 2013 10:05 pm

Re: SDL2 via ssh/Xtunnel

Tue Jun 06, 2023 8:20 pm

Code can be seen here:
https://github.com/efa/Wilderland

efa
Posts: 9
Joined: Tue Aug 27, 2013 10:05 pm

Re: SDL2 via ssh/Xtunnel

Thu Jun 08, 2023 1:47 pm

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

Return to “Graphics programming”