Commit b263215
Damien
fix(runtime): tesseract languages + raise nsjail memory limit
Two fixes surfaced during PDF skill testing:
1. tesseract-ocr-{fra,deu,spa,ita}: the base tesseract-ocr package only
ships English. OCR on French/German/Spanish/Italian PDFs needs the
language packs installed in the image (pytesseract.image_to_string
accepts lang="fra+eng" but cannot use a language that isn't present).
Added to the existing apt install layer.
2. rlimit_as 512 → 1024 MiB: 512 MiB is too tight for PDF OCR workflows
(pdf2image renders pages at 200+ DPI which can momentarily allocate
400-700 MiB per page; tesseract on top adds 100-200 MiB working set).
Skill consistently OOM-killed at 512 MiB even with del+gc.collect()
between pages. 1024 MiB is sufficient with page-by-page processing
and remains conservative for the trusted-tenant model.1 parent 51365ef commit b263215
2 files changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| |||
0 commit comments