Skip to content

[UI] Call XInitThreads before wxEntry on Linux - #264

Open
Azkali wants to merge 1 commit into
has207:edgefrom
Azkali:linux-xinitthreads
Open

[UI] Call XInitThreads before wxEntry on Linux#264
Azkali wants to merge 1 commit into
has207:edgefrom
Azkali:linux-xinitthreads

Conversation

@Azkali

@Azkali Azkali commented Sep 5, 2026

Copy link
Copy Markdown

The Linux entry point pins GTK to the X11 backend but never makes Xlib thread safe. Mesa's Vulkan X11 WSI runs a present queue thread that issues xcb requests on the same display connection, so Xlib calls from the UI thread race it and abort with xcb_io.c poll_for_event: Assertion !xcb_xlib_threads_sequence_lost.

Reproduced on every title launch on Fedora 44 aarch64 (Ayaneo Pocket DS, Turnip under Xwayland). With this change the same setup launches reliably.

The Linux entry point pins GTK to the X11 backend but never makes Xlib
thread safe. Mesa's Vulkan X11 WSI runs a present queue thread that
issues xcb requests on the same display connection, so Xlib calls from
the UI thread race it and abort with
xcb_io.c poll_for_event: Assertion !xcb_xlib_threads_sequence_lost.

Reproduced on every title launch on Fedora 44 aarch64 (Ayaneo Pocket DS,
Turnip under Xwayland).
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant