Always fail to run preprocessing

Author: mowgliCreated Apr 13, 2026Updated Apr 13, 2026
Labelsbug

Describe the bug Today I started to give rga a try searching a big tree with pdf and docx. However, I failed badly. So I tried to narrow it down to just one file.

Trying a pdf file gives me the following (RUST DEBUG SET)

~> rga --rga-no-cache "hilferuf" xxx.pdf 
[2026-04-13T20:40:20Z DEBUG ripgrep_all::config] rga (our) args: ["rga", "--rga-no-cache"]
[2026-04-13T20:40:20Z DEBUG ripgrep_all::config] Configs:
    /home/klaus/.config/ripgrep-all/config.jsonc: {
      "$schema": "./config.v1.schema.json",
      "custom_adapters": []
    }
    RGA_CONFIG: {}
    Args: {
      "cache": {
        "disabled": true
      }
    }
    Merged: {
      "$schema": "./config.v1.schema.json",
      "cache": {
        "disabled": true
      },
      "custom_adapters": []
    }
[2026-04-13T20:40:20Z DEBUG ripgrep_all::config] rga (passthrough) args: ["hilferuf", "xxx.pdf"]
[2026-04-13T20:40:20Z DEBUG ripgrep_all::adapters] Chosen available adapters: pandoc,poppler,postprocpagebreaks,ffmpeg,zip,decompress,tar,sqlite
[2026-04-13T20:40:20Z DEBUG rga] rg command to run: "rg" "--no-line-number" "--smart-case" "--pre" "/usr/bin/rga-preproc" "--pre-glob" "*.{epub,EPUB,odt,ODT,docx,DOCX,fb2,FB2,ipynb,IPYNB,html,HTML,htm,HTM,pdf,PDF,asciipagebreaks,ASCIIPAGEBREAKS,mkv,MKV,mp4,MP4,avi,AVI,mp3,MP3,ogg,OGG,flac,FLAC,webm,WEBM,zip,ZIP,jar,JAR,xpi,XPI,kra,KRA,snagx,SNAGX,als,ALS,bz2,BZ2,gz,GZ,tbz,TBZ,tbz2,TBZ2,tgz,TGZ,xz,XZ,zst,ZST,tar,TAR,db,DB,db3,DB3,sqlite,SQLITE,sqlite3,SQLITE3}" "hilferuf" "xxx.pdf"
rg: xxx.pdf: preprocessor command failed: '"/usr/bin/rga-preproc" "xxx.pdf"': 
-------------------------------------------------------------------------------
[2026-04-13T20:40:20Z DEBUG ripgrep_all::config] Config: {"$schema":"./config.v1.schema.json","cache":{"disabled":true},"custom_adapters":[]}
[2026-04-13T20:40:20Z DEBUG ripgrep_all::preproc] path (hint) to preprocess: "xxx.pdf"
[2026-04-13T20:40:20Z DEBUG ripgrep_all::adapters] Chosen available adapters: pandoc,poppler,postprocpagebreaks,ffmpeg,zip,decompress,tar,sqlite
[2026-04-13T20:40:20Z DEBUG ripgrep_all::preproc] Archive recursion depth: 0
[2026-04-13T20:40:20Z DEBUG ripgrep_all::preproc] Chose adapter 'poppler' because of matcher Fast(FileExtension("pdf"))
xxx.pdf adapter: poppler
Error: during preprocessing

Caused by:
    0: run_adapter(xxx.pdf)
    1: No cache?

Stack backtrace:
   0: <unknown>
   1: <unknown>
   2: <unknown>
   3: <unknown>
   4: <unknown>
   5: <unknown>
   6: <unknown>
   7: <unknown>
   8: <unknown>
   9: __libc_start_main
  10: <unknown>
-------------------------------------------------------------------------------
[2026-04-13T20:40:20Z DEBUG rga] running rg took 11.1ms

Don't wonder about the search topic, it is about educational topics.

To Reproduce See above

Attach example file: No, But doesn't matter

Run command: See above

Output See above

Operating System and Version Linux, Gentoo

Output of rga --version ripgrep-all 0.10.9

The error happens on every file; doesn't matter if docx or pdf.