Documentation

Troubleshooting

The place to look is urdeck.log in the data folder (Open data folder in the tray menu; %APPDATA%\UrDeck). Each line starts with the date and time, and at 5 MB the file becomes urdeck.log.1. Almost everything UrDeck does not like is written there once, with the name of the thing and the reason.

The configuration is not applied

  • A file that is not valid JSON is ignored and the last good configuration stays in use; the log says why. Comments and trailing commas are accepted.
  • UrDeck notices a saved change after about a second. A theme is re-read when the configuration is reloaded, so after editing theme.json, save the configuration file too.
  • An unknown typeId leaves its place empty. A col, row, width or height out of range is clamped with a warning.
  • With the monitor the deck remembers (display) not connected, there is no window at all, only the tray icon. Remove display from the file, or choose Choose automatically in Settings. See the monitor.

A widget the editor cannot show

The editor never changes a widget it does not understand: the widget’s settings stay in the file untouched, and the only thing it can do to it is Remove it as a whole (which Undo takes back). In the Pages section the widget is a dashed placeholder where it sits on the page (or in the dock), and selecting it explains why.

  • “Focus timer did not load”. A plugin that provided this widget before is still in the plugin folders but failed to start, was built against another version of UrDeck, or no longer offers the widget. The pane names the plugin file and the reason, and Show in the log opens urdeck.log, where the same reason is written once. Fix or replace the plugin file; UrDeck loads it again by itself and the widget returns with its settings. The deck leaves the space empty meanwhile.
  • “acme.widgets.ticker is not installed”. No plugin provides this widget type: it was never installed, or its plugin file was removed (the pane then names the file that provided it). The pane shows the widget’s settings as read-only text. Install the plugin and the widget returns, or Remove it.
  • “3x1 is not a Stats size”. A widget placed at a size its type does not declare. The deck draws it anyway; the editor marks it with a badge, lists the sizes the widget comes in, and offers the nearest ones that fit as buttons. Nothing changes until you press one.
  • “Two widgets overlap” or “is outside the page”. A hand-edited file placed widgets on the same cells or beyond the grid. The editor names them above the preview and offers Move it to the first free space.

A theme

  • A value is ignored. The log has one warning naming the theme, the key and the value, and the default is used instead: a colour that does not parse, a number outside its range, a name that is not allowed, a value of the wrong kind. Run urdeck-cli theme validate for the same findings with a suggestion for a misspelled key. See checking a theme.
  • The whole theme is missing. A theme.json that is not valid JSON makes the theme unavailable and the default theme is used.
  • A font does not show. A font named by family is used only where it is installed. Put the .ttf or .otf in the theme folder and name the file. See fonts and licences.
  • Text is hard to read. THEME060 to THEME062 measure the contrast of the text on the card fill. A translucent fill is measured over colors.background, but the page behind may be a moving background.
  • The border does not move. It moves only at the motion level full, never on a dashed border, and spin needs a conic gradient. See motion.
  • A shadow or glow is smaller than I wrote. Over translucent cards it is limited to the gap between cards, and the log says so once.

A background

The deck shows the theme’s background colour, the widgets are unaffected, and urdeck.log has one line that starts with Background and names the cause:

  • an unknown shader name, a folder that cannot be read, or a loose .sksl file (the line names the folder to make; urdeck-cli shader init makes it);
  • a missing or unreadable manifest.json (SHADER001 to SHADER003; urdeck-cli shader init writes one), or an entry that is missing or leaves the folder;
  • SkSL that does not compile (the compiler’s message is in the line, with its line number);
  • a picture that is missing, too large, or not an image (its path is in the line);
  • a failure while painting, or a GPU surface that does not start.

With a theme that has a still background, that is what shows instead of the colour (and the colour when it fails too).

Warnings that do not stop the background (a parameter without a description, an unknown manifest key) are logged the same way, with their SHADERnnn code, listed below. A background that failed is not tried again until its configuration, its files or the theme changes; fix the file and save the config.

A shader that is too heavy for your GPU, or a game that stutters beside the deck: lower scale to 0.25. See speed, colours and images.

UrDeck.Host.exe --snapshot out.png draws the background too (a shader at iTime 10, whatever the speed, with the palette of the theme in use, a theme’s default, still background and scrim as the deck draws them), so a snapshot with the same configuration is the same every time. The snapshot is drawn on the CPU and does not need the GPU.

Theme findings

Every finding of urdeck-cli theme validate has a code that never changes meaning. error means the deck cannot use the theme or the file, warning means it works and could be better, info is a remark. The deck logs the findings it can act on (the codes marked “also logged”); the rest only the tool reports. The table is made from the product’s own list.

CodeSeverityMeaning and how to fix it
THEME001errortheme.json is missing, is not valid JSON or holds no object: add it, or fix the syntax at the position given. Nothing else is checked
THEME002warninga key the deck does not read (a typo, or a key left over from an older draft): fix the name, the message suggests the nearest key
THEME003warninga value of the wrong JSON type (also logged): the deck skips that value and takes the default
THEME004warninga number outside its range, which the message gives (also logged): the deck uses the default
THEME005warninga value that is not one of the names allowed, which the message lists (also logged; the case does not matter)
THEME006warninga colour that is not #RRGGBB or #AARRGGBB (also logged)
THEME007warninga list outside its length limits or with an invalid element (also logged): the deck drops the list whole
THEME008warninga group that needs a member it does not have, such as a gradient without colors (also logged): the group is ignored
THEME020errora font file is missing from the theme, is not a .ttf, .otf or .ttc, or its path leaves the theme's folder (also logged when it leaves the folder or cannot be loaded): add the file, fix the name, keep it inside the folder
THEME021warninga font file is over 3 MB (subset it) or has no licence file beside it (*-OFL.txt, LICENSE* or *-LICENSE*): add the licence so the theme can be shared
THEME022warninga font named by family, which is used only where it is installed: put a .ttf or .otf in the folder and name the file
THEME023warninga weight outside a variable font's range, or one a static font does not have, for a role (also logged): choose a weight the file has
THEME040warningbackground.default.name is not a background that exists: use a built-in one, or point --background-dir at yours
THEME041warningmeta.pairsWith.backgrounds names a background that does not exist: fix the name or remove it
THEME042warningthe default background is not in the theme's own pairsWith list: add it
THEME043warningthe still background picture is missing, leaves the folder or is over 8 MB
THEME044warningicons.set names an icon set that exists neither in the theme's icons/ folder nor among the built-in sets (also logged): fix the name
THEME050warninga border style, gradient or animation with card.borderWidth 0 (also logged): give the border a width
THEME051warningcard.borderAnimate spin without a conic card.borderGradient (also logged): the deck switches the animation off
THEME052warninga pattern whose marks are closer than three pixels at the panel width (also logged): raise spacing
THEME053warningoutside corner marks reaching past card.gap, thickness included (also logged): move them in or widen the gap
THEME054warninga shadow or glow whose reach is more than the gap over a translucent fill (logged as information, the deck limits it): reduce the blur or offset
THEME055warninga line (border, highlight, accent strip, corner mark) that resolves under one pixel, which the deck draws 1 px wide (also logged)
THEME056infocard.compact.shape circle on a card that is not square, which is a capsule (also logged)
THEME057warningcard.borderAnimate on a dashed card.borderStyle (also logged): the border is drawn still, because the moving ring is stretched round the card and a dash pattern fitted to each side does not survive that
THEME060warningthe text colour on the card fill, or on its gradient's darkest or lightest stop, is under 4.5:1: change the colours; a translucent fill is composited over colors.background, and the message says so because the page behind may be a moving background
THEME061warningthe text colour on a card tint is under 4.5:1 (a tinted card keeps colors.text): change the tint at the position the message names
THEME062infothe muted text colour on the card fill is under 3:1
THEME070erroran icon set's manifest.json is missing, is not valid JSON, has a version other than 1 or has no keys (also logged): add or fix it
THEME071errora manifest entry names a file that is missing, does not end in .svg or leaves the set's folder (also logged)
THEME072erroran icon file breaks the file rules: over 4 KB, no viewBox of 0 0 24 24, an element or attribute that is not allowed, a transform, not valid XML (also logged)
THEME073warninga manifest key is not one of the product's icon keys, so no widget asks for it
THEME074warningthe manifest's license or source is empty, or the set's folder has no licence file
THEME075warningan .svg file in the set's folder that no manifest entry names (the tool alone reports it)
THEME076infothe set has no icon for some of the product's keys; the message names them and says outline answers them
THEME080warningmeta lacks a name, a description or a mode: add them so an editor can list the theme
THEME090infomore than one continuous animation is on (also logged): each costs CPU while it runs

Background findings

The same for a background folder, from urdeck-cli shader validate and from the log when the background loads. error means the folder is broken or breaks a rule; only the codes marked “stops” also stop the background. warning means it works but could be better described. info is a remark. The built-in backgrounds produce none of these.

CodeSeverityMeaning and how to fix it
SHADER001error, stopsmanifest.json is missing: add the file (see the minimal manifest)
SHADER002error, stopsnot valid JSON, or the top level is not an object: fix the syntax at the position given
SHADER003error, stopsmanifest is missing, not an integer, or not a version this product reads: use "manifest": 1
SHADER004warningan unknown key in the manifest, a parameter or a sample: fix the spelling or remove it
SHADER005warninga value has the wrong JSON type (a number where text is expected): fix the value
SHADER010error, stopsthe entry file does not exist: create it, or fix entry
SHADER011error, stopsentry is absolute or leaves the folder: name a file inside it
SHADER012errorthe folder's name is not a valid background name (letters, digits, -, _): rename the folder. The deck could never select it, so only urdeck-cli reports it
SHADER020error, stopsthe shader does not compile: the compiler's message follows, with its line number
SHADER021error, stopsthe shader declares a uniform shader: the host has nothing to give it; remove it
SHADER022warninga uniform has a type that cannot be set (int, a matrix): it stays 0; use float
SHADER023warninga // default: cannot be read: give numbers matching the type, or a #RRGGBB colour
SHADER030warningthe manifest annotates a parameter the shader does not declare: fix the name
SHADER031warningthe shader declares a parameter the manifest does not annotate: add it under parameters
SHADER032errorthe manifest annotates a name that belongs to the product (speed, iTime, ...): remove it
SHADER033warningkind color on a parameter without three or four components: use float3 or float4
SHADER034warningan unknown kind: use number or color
SHADER035warningmin is above max, or the shader's default is outside the range: fix the range or the default
SHADER040warningno title
SHADER041warningno description
SHADER042warninga parameter that is not hidden has no description
SHADER050warningno samples: render a picture and list it
SHADER051errora sample file does not exist: create it or fix file
SHADER052errora sample file is absolute or leaves the folder: name a file inside it
SHADER053warningan unknown sample type: use image (or video)
SHADER060infothe shader says layout(color) and the manifest says kind number: the manifest wins
SHADER070warningonly urdeck-cli shader render reports it: the picture is still the theme's background colour everywhere, so the shader drew nothing at that time. Check --time and the alpha of the returned colour; a shader can be legitimately blank at one instant