Skip to content

gtk/SurfaceScrolledWindow: wrap root child with another Adw.Bin - #12426

Merged
mitchellh merged 1 commit into
ghostty-org:mainfrom
alaviss:push-ousrlsukttvx
Apr 25, 2026
Merged

mitchellh merged 1 commit into
ghostty-org:mainfrom
alaviss:push-ousrlsukttvx

Conversation

@alaviss

@alaviss alaviss commented Apr 25, 2026

Copy link
Copy Markdown
Contributor

Due to a known Gtk issue, the scrolled_window at the root of the template is free-ed twice on dispose. This causes crashes when used with GNOME 49 platform (Gtk 4.20, libadwaita 1.8.5).

Workaround this issue by wrapping the root child in another Adw.Bin, similar to widgets like ResizeOverlay.

LLM was used to perform discovery against a manually recorded Valgrind trace, and helped tracking down known fixes for this problem. The comment in code was taken from another instance in the repository.

Fixes #12306

Assisted-by: OpenAI GPT-5.4

@alaviss
alaviss requested a review from a team as a code owner April 25, 2026 07:13
Due to a known Gtk issue, the scrolled_window at the root of the
template is free-ed twice on dispose. This causes crashes when used with
GNOME 49 platform (Gtk 4.20, libadwaita 1.8.5).

Workaround this issue by wrapping the root child in another Adw.Bin,
similar to widgets like ResizeOverlay.

LLM was used to perform discovery against a manually recorded Valgrind
trace, and helped tracking down known fixes for this problem.

Fixes ghostty-org#12306

Assisted-by: OpenAI GPT-5.4

@mitchellh mitchellh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, surprised we didn't catch this earlier since we have to do this all over. Thanks.

@mitchellh mitchellh added this to the 1.3.2 milestone Apr 25, 2026
@mitchellh mitchellh added the gtk Issues exclusive to GTK which are not OS-specific label Apr 25, 2026
@mitchellh
mitchellh merged commit 8e2a13c into ghostty-org:main Apr 25, 2026
86 checks passed
@alaviss
alaviss deleted the push-ousrlsukttvx branch April 26, 2026 00:00
@mitchellh mitchellh modified the milestones: 1.3.2, 1.4.0 Oct 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

gtk Issues exclusive to GTK which are not OS-specific

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants