Each section starts from what you see, then gives the cause and the fix. The cause links to the page that explains the mechanism; the error codes are in Reference: error codes.
Cause: The callback was bound with on() after the window's first show(); callbacks are registered when the window opens.
Fix: Bind every callback right after create(). Re-binding a name that already has a handler is fine.
Cause: A one-way binding in Slint (value: root.x), which Slint breaks the first time the user moves the control.
Fix: Declare the property in-out and bind it two-way: value <=> root.x.
Cause: The plugin writes the value with set() in a frequent loop; set always sends, even an unchanged value.
Fix: Use bind for anything derived from state (Keep a slider responsive while dragging).
Cause: A settings page, tool window or panel is rebuilt from the plugin's last written values; an in-out property the user changed without a callback updating the plugin's model goes back to that value.
Fix: Handle the control's callback, keep the value in your state and bind it.
Cause: State kept only inside the panel's Slint component is lost when the player makes a new instance of the panel: its column closed and opened, the column's fullscreen overlay, the sidebar detached or attached, or a tab the player unloaded to make room (a column keeps at most 4 panels loaded) shown again. Other plugins mounting or unmounting panels do not touch it.
Fix: Keep anything that matters in bridge properties the plugin writes (Open a tool window and remember its state).
Cause: Colours hard-coded in the Slint file.
Fix: Use Theme.* tokens, and Theme.danger for errors (Reference: theme).
Cause: There is one panel per slot per plugin, one bottom bar and one backdrop for all plugins (conflict; the plugin's warning is slot-occupied), one OSD info block per plugin, and one open dialog at a time player-wide (busy).
The bottom bar is always taken: the player's control bar (the built-in vestra.playback) holds it, so a plugin's "bottom" mount never shows.
Fix: Mount at most one panel per slot; put controls for what is playing in "adjust", content in "sidebar", and a tool in a window, not in "bottom"; treat a conflict for the backdrop as "another plugin is there"; keep one OSD info block handle and change its text; wait for an open dialog to be answered.
Cause: An if that flips under the pointer (if touch.has-hover: Rectangle { … }, a hover highlight, an accent bar, a tooltip-like box) creates and destroys an element on every hover change. While a video plays, the player's accessibility tree (screen readers, UI Automation) is rebuilt for the whole window each time, measured at 100–160 ms per hover on Windows, enough to drop the video to 10–15 frames a second.
Fix: Keep the element and change properties instead: Rectangle { visible: touch.has-hover; … } or opacity:. Use if only for things that change rarely (a mode, a selection made with a click, a list that was loaded).
Cause: Nothing of the plugin listens: PanelSlot.state and appearance.theme follow outside changes only while something listens to them; a value bound to them otherwise shows the newest one the plugin read.
Fix: Listen: plugin.player.on("layout.changed", …) or plugin.player.on("appearance.changed", …) (the copy takes each event first; neither keeps the plugin running), or the slot's onChange (which does).
Cause: A command field or a binding is a function that reads plugin.player.state. The SDK evaluates it in the plugin, with the newest snapshot the plugin has; that snapshot follows the player only while a stream is open, and otherwise moves only after the plugin's own calls and reads.
Fix: Give a command's enabled and checked a plugin.when condition, which the player evaluates itself (Command state). For a window or panel that shows the state, open plugin.player.stream(fn) while it is on screen. In a handler, read the state now with await plugin.player.refresh().
Cause: It holds something only its process can serve: host.keepsRunning names each listener of a frequent event (with where it was added), panel and open window. Common ones: a stream opened in activate (it counts for the whole run), player.on("source.state", …) to learn that a file opened, a watcher (onChange) kept for good, a filter given its nodes at start but used only later.
Fix: Learn the moments from events (source.ready, window.changed, layout.changed, …) and triggers; open a stream only while something shows the state; make a filter when it is first needed (Learn what happens in the player).
Cause: The trigger is declared after an await in activate, inside an if, or in a loop whose length depends on data. When the player wakes the plugin for a flip, the notification goes to the trigger declared at the same place, which is not there.
Fix: Declare every trigger unconditionally in the synchronous part of activate; give the condition later with firesOn. Name a trigger whose condition must survive an update of the plugin.
Cause: The SDK sends bound values in an update pass after a handler returns and again when its promise settles; a value changed after an await inside a longer task appears only when that task ends.
Fix: Keep such a value in a plugin.state object: writing one of its fields runs the bindings that read it, wherever the write happens. For a plain variable, call plugin.update() when the task has something new to show (View.bind, Keep a slider responsive while dragging).
staleCause: The user or another plugin changed the source (or the subtitle selection) after the state your call depended on; nothing was done.
Fix: Usually ignore stale, or read the new state and decide again. For slow work, pass the state you started from as ifCurrent so the call never acts on the wrong file (Control playback).
builtin-onlyCause: The call is for the player's built-in plugins only (plugin.commands.list, plugin.commands.run, plugin.palette.lead).
Fix: Leave it out of a plugin that is not built in.
unknown fieldCause: The manifest has a field the player does not know: a misspelling, or a field an earlier version had.
Fix: Delete the field; Manifest lists every field.
Cause: Command key bindings belong to the main window (and the floating sidebar): they do not fire while a tool window or the Options window has focus, while a menu, a system dialog or a confirmation drawn in the player is open, or when a focused control takes the key (Space in a text field). In a tool window, the floating sidebar or the Options window, the standard close keys (Ctrl+W and Ctrl+F4 on Windows, ⌘W on macOS) close that window before any binding sees them. A disabled command lets its key go on to the next command bound to it, unless it has a reason.
Fix: Choose a default key the system does not take, and give a disabled command a reason when its key should be eaten. See Commands, menus and bindings and Keys the system takes first.
Cause: host.settle() waits only for the plugin's calls to the player. Work the plugin does on its own (reading or parsing a file, a child process, a network request) can finish later on a loaded machine; a debounce or timer needs time too.
Fix: Poll the value you assert on (Test a plugin), and use host.settle(ms) past a debounce or timer. After the plugin adds a listener, await host.settle() before the action it should hear: the subscription is a request too.
Cause: Everything in the plugin's process is gone after standby, a reload, an upgrade or a crash.
Fix: Keep what must survive in plugin.storage.session (this run of the player) or plugin.storage.json (across runs), and build the interface from it in activate (Store a plugin's data).