01 · Symptom -> Fix
Every error and its fix.
| Symptom | Cause & exact fix |
|---|---|
| libpdfium not found | Run hoja setup once (Homebrew bundles it; cargo install and shell installer fetch it via setup). |
| Blank, blurry, or garbled pages | Run hoja doctor inside your terminal pane, check the Kitty graphics row, or retry with --paper. |
| Graphics blank inside tmux | Run tmux set -g allow-passthrough on and re-check hoja doctor. |
| Wrong theme colors | Check the theme (osc) row in hoja doctor for OSC 10/11 replies; press p to toggle paper ink. |
| .md math or .typ fails to render | Install typst and verify it appears on PATH in hoja doctor. |
| .tex does not compile | Install tectonic and verify it appears on PATH in hoja doctor. |
| Web article opens empty | Install typst; retry with HOJA_DEFUDDLE=0 to force the built-in Rust HTML extractor. |
| EPUB fails to open | DRM-protected EPUBs and hostile zip-bomb/zip-slip archives are rejected by design. |
| HOJA_DATA_DIR error | Pass an absolute path with no ~ and no .., owned by you, with chmod 700. |
| hoja ctl reports no_live_reader (exit 3) | Open a document in a Ghostty or Rex pane first (e.g. hoja 1706.03762), or target with --pid / --block. |
| hoja annot exits 3 (no_match) | Re-read the exact page text via hoja <doc> --text -p N and copy the verbatim phrase. |
| hoja annot exits 4 (ambiguous) | Pass --occurrence K for the 1-based match index, a longer phrase, or --all. |