currently if we try to multithread the train() function in train.py, the game attempts to instantiate multiple xservers, or something similar. SDL is using Xserver as a renderer by default, we can change this but Wayland is a different headache. Currently the single threaded X version should work on any/all Linux platforms via native X11 or XWayland.
Logs:
pygame 2.5.2 (SDL 2.26.5, Python 3.12.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
X connection to :0 broken (explicit kill or server shutdown).
[xcb] Unknown sequence number while processing queue
[xcb] You called XInitThreads, this is not your fault
[xcb] Aborting, sorry about that.
python: xcb_io.c:278: poll_for_event: Assertion `!xcb_xlib_threads_sequence_lost' failed.
XIO: fatal IO error 0 (Success) on X server ":0"
after 92 requests (92 known processed) with 0 events remaining.
X connection to :0 broken (explicit kill or server shutdown).
XIO: fatal IO error 0 (Success) on X server ":0"
after 92 requests (92 known processed) with 0 events remaining.
XIO: fatal IO error 2 (No such file or directory) on X server ":0"
after 93 requests (93 known processed) with 0 events remaining.
currently if we try to multithread the train() function in train.py, the game attempts to instantiate multiple xservers, or something similar. SDL is using Xserver as a renderer by default, we can change this but Wayland is a different headache. Currently the single threaded X version should work on any/all Linux platforms via native X11 or XWayland.
Logs: