[Bug] Binding errors for `DockCapabilityOverrides` / `DockCapabilityPolicy` logged for every docked window

Open Beginner friendly
#394 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 5 days

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
csharp
Domain
frontend

Research direction

The warnings come from bindings to DockCapabilityOverrides and Owner.DockCapabilityPolicy in the dock theme, logged against MdiDocumentWindow instances. Start by finding where those DockCapability properties are declared and where the theme binds CanDrag, CanDrop and CanClose. Done when creating a docked window logs no [Binding] errors, for example by giving the bindings a FallbackValue or defaulting the capability objects, and the window still drags, drops and closes as before.

Written by the indexing model from the issue text.

Description

area:ui-dock bug est:<1d P3

What happened

Each time a docked document window is created, Avalonia writes a batch of binding errors to stderr. They appear at startup and again whenever a window opens later in the session. Nothing visibly breaks, but on Linux they end up in the system journal, where they're noise and could hide real errors.

What you expected

No binding errors when windows are created.

Steps to reproduce

  1. Start Genie 5 from a terminal, or with stderr going to the journal.
  2. Open or restore a layout with docked windows.
  3. A set of [Binding] errors is logged for each MdiDocumentWindow.

Environment

  • OS + version: Ubuntu 24.04, arm64, GNOME on Xorg via xrdp
  • Genie 5 version: 5.0.0-beta.9.10 (176553d)
  • Install type: built from source (dotnet publish -c Release -r linux-arm64)
  • .NET version (source builds only): 10.0.403
  • Connection mode: Direct SGE

Logs / session capture

[Binding]An error occurred binding '(unknown)' to 'DockCapabilityOverrides.CanDrag' at 'DockCapabilityOverrides': 'Value is null.' (MdiDocumentWindow #44087100)
[Binding]An error occurred binding '(unknown)' to 'Owner.DockCapabilityPolicy.CanDrag' at 'DockCapabilityPolicy': 'Value is null.' (MdiDocumentWindow #44087100)
[Binding]An error occurred binding '(unknown)' to 'DockCapabilityOverrides.CanDrop' at 'DockCapabilityOverrides': 'Value is null.' (MdiDocumentWindow #44087100)
[Binding]An error occurred binding '(unknown)' to 'Owner.DockCapabilityPolicy.CanDrop' at 'DockCapabilityPolicy': 'Value is null.' (MdiDocumentWindow #44087100)
[Binding]An error occurred binding '(unknown)' to 'DockCapabilityOverrides.CanClose' at 'DockCapabilityOverrides': 'Value is null.' (Button #PART_CloseButton)
[Binding]An error occurred binding '(unknown)' to 'Owner.DockCapabilityPolicy.CanClose' at 'DockCapabilityPolicy': 'Value is null.' (Button #PART_CloseButton)
[IME] Error while destroying the context:
[IME] Error:

Anything else

Likely cause: the dock theme binds CanDrag, CanDrop and CanClose through DockCapabilityOverrides and Owner.DockCapabilityPolicy, and those are null for Genie's dockables. Setting default capability objects, or adding FallbackValue / TargetNullValue to those bindings, should quiet them. The [IME] lines that often follow may be a separate X11 input-method issue in Avalonia.

How often: every session, for every docked window. I haven't seen any functional effect.

Dominant language
C#
Stars
2
Forks
5
Avg merge
4d 3h
Merged PRs (30d)
22

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from GenieClient/Genie5

All issues in GenieClient/Genie5

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.