Repository navigation
Launch Lazarus through Xwayland under WSLg - #3
Merged
Merged
Conversation
The WSLg compositor (weston, WSLg 1.0.79) crashes with SIGSEGV when a window that has a transient child is destroyed. GTK3 talks to it directly over Wayland by default, and the IDE's first-run setup does exactly this, so every Linux window in the session disappears together with the IDE. A plain GTK3 program reproduces the crash; Xwayland is not affected. Select GDK_BACKEND=x11 when /mnt/wslg exists and the user has not chosen a backend. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The WSLg compositor (weston, WSLg 1.0.79) crashes with SIGSEGV when a window that has a transient child is destroyed. By default GTK3 talks to it directly over Wayland. The IDE's first-run setup dialog does exactly this: its parent window is destroyed while the dialog is transient for it. The next window close then brings down the compositor, and every Linux window of the session disappears together with the IDE. A plain GTK3 program reproduces the crash without Lazarus: show a window set_transient_for(parent), then call parent.destroy(). Xwayland is not affected.
./lazarus now selects GDK_BACKEND=x11 when /mnt/wslg exists and the user has not chosen a backend. An explicit GDK_BACKEND, including wayland, is kept.
Verified on WSL2 Ubuntu 24.04 with WSLg 1.0.79: