[Bug] Binding errors for `DockCapabilityOverrides` / `DockCapabilityPolicy` logged for every docked window
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
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
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
- Start Genie 5 from a terminal, or with stderr going to the journal.
- Open or restore a layout with docked windows.
- A set of
[Binding]errors is logged for eachMdiDocumentWindow.
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
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from GenieClient/Genie5
-
bug
Difficulty 1/5 1-3 hours Newbie friendliness 90/100
GenieClient/Genie5#496 ·
Maintainers usually reply within 5 days
-
enhancement g4-regression
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
GenieClient/Genie5#494 ·
Maintainers usually reply within 5 days
-
area:ui-dock enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
GenieClient/Genie5#462 ·
Maintainers usually reply within 5 days
-
area:mapper bug est:<1d P2
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
GenieClient/Genie5#449 · 1 comment ·
Maintainers usually reply within 5 days
-
[Bug] Maps ▸ Update from Official Repo / Repair Maps give no notification of success or failurePossibly taken A pull request linked to this issue is open or already merged. Openarea:mapper area:updater bug est:<1d P3
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
GenieClient/Genie5#423 · 1 assignee ·
Maintainers usually reply within 5 days
All issues in GenieClient/Genie5
Similar issues
-
documentation good first issue kind:task level:starter size:s
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Arggon/ArggonStores#66 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Tool] MockAPIOpenhas-image has-license has-readme new-tool ready-to-approve repo-verified
Difficulty 1/5 Under an hour Newbie friendliness 72/100
shanselman/TinyToolTown#956 ·
Maintainers usually reply within 2 days
-
bug frontend
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
[Bug]: Native build script prints a traceback when Git is missing from PATHPossibly taken @Jaisuryan-web claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
KnifeLemon/Filee#1953 ·
Maintainers usually reply within 1 day