Skip to content

fix(a11y): intermittent Gtk-CRITICAL gtk_at_context_set_accessible_role with file providers and AT-SPI active #2011

Closed

Description

@wmfeht

Strata version

main @ 2970e7a (built from source; the binary still reports 1.1.1). Found in the 1.2.0 release-candidate QA sweep.

Installation method

Built from source

Linux distribution and desktop environment

Arch Linux (Omarchy). Reproduced with the release binary on a private Xvfb X11 display with a private session bus and throwaway HOME (no window manager). AT-SPI bus active on the private session bus.

What happened?

Gtk-CRITICAL: gtk_at_context_set_accessible_role: assertion '!self->realized' failed appeared 15 times across two separate launches: 4 times in one session, and 11 in another (including a burst of 9 at one timestamp).

Both sessions had the LocalSend and KDE Connect file providers installed, used the context menu, and had an AT-SPI client walking the accessibility tree. The critical never appeared in four sessions without providers that did the same AT-SPI walking.

Steps to reproduce

Not reproducible on demand. Conditions in which it appeared:

  1. Install the LocalSend and KDE Connect providers.
  2. Run Strata with AT-SPI active (GTK_A11Y=atspi) and an AT-SPI client walking the tree.
  3. Use item context menus, including Send to….

Tried without triggering it: opening and closing menus, Send to… navigation, editing files with the menu open, device add and remove, and provider refreshes.

Expected behavior

No GTK criticals.

Screenshots or video

N/A (described in words above)

Relevant logs

Gtk-CRITICAL **: gtk_at_context_set_accessible_role: assertion '!self->realized' failed

Additional context

Metadata

Metadata

Assignees

Labels

P3bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions